public interface Validator<T>
Modifier and Type | Method and Description |
---|---|
T |
validate(T parameterValue,
ModelValidatorContext context,
boolean isVariableHidden)
Check whether the specified
value is valid. |
T validate(T parameterValue, ModelValidatorContext context, boolean isVariableHidden) throws ValidationException
value
is valid. If not, a
checked exception that contains the cause is thrown.parameterValue
- the value to check.context
- a context object, if needed by the validatorisVariableHidden
- true is the variable is hiddenValidationException
- if the parameter value is invalid.