Class
caplin.core.validator

CommaSeparatedPropertiesValidator

Implements caplin.core.Validator The caplin.core.validator.CommaSeparatedPropertiesValidator is a {@link caplin.trading.validation.Validator} that ensures string is a comma-separated list of property assignments (unary properties are also acceptable)..

Constructor Summary

Attributes Name and Description
caplin.core.validator.CommaSeparatedPropertiesValidator(string failureMessage)

Method Summary

Attributes Name and Description
void validate(var value, Object attributes, caplin.core.ValidationResult validationResult)

Do the validation.

Constructor Detail

caplin.core.validator.CommaSeparatedPropertiesValidator(string failureMessage)

Parameters
string failureMessage An i18n key for the failure message if validation fails.

Method Detail

void validate(var value, Object attributes, caplin.core.ValidationResult validationResult)

Do the validation.

Parameters
var value The value to validate.
Object attributes Attributes to control the validation process. Will not be null.
caplin.core.ValidationResult validationResult The ValidationResult to store the result of this validation in.