org.springmodules.validation.util.cel.ognl
Class OgnlCondition
java.lang.Object
org.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.cel.ognl.OgnlCondition
- All Implemented Interfaces:
- Condition
public class OgnlCondition
- extends AbstractCondition
A Condition that checks the given object based on a boolean OGNL expression.
- Author:
- Uri Boness
|
Constructor Summary |
OgnlCondition(String expression)
Constructs a new OgnlCondition with given OGNL boolean expression. |
|
Method Summary |
boolean |
doCheck(Object object)
Performs the actual checking of this condition on the checked object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OgnlCondition
public OgnlCondition(String expression)
- Constructs a new OgnlCondition with given OGNL boolean expression.
- Parameters:
expression - The given OGNL boolean expression.
doCheck
public boolean doCheck(Object object)
- Description copied from class:
AbstractCondition
- Performs the actual checking of this condition on the checked object.
- 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.- See Also:
AbstractCondition.doCheck(Object)
Copyright © 2009. All Rights Reserved.