org.drools.semantics.annotation.model
Class PojoCondition

java.lang.Object
  extended by org.drools.semantics.annotation.model.PojoCondition
All Implemented Interfaces:
Serializable, Condition, SemanticComponent

 class PojoCondition
extends Object
implements Condition


Constructor Summary
PojoCondition(RuleReflectMethod ruleMethod)
           
 
Method Summary
 Declaration[] getRequiredTupleMembers()
          Retrieve the array of Declaration s required by this condition to perform its duties.
 boolean isAllowed(Tuple tuple)
          Determine if the supplied Tuple is allowed by this condition.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PojoCondition

public PojoCondition(RuleReflectMethod ruleMethod)
Method Detail

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.