org.drools.semantics.java
Class ExprCondition
java.lang.Object
org.drools.semantics.java.Expr
org.drools.semantics.java.ExprCondition
- All Implemented Interfaces:
- Condition, SemanticComponent, Serializable
- public class ExprCondition
- extends Expr
- implements Condition
Java expression semantics Condition
.
- Author:
- bob@werken.com
- See Also:
- Serialized Form
ExprCondition
public ExprCondition(String expr,
Rule rule)
throws Exception
- Construct.
- Parameters:
expr
- The expression.rule
- The rule.
- Throws:
ConfigurationException
- If an error occurs while attempting to
perform configuration.
Exception
isAllowed
public boolean isAllowed(Tuple tuple)
throws ConditionException
- Determine if the supplied
Tuple
is allowed by this
condition.
- Specified by:
isAllowed
in interface Condition
- Parameters:
tuple
- The Tuple
to test.
- Returns:
true
if the Tuple
passes this
condition, else false
.
- Throws:
ConditionException
- if an error occurs during filtering.
toString
public String toString()
Copyright © 2001-2004 The Codehaus. All Rights Reserved.