public interface Validator<T>
Note that the enum StringValidators provides many
built-in validators to perform common tasks.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
modelType()
The type of the model object which can be validated.
|
void |
validate(Problems problems,
java.lang.String compName,
T model)
Validate the passed model.
|
void validate(Problems problems, java.lang.String compName, T model)
problems - A list of problems.compName - The name of the component in question (may be null in some cases)model - The model in questionjava.lang.Class<T> modelType()