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