| java.lang.Object org.osbl.agent.model.condition.OgnlCondition
OgnlCondition | public class OgnlCondition implements Condition(Code) | | This class evaluates an OGNL expression, where the root object is the subjectInstance
of the runtime context.
See Also: http://www.ognl.org/ author: Sebastian Nozzi. |
Constructor Summary | |
public | OgnlCondition(String expression) Instantiates a new OgnlCondition with the given expression. | public | OgnlCondition() Instantiates a new OgnlCondition. |
OgnlCondition | public OgnlCondition(String expression)(Code) | | Instantiates a new OgnlCondition with the given expression.
Parameters: expression - the expression |
OgnlCondition | public OgnlCondition()(Code) | | Instantiates a new OgnlCondition.
|
evaluate | public boolean evaluate(RuleContext context)(Code) | | Evaluates the specified OGNL expression, using the subjectInstance of the
runtime context as the root object.
Parameters: context - the context true, if evaluate See Also: org.osbl.agent.model.condition.Condition.evaluate(org.osbl.agent.model.RuleContext) |
getExpression | public String getExpression()(Code) | | Gets the OGNL expression.
the expression |
setExpression | public void setExpression(String expression)(Code) | | Sets the OGNL expression.
Parameters: expression - the new expression |
|
|