SchemaBuilder

flatgraph.schema.SchemaBuilder
class SchemaBuilder(domainShortName: String, basePackage: String, additionalTraversalsPackages: Seq[String])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addConstants(category: String, constants: Constant[_]*): Seq[Constant[_]]
def addEdgeType(name: String, comment: String)(implicit schemaInfo: SchemaInfo): EdgeType
def addNodeBaseType(name: String, comment: String)(implicit schemaInfo: SchemaInfo): NodeBaseType
def addNodeType(name: String, comment: String)(implicit schemaInfo: SchemaInfo): NodeType
def addProperty[A](name: String, valueType: ValueType[A], comment: String)(implicit schemaInfo: SchemaInfo): Property[A]
def build: Schema
def verifyProtoIdsUnique(schema: Schema): Unit

proto ids must be unique (if used)

proto ids must be unique (if used)

Attributes

Concrete fields

lazy val anyNode: AnyNodeType

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

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

Attributes

val constantsByCategory: Map[String, Seq[Constant[_]]]
val edgeTypes: ListBuffer[EdgeType]
val nodeBaseTypes: ListBuffer[NodeBaseType]
val nodeTypes: ListBuffer[NodeType]
val properties: ListBuffer[Property[_]]
var protoOptions: Option[ProtoOptions]