org.springmodules.validation.util.condition.bean
Class AbstractBeanCondition
java.lang.Object
org.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.condition.NonNullAcceptingCondition
org.springmodules.validation.util.condition.bean.AbstractBeanCondition
- All Implemented Interfaces:
- Condition
- Direct Known Subclasses:
- EqualPropertiesBeanCondition, PropertyBeanCondition
public abstract class AbstractBeanCondition
- extends NonNullAcceptingCondition
A parent class to all bean related conditions. Such condition may perform checks on beans
properties.
- Author:
- Uri Boness
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBeanCondition
public AbstractBeanCondition()
doCheck
public final boolean doCheck(Object object)
- See
Condition.check(Object)
. This method creates a
BeanWrapper
instance of the checked object and delegates the call to
checkBean(org.springframework.beans.BeanWrapper)
;
- Specified by:
doCheck
in class AbstractCondition
- Parameters:
object
- The object to be checked.
- Returns:
true
if the given object adheres to this condition, false
otherwise.
- Throws:
IllegalArgumentException
- when the passed in object is null
.
checkBean
protected abstract boolean checkBean(BeanWrapper beanWrapper)
Copyright © 2009. All Rights Reserved.