public interface IPropertyValidator
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
validate(Messages errors,
java.lang.Object value,
java.lang.String propertyName,
java.lang.String modelName)
Validate.
|
void validate(Messages errors, java.lang.Object value, java.lang.String propertyName, java.lang.String modelName) throws java.lang.Exception
The validation errors are added to an object of type Messages
.
errors
- Not null. Ids list to read in the resources filevalue
- Value to validate. It can be nullpropertyName
- Property id in the resources filemodelName
- Object id in the resources file.java.lang.Exception
- Any unexpected problem.