ModuleBlueprint source
Specializes Blueprint
Properties
-
binder :Property source
-
Inherited From: Default Value: - null
-
blueprintInstanceModule source
-
This is used for references only so that we can reload referenced blueprints.
Inherited From: -
customPrototype :boolean source
-
Defines whether the blueprint should use custom prototype for new instances.
Is
true
if the blueprint needs to require a custom prototype for creating new instances,false
if new instance are generic prototypes.Inherited From: Default Value: - false
-
evaluateRules source
-
Evaluates the rules based on the object and the properties.
Inherited From: -
eventBlueprints :?Array.<EventBlueprint> source
-
Inherited From: -
exportName :string source
-
The name of the export this blueprint is for.
-
identifier :string source
-
The identifier is the same as the name and is used to make the serialization of a blueprint humane.
Inherited From: Default Value: - `this.name`
-
module :ModuleReference source
-
A reference to the module that this blueprint is for.
-
name source
-
Inherited From: -
newAssociationBlueprint source
-
Return a new association blueprint. Note: This is the canonical way of creating new association blueprint in order to enable subclassing.
Inherited From: -
newDerivedPropertyBlueprint source
-
Return a new derived property blueprint. Note: This is the canonical way of creating new derived property blueprint in order to enable subclassing.
Inherited From: -
newEventBlueprint source
-
Return a new event blueprint. Note: This is the canonical way of creating new event blueprint in order to enable subclassing.
Inherited From: -
newPropertyBlueprint source
-
Return a new property blueprint.
Note: This is the canonical way of creating new property blueprint in order to enable subclassing.
Inherited From: -
ObjectProperty :ObjectProperty source
-
Return the blueprint object property for this blueprint.
This will return the default if none is declared.
Inherited From: -
parent :BlueprintReference source
-
Blueprint parent
Inherited From: -
propertyBlueprintGroupForName source
-
Returns the group associated with that name
Inherited From: -
propertyBlueprintGroups :Array.<PropertyBlueprint> source
-
List of properties blueprint groups names
Inherited From: -
propertyBlueprints :Array.<PropertyBlueprint> source
-
Inherited From: -
propertyValidationRuleForName source
-
Returns the properties validation rule for that name
Inherited From: -
propertyValidationRules source
-
Gets the list of properties validation rules.
Inherited From:
Methods
-
getBlueprintWithModuleId(blueprint, require) <constructor> source
-
Gets a blueprint from a serialized file at the given module id.
Parameters:
Name Type Description blueprint
string module id
require
function function
-
addEventBlueprint(property) → {PropertyBlueprint} 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.
Inherited From: Returns: PropertyBlueprint
-
addEventBlueprintNamed(name) → {EventBlueprint} source
-
Convenience to add an event blueprint.
Parameters:
Name Type Description name
string Inherited From: Returns: EventBlueprint
-
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
PropertyBlueprint blueprint The property blueprint to be added.
Inherited From: Returns:
the property blueprint
-
addPropertyBlueprintGroupNamed(name) → {Array.<PropertyBlueprint>} source
-
Add a new property blueprint group.
Parameters:
Name Type Description name
string of the group
Inherited From: Returns: Array.<PropertyBlueprint>
new property blueprint group
-
addPropertyBlueprintToGroupNamed(property, name) → {Array.<PropertyBlueprint>} 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
Inherited From: Returns: Array.<PropertyBlueprint>
property blueprint group
-
addPropertyValidationRule(name) → {PropertyDescription} source
-
Add a new properties validation rule .
Parameters:
Name Type Description name
string of the rule
Inherited From: Returns: PropertyDescription
new properties validation rule
-
addToManyAssociationBlueprintNamed(name, inverse) → {AssociationBlueprint} source
-
Convenience to add an property blueprint to many relationships.
Parameters:
Name Type Description name
string TODO
inverse
string TODO
Inherited From: Returns: AssociationBlueprint
-
addToManyPropertyBlueprintNamed(name) → {PropertyBlueprint} source
-
Convenience to add many property blueprints.
Parameters:
Name Type Description name
string Add to many property blueprints
Inherited From: Returns: PropertyBlueprint
-
addToOneAssociationBlueprintNamed(name, inverse) → {AssociationBlueprint} source
-
Convenience to add an property blueprint to one relationship.
Parameters:
Name Type Description name
string inverse
string Inherited From: Returns: AssociationBlueprint
-
addToOnePropertyBlueprintNamed(name) → {PropertyBlueprint} source
-
Convenience to add one property blueprint.
Parameters:
Name Type Description name
string Add to one property blueprint
Inherited From: Returns: PropertyBlueprint
-
create(prototype, 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 prototype
Object propertyDescriptor
Object Inherited From: Returns:
newPrototype
-
eventBlueprintForName(name) → {EventBlueprint} source
-
Parameters:
Name Type Description name
string Inherited From: Returns: EventBlueprint
-
initWithModuleAndExportName(module, name) source
-
Parameters:
Name Type Description module
ModuleReference name
string Returns:
this
-
initWithName(name) source
-
Parameters:
Name Type Description name
string The name of the blueprint
Inherited From: Returns:
itself
-
newInstance() source
-
Create a new instance of the target prototype for the blueprint.
Inherited From: 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.Inherited From: Returns:
new prototype
-
propertyBlueprintForName(name) → {PropertyBlueprint} source
-
Parameters:
Name Type Description name
string Inherited From: Returns: PropertyBlueprint
-
removeEventBlueprint(property) → {PropertyBlueprint} 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.
Inherited From: Returns: PropertyBlueprint
-
removePropertyBlueprint(property) source
-
Removes a property blueprint from the property blueprint list of this blueprint.
Parameters:
Name Type Description property
PropertyBlueprint blueprint The property blueprint to be removed.
Inherited From: Returns:
the same property blueprint
-
removePropertyBlueprintFromGroupNamed(name, name) → {Array.<PropertyBlueprint>} source
-
Removes a property blueprint from the group name.
Parameters:
Name Type Description name
string of the property
name
string of the group
Inherited From: Returns: Array.<PropertyBlueprint>
property blueprint group
-
removePropertyBlueprintGroupNamed(name) → {Array.<PropertyBlueprint>} source
-
Remove the property blueprint group.
Parameters:
Name Type Description name
string of the group to remove
Inherited From: Returns: Array.<PropertyBlueprint>
removed property blueprint group
-
removePropertyValidationRule(name) → {PropertyDescription} source
-
Remove the properties validation rule for the name.
Parameters:
Name Type Description name
string of the rule
Inherited From: Returns: PropertyDescription
removed properties validation rule
Generated from v0.14.14