Caplin Trader 4.7.1

Class: module:caplin/core/validator/CommaSeparatedPropertiesValidator

module:caplin/core/validator/CommaSeparatedPropertiesValidator

Constructor

new module:caplin/core/validator/CommaSeparatedPropertiesValidator(failureMessage)

Parameters:
Name Type Description
failureMessage string An i18n key for the failure message if validation fails.
Implements:
  • module:caplin/core/log/Logger The <code>caplin.core.validator.CommaSeparatedPropertiesValidator</code> is a module:caplin/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.