validate
public T validate(T parameterValue,
ModelValidatorContext context,
boolean isVariableHidden)
throws ValidationException
Check whether the specified value
is valid. If not, a
checked exception that contains the cause is thrown.
- Specified by:
validate
in interface Validator<T extends Comparable<T>>
- Parameters:
parameterValue
- the value to check.
context
- a context object, if needed by the validator
isVariableHidden
- true is the variable is hidden
- Returns:
- the unmodified parameterValue if validation is successful
- Throws:
ValidationException
- if the parameter value is invalid.