c

overflowdb.schema

SchemaBuilder

class SchemaBuilder extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SchemaBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SchemaBuilder(domainShortName: String, basePackage: String, additionalTraversalsPackages: Seq[String] = Seq.empty)

Value Members

  1. def addConstants(category: String, constants: Constant*): Seq[Constant]
  2. def addEdgeType(name: String, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): EdgeType
  3. def addNodeBaseType(name: String, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): NodeBaseType
  4. def addNodeType(name: String, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): NodeType
  5. def addProperty[A](name: String, valueType: ValueType[A], comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): Property[A]
  6. lazy val anyNode: NodeBaseType

    root node trait for all nodes - use if you want to be explicitly unspecific n.b.

    root node trait for all nodes - use if you want to be explicitly unspecific n.b. 1: this one allows for StoredNode and NewNode n.b. 2: this it's not even part of the regular base types, but instead defined in the RootTypes.scala

  7. def build: Schema
  8. val constantsByCategory: Map[String, Seq[Constant]]
  9. def dontWarnForDuplicateProperty(nodeType: AbstractNodeType, property: Property[_]): SchemaBuilder
  10. val edgeTypes: ListBuffer[EdgeType]
  11. val noWarnList: Set[(AbstractNodeType, Property[_])]
  12. val nodeBaseTypes: ListBuffer[NodeBaseType]
  13. val nodeTypes: ListBuffer[NodeType]
  14. val properties: ListBuffer[Property[_]]
  15. def protoOptions(value: ProtoOptions): SchemaBuilder
  16. var protoOptions: Option[ProtoOptions]
  17. lazy val storedNode: NodeBaseType

    root node trait for all stored nodes - use if you want to be explicitly unspecific n.b.: this it's not even part of the regular base types, but instead defined in the RootTypes.scala

  18. def verifyProtoIdsUnique(schema: Schema): Unit

    proto ids must be unique (if used)