new module:ct-core /validator /Comma Separated Properties Validator(failure Message)
Parameters:
Name | Type | Description |
---|---|---|
failureMessage |
string | An i18n key for the failure message if validation fails. |
- Implements:
- module:ct-core/log/Logger
The <code>CommaSeparatedPropertiesValidator</code> is a
module:ct-trading/validation/Validator
that ensures string is a comma-separated list of property assignments (unary properties are also acceptable).
- module:ct-core/log/Logger
The <code>CommaSeparatedPropertiesValidator</code> is a
Methods
validate(value, attributes, validation Result)
Do the validation.
Parameters:
Name | Type | Description |
---|---|---|
value |
var | The value to validate. |
attributes |
Object | Attributes to control the validation process. Will not be null. |
validationResult |
module:br-validation |
The ValidationResult to store the result of this validation in. |