org.loom.validator
Class RequiredBooleanValidator

java.lang.Object
  extended by org.loom.validator.AbstractPropertyValidator
      extended by org.loom.validator.AbstractRequiredValidator<java.lang.Boolean>
          extended by org.loom.validator.RequiredBooleanValidator
All Implemented Interfaces:
FormInputDecorator, PropertyValidator

public class RequiredBooleanValidator
extends AbstractRequiredValidator<java.lang.Boolean>

Validates required boolean. Required booleans must be true.


Field Summary
 
Fields inherited from class org.loom.validator.AbstractRequiredValidator
REQUIRED_BOOLEAN_MESSAGE, REQUIRED_COLLECTION_MESSAGE, REQUIRED_MESSAGE
 
Constructor Summary
RequiredBooleanValidator()
           
 
Method Summary
protected  boolean isEmpty(java.lang.Boolean 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

RequiredBooleanValidator

public RequiredBooleanValidator()
Method Detail

isEmpty

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