org.drools.semantics.annotation.model
Class PojoCondition
java.lang.Object
org.drools.semantics.annotation.model.PojoCondition
- All Implemented Interfaces:
- Serializable, Condition, SemanticComponent
class PojoCondition
- extends Object
- implements Condition
PojoCondition
public PojoCondition(RuleReflectMethod ruleMethod)
getRequiredTupleMembers
public Declaration[] getRequiredTupleMembers()
- Description copied from interface:
Condition
- Retrieve the array of
Declaration
s required by this
condition to perform its duties.
- Specified by:
getRequiredTupleMembers
in interface Condition
- Returns:
- The array of
Declarations
expected on incoming
Tuples
.
isAllowed
public boolean isAllowed(Tuple tuple)
throws ConditionException
- Description copied from interface:
Condition
- 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()
- Overrides:
toString
in class Object
Copyright © 2001-2005 The Codehaus. All Rights Reserved.