org.loom.validator
Class RequiredCollectionValidator

java.lang.Object
  extended by org.loom.validator.AbstractPropertyValidator
      extended by org.loom.validator.AbstractRequiredValidator<java.util.Collection<?>>
          extended by org.loom.validator.RequiredCollectionValidator
All Implemented Interfaces:
FormInputDecorator, PropertyValidator

public class RequiredCollectionValidator
extends AbstractRequiredValidator<java.util.Collection<?>>


Field Summary
 
Fields inherited from class org.loom.validator.AbstractRequiredValidator
REQUIRED_BOOLEAN_MESSAGE, REQUIRED_COLLECTION_MESSAGE, REQUIRED_MESSAGE
 
Constructor Summary
RequiredCollectionValidator()
           
 
Method Summary
protected  boolean isEmpty(java.util.Collection<?> value)
           
 
Methods inherited from class org.loom.validator.AbstractRequiredValidator
decorate, getDefaultRequiredMessage, setDefaultRequiredMessage, toString, validate
 
Methods inherited from class org.loom.validator.AbstractPropertyValidator
getMessagePrefix, getOverridenMessageKey, getPropertyPath, isBindMessages, isValidateCollectionContainer, pushPropertyPath, setBindMessages, setMessagePrefix, setOverridenMessageKey, setPropertyPath, setValidateCollectionContainer, validateCollectionContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequiredCollectionValidator

public RequiredCollectionValidator()
Method Detail

isEmpty

protected boolean isEmpty(java.util.Collection<?> value)
Specified by:
isEmpty in class AbstractRequiredValidator<java.util.Collection<?>>
Returns:
true if the value passed as parameter is empty