org.loom.validator
Class RequiredObjectValidator

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

public class RequiredObjectValidator
extends AbstractRequiredValidator<java.lang.Object>

Validate all kind of Objects. This is the default when there is no other (more specialized) validator.


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

RequiredObjectValidator

public RequiredObjectValidator()
Method Detail

isEmpty

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