public interface ConfigurationFieldValidator
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(ConfigurationField field)
checks whether this validator supports the given
ConfigurationField or not |
void |
validate(Object target,
ConfigurationField field,
org.springframework.validation.Errors errors)
validates the given target value and adds an item to the
Errors
when validation fails |
boolean supports(ConfigurationField field)
ConfigurationField or notfield - to check if supported by validatortrue when this validator supports the given ConfigurationField,
false otherwisevoid validate(Object target, ConfigurationField field, org.springframework.validation.Errors errors)
Errors
when validation failstarget - the item to validate against the fieldfield - the configuration field description to validate againsterrors - the errors object that will receive the validation errorCopyright © 2019 Pivotal Software, Inc.. All rights reserved.