org.openxava.validators
Interface IPropertyValidator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BigDecimalValidator, CreditCardValidator, EmailListValidator, EmailValidator, IPValidator, ISBNValidator, MetaCollection, MinimumSizeValidator, MoneyScaleValidator, NotBlankCharacterValidator, NotEmptyStringValidator, NotNegativeValidator, NotNullValidator, NotZeroValidator, PhoneNumberValidator, PositiveValidator, TolerantValidator, URLValidator

public interface IPropertyValidator
extends java.io.Serializable

Validator for a single property.

Author:
Javier Paniza

Method Summary
 void validate(Messages errors, java.lang.Object value, java.lang.String propertyName, java.lang.String modelName)
          Validate.
 

Method Detail

validate

void validate(Messages errors,
              java.lang.Object value,
              java.lang.String propertyName,
              java.lang.String modelName)
              throws java.lang.Exception
Validate.

The validation errors are added to an object of type Messages.

Parameters:
errors - Not null. Ids list to read in the resources file
value - Value to validate. It can be null
propertyName - Property id in the resources file
modelName - Object id in the resources file.
Throws:
java.lang.Exception - Any unexpected problem.