org.openxava.validators
Class MinimumSizeValidator

java.lang.Object
  extended by org.openxava.validators.MinimumSizeValidator
All Implemented Interfaces:
java.io.Serializable, IPropertyValidator

public class MinimumSizeValidator
extends java.lang.Object
implements IPropertyValidator

Author:
Javier Paniza
See Also:
Serialized Form

Constructor Summary
MinimumSizeValidator()
           
 
Method Summary
 int getSize()
           
 void setSize(int size)
           
 void validate(Messages errors, java.lang.Object value, java.lang.String propertyName, java.lang.String modelName)
          Validate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinimumSizeValidator

public MinimumSizeValidator()
Method Detail

validate

public void validate(Messages errors,
                     java.lang.Object value,
                     java.lang.String propertyName,
                     java.lang.String modelName)
              throws java.lang.Exception
Description copied from interface: IPropertyValidator
Validate.

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

Specified by:
validate in interface IPropertyValidator
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.

getSize

public int getSize()

setSize

public void setSize(int size)