Attributes | Name and Description |
---|---|
|
caplin.core.validator.MapConfigKeyValidator(object config)
The |
Attributes | Name and Description |
---|---|
|
void
validate(Object key, Object attributes, caplin.core.ValidationResult validationResult)
Determine whether the given key is allowed according to the config and set result on the provided caplin.core.ValidationResult. |
►
caplin.core.validator.MapConfigKeyValidator(object config)
The MapConfigKeyValidator
is a caplin.trading.validation.Validator that ensures the key being
validated is an allowed key in the given configuration.
object | config | configuration object specifying the allowed/required keys and values in a map. The validity of the config object is checked by the utility method caplin.core.validator.MapConfigUtility.checkConfig. |
►
void
validate(Object key, Object attributes, caplin.core.ValidationResult validationResult)
Determine whether the given key is allowed according to the config and set result on the provided caplin.core.ValidationResult.
Object | key | The key to validate. |
Object | attributes | attributes to control the validation process. Not used in this implementation. |
caplin.core.ValidationResult | validationResult | the ValidationResult in which to store the result of this validation. |