Caplin Trader 5.1.0

Interface: module:br-presenter/validator/CrossPropertyValidator


An interface for validators that need to consider the validity of multiple module:br-presenter/property/Property instances in relation to each other.


validate(mProperties, oValidationResult)

Validate the set of named properties.

Implementations of CrossPropertyValidator will typically expect a well defined set of named properties to perform validation on. Validators should fail-fast, and throw an exception if the set of properties they receive is not the same as what they expected.

Name Type Description
mProperties Object

A named set of properties to validate.

oValidationResult module:br-validation/ValidationResult

The result object that the outcome of the validation will be set on.