com.ibm.commerce.condition
Class OrListCondition
- java.lang.Object
-
- com.ibm.commerce.condition.Condition
-
- com.ibm.commerce.condition.ConditionList
-
- com.ibm.commerce.condition.OrListCondition
-
- All Implemented Interfaces:
- com.ibm.commerce.base.helpers.Uniquifiable, ConditionConstants, com.ibm.commerce.datatype.Hashable, com.ibm.websphere.cache.Sizeable, java.io.Serializable
public final class OrListCondition extends ConditionList
This class describes a boolean expression that consists of a list of boolean expressions joined by the boolean OR operator.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
Copyright.-
Fields inherited from interface com.ibm.commerce.condition.ConditionConstants
AND_LIST_CONDITION, FALSE_VALUE, OPEN_CONDITION, OPERATOR_CONTAINS, OPERATOR_DOES_NOT_CONTAIN, OPERATOR_DOES_NOT_END_WITH, OPERATOR_DOES_NOT_START_WITH, OPERATOR_ENDS_WITH, OPERATOR_EQUAL_TO, OPERATOR_GREATER_THAN, OPERATOR_GREATER_THAN_OR_EQUAL_TO, OPERATOR_LESS_THAN, OPERATOR_LESS_THAN_OR_EQUAL_TO, OPERATOR_NOT_EQUAL_TO, OPERATOR_STARTS_WITH, OR_LIST_CONDITION, SIMPLE_CONDITION, TRUE_CONDITION, TRUE_VALUE, XML_DTD_FRAGMENT, XML_INDENT
-
-
Constructor Summary
Constructors Constructor and Description OrListCondition(Condition[] conditions)
This constructor lets you specify an array of conditions that should be "ored" together.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Object
clone()
Returns a clone of this condition object.boolean
evaluate(Evaluator evaluator)
This method evaluates the "or list" condition.-
Methods inherited from class com.ibm.commerce.condition.ConditionList
equals, getConditions, getObjectSize, hashCode, setConditions, uniquify
-
Methods inherited from class com.ibm.commerce.condition.Condition
getNot, getType, getXMLFragment, loadConditionFromXML, setNot
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
Copyright.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrListCondition
public OrListCondition(Condition[] conditions)
This constructor lets you specify an array of conditions that should be "ored" together.
-
-
Method Detail
-
clone
public java.lang.Object clone()
Description copied from class:Condition
Returns a clone of this condition object.
-
evaluate
public boolean evaluate(Evaluator evaluator)
This method evaluates the "or list" condition. If any of the conditions in the list evaluates to true, then the condition will evaluate to true. Note that the result will be negated if thenot
property istrue
.
-
-