PropertyValidationRule source
Specializes Montage
Properties
-
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
-
messageKey source
-
Message key to display when the rule fires.
-
name source
-
Name of the property being described
-
owner source
-
Component description attached to this validation rule.
-
validationSelector :Selector source
-
Selector to evaluate to check this rule.
Methods
-
callDelegateMethod(name) source
-
This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"
Parameters:
Name Type Description name
string Inherited From: -
equals(anObject) → {boolean} source
-
Returns true if two objects are equal, otherwise returns false.
Parameters:
Name Type Description anObject
Object The object to compare for equality.
Inherited From: Returns: boolean
Returns
true
if the calling object andanObject
are identical and theiruuid
properties are also equal. Otherwise, returnsfalse
. -
initWithNameAndBlueprint(rule, blueprint) source
-
Initialize a newly allocated blueprint validation rule.
Parameters:
Name Type Description rule
string name
blueprint
Blueprint Returns:
itself
Generated from a4679af