to.etc.domui.converter
Interface IValueValidator<T>
- All Known Subinterfaces:
- IParameterizedValidator<T>
- All Known Implementing Classes:
- MaxMinValidator, PositiveNumberValidator
public interface IValueValidator<T>
Defines a functor which validates a given value. The value can be of any type, as the validator
for input is usually called after conversion of the input to the base type. Validators for
primitive types must be defined as their wrapper. When a validator determines that validation fails
it dies by throwing a ValidationFailedException. This exception contains an error code AND parameters
for that code. These define the error message that will be thrown.
- Author:
- Frits Jalvingh
Created on Dec 24, 2008
validate
void validate(T input)
throws java.lang.Exception
- Throws:
java.lang.Exception