Caplin Trader 5.1.0

Class: module:ct-core/validator/CommaSeparatedPropertiesValidator

module:ct-core/validator/CommaSeparatedPropertiesValidator(failureMessage)

new module:ct-core/validator/CommaSeparatedPropertiesValidator(failureMessage)

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).

Methods

validate(value, attributes, validationResult)

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/ValidationResult

The ValidationResult to store the result of this validation in.