Class: ModelBuilder

metamodel.ModelBuilder()

new ModelBuilder()

Source:

Members

modelDescriptors :Object.<string, Object>

Type:
  • Object.<string, Object>
Source:

models :Object.<string, metamodel.ManagedType>

Type:
  • Object.<string, metamodel.ManagedType>
Source:

Methods

buildAttribute(field) → {metamodel.Attribute}

Parameters:
Name Type Description
field Object

The field metadata

Properties
Name Type Description
name string

The name of zhe field

type string

The type reference of the field

order number

The order number of the field

metadata Object.<string, *>

Additional metadata of the field

Source:
Returns:
Type
metamodel.Attribute

buildAttributes(model) → {void}

Parameters:
Name Type Description
model metamodel.EntityType
Source:
Returns:
Type
void

buildModel(ref) → {metamodel.ManagedType}

Parameters:
Name Type Description
ref string
Source:
Returns:
Type
metamodel.ManagedType

buildModels(modelDescriptors) → {Object.<string, metamodel.ManagedType>}

Parameters:
Name Type Description
modelDescriptors Array.<Object>
Source:
Returns:
Type
Object.<string, metamodel.ManagedType>

getModel(ref) → {metamodel.ManagedType}

Parameters:
Name Type Description
ref string
Source:
Returns:
Type
metamodel.ManagedType