public class ISBNValidator extends java.lang.Object implements IPropertyValidator
Constructor and Description |
---|
ISBNValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(Messages errors,
java.lang.Object value,
java.lang.String propertyName,
java.lang.String modelName)
Validate.
|
public void validate(Messages errors, java.lang.Object value, java.lang.String propertyName, java.lang.String modelName) throws java.lang.Exception
IPropertyValidator
The validation errors are added to an object of type Messages
.
validate
in interface IPropertyValidator
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.