Blueprint source

Properties

binder :Property source

Default Value:
  • null

blueprintInstanceModule source

This is used for references only so that we can reload referenced blueprints.

customPrototype :boolean source

Defines if the blueprint should use custom prototype for new instances.

Returns true if the blueprint needs to require a custom prototype for creating new instances, false if new instance are generic prototypes.

Default Value:
  • false

eventBlueprints :Property source

Default Value:
  • {Array} new Array()

identifier :Property source

The identifier is the same as the name and is used to make the serialization of a blueprint humane.

Default Value:
  • {string} this.name

moduleId :Property source

Default Value:
  • null

name source

newAssociationBlueprint source

Return a new association blueprint. <b>Note: </b> This is the canonical way of creating new association blueprint in order to enable subclassing.

newDerivedPropertyBlueprint source

Return a new derived property blueprint. <b>Note: </b> This is the canonical way of creating new derived property blueprint in order to enable subclassing.

newEventBlueprint source

Return a new event blueprint. Note: This is the canonical way of creating new event blueprint in order to enable subclassing.

newPropertyBlueprint source

Return a new property blueprint.

Note: This is the canonical way of creating new property blueprint in order to enable subclassing.

ObjectProperty :Property source

Return the blueprint object property for this blueprint.

This will return the default if none is declared.

parent :Property source

Blueprint parent

Default Value:
  • {Object} null

propertyBlueprintGroupForName source

Returns the group associated with that name

propertyBlueprintGroups source

List of properties blueprint groups names

propertyBlueprints :Property source

Default Value:
  • {Array} new Array()

propertyValidationRules source

Gets the list of properties validation rules

Methods

addEventBlueprint(property) source

Add a new property blueprint to this blueprint.

If that property blueprint was associated with another blueprint it will be removed first.

Parameters:
Name Type Description
property string

blueprint The property blueprint to be added.

Returns:

property blueprint

addEventBlueprintNamed(name) source

Convenience to add an event blueprint.

Parameters:
Name Type Description
name string

TODO

Returns:

relationship

addPropertyBlueprint(property) source

Add a new property blueprint to this blueprint.

If that property blueprint was associated with another blueprint it will be removed first.

Parameters:
Name Type Description
property string

blueprint The property blueprint to be added.

Returns:

property blueprint

addPropertyBlueprintGroupNamed(name) → {array} source

Add a new property blueprint group.

Parameters:
Name Type Description
name string

of the group

Returns: array

new property blueprint group

addPropertyBlueprintToGroupNamed(property, name) → {array} source

Adds a property blueprint to the group name. if the group does not exist creates it.

Parameters:
Name Type Description
property string

to add

name string

of the group

Returns: array

property blueprint group

addToManyAssociationBlueprintNamed(name, inverse) source

Convenience to add an property blueprint to many relationships.

Parameters:
Name Type Description
name string

TODO

inverse string

TODO

Returns:

relationship

addToManyPropertyBlueprintNamed(name) source

Convenience to add many property blueprints.

Parameters:
Name Type Description
name string

Add to many property blueprints

Returns:

names

addToOneAssociationBlueprintNamed(name, inverse) source

Convenience to add an property blueprint to one relationship.

Parameters:
Name Type Description
name string

TODO

inverse string

TODO

Returns:

relationship

addToOnePropertyBlueprintNamed(name) source

Convenience to add one property blueprint.

Parameters:
Name Type Description
name string

Add to one property blueprint

Returns:

name

create(aPrototype, propertyDescriptor) source

This is the canonical way of creating managed objects prototypes.

Newly created prototype will be blessed with all the required properties to be well behaved.

Parameters:
Name Type Description
aPrototype Object

TODO

propertyDescriptor string

TODO

Returns:

newPrototype

eventBlueprintForName(name) source

Parameters:
Name Type Description
name string

TODO

Returns:

event blueprint

initWithName(name) source

Parameters:
Name Type Description
name string

The name of the blueprint

Returns:

this

initWithNameAndModuleId(name, moduleId) source

Parameters:
Name Type Description
name string

TODO

moduleId string

TODO

Returns:

itself

newInstance() source

Create a new instance of the target prototype for the blueprint.

Returns:

new instance

newInstancePrototype() source

Returns the target prototype for this blueprint.

Note: This method uses the customPrototype property to determine if it needs to require a custom prototype or create a default prototype.

Returns:

new prototype

propertyBlueprintForName(name) source

Parameters:
Name Type Description
name string

TODO

Returns:

property blueprint

removeEventBlueprint(property) source

Removes an property blueprint from the property blueprint list of this blueprint.

Parameters:
Name Type Description
property Object

blueprint The property blueprint to be removed.

Returns:

property blueprint

removePropertyBlueprint(property) source

Removes an property blueprint from the property blueprint list of this blueprint.

Parameters:
Name Type Description
property Object

blueprint The property blueprint to be removed.

Returns:

property blueprint

removePropertyBlueprintFromGroupNamed(name, name) → {array} source

Removes a property blueprint from the group name.

Parameters:
Name Type Description
name string

of the property

name string

of the group

Returns: array

property blueprint group

removePropertyBlueprintGroupNamed(name) → {array} source

Remove the property blueprint group.

Parameters:
Name Type Description
name string

of the group to remove

Returns: array

removed property blueprint group

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.