org.jcon.data
Class OrCondition

java.lang.Object
  extended by org.jcon.data.OrCondition
All Implemented Interfaces:
java.io.Serializable, UnaryPredicate

public class OrCondition
extends java.lang.Object
implements UnaryPredicate, java.io.Serializable

A boolean OR predicate - it takes a list of ORed subConditions. Uses short-circuit logic (returns true on the first true it finds).

See Also:
Serialized Form

Constructor Summary
OrCondition()
           
 
Method Summary
 boolean execute(java.lang.Object victim)
           
 java.util.ArrayList getSubConditions()
           
 void setSubConditions(java.util.ArrayList newConditions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrCondition

public OrCondition()
Method Detail

execute

public boolean execute(java.lang.Object victim)
Specified by:
execute in interface UnaryPredicate

getSubConditions

public java.util.ArrayList getSubConditions()

setSubConditions

public void setSubConditions(java.util.ArrayList newConditions)