class SchemaBuilder extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SchemaBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SchemaBuilder(basePackage: String)
Value Members
- def addConstants(category: String, constants: Constant*): Seq[Constant]
- def addEdgeType(name: String, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): EdgeType
- def addNodeBaseType(name: String, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): NodeBaseType
- def addNodeType(name: String, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): NodeType
- def addProperty(name: String, valueType: ValueTypes, cardinality: Cardinality, comment: String = "")(implicit schemaInfo: SchemaInfo = SchemaInfo.Unknown): Property
- 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
- def build: Schema
- val constantsByCategory: Map[String, Seq[Constant]]
- val edgeTypes: ListBuffer[EdgeType]
- val nodeBaseTypes: ListBuffer[NodeBaseType]
- val nodeTypes: ListBuffer[NodeType]
- val properties: ListBuffer[Property]
- def protoOptions(value: ProtoOptions): SchemaBuilder
- var protoOptions: Option[ProtoOptions]
- 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
- def verifyProtoIdsUnique(schema: Schema): Unit
proto ids must be unique (if used)