new ValidationContext(dataStore, brokenRules)
Creates a new validation context object. Warning: Validation context objects are created in models internally. They are intended only to make publicly available the context for custom validation rules.
Parameters:
Name | Type | Description |
---|---|---|
dataStore |
bo.shared.DataStore | The storage of the property values. |
brokenRules |
bo.rules.BrokenRuleList | The list of the broken rules. |
Throws:
-
Argument error: The data store must be a DataStore object.
-
Argument error: The broken rules must be a BrokenRuleList object.
Members
-
<readonly> brokenRules :bo.rules.BrokenRuleList
-
The list of the broken rules.
Type:
Methods
-
getValue()
-
Returns the value of a model property.