Package org.openxava.validators
Interface IPropertyValidator
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BigDecimalValidator,CoordinatesValidator,CreditCardValidator,EmailListValidator,EmailValidator,IPValidator,ISBNValidator,MACValidator,MetaCollection,MinimumSizeValidator,MoneyScaleValidator,NotBlankCharacterValidator,NotEmptyStringValidator,NotNegativeValidator,NotNullValidator,NotZeroValidator,PhoneNumberValidator,PositiveValidator,TolerantValidator,URLValidator
Validator for a single property.
- Author:
- Javier Paniza
-
Method Summary
-
Method Details
-
validate
void validate(Messages errors, Object value, String propertyName, String modelName) throws Exception Validate.The validation errors are added to an object of type
Messages.- Parameters:
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.- Throws:
Exception- Any unexpected problem.
-