validate
public String validate(String parameterValue,
ModelValidatorContext context)
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<String>
- Parameters:
parameterValue
- the value to check.
context
- a context object, if needed by the validator
- Returns:
- the unmodified parameterValue if validation is successful
- Throws:
ValidationException
- if the parameter value is invalid.