com.ibm.commerce.condition
Class AndListCondition

java.lang.Object
  |
  +--com.ibm.commerce.condition.Condition
        |
        +--com.ibm.commerce.condition.ConditionList
              |
              +--com.ibm.commerce.condition.AndListCondition
All Implemented Interfaces:
ConditionConstants

public final class AndListCondition
extends ConditionList

This class describes a boolean expression that consists of a list of boolean expressions joined by the boolean AND operator.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from interface com.ibm.commerce.condition.ConditionConstants
AND_LIST_CONDITION, 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, XML_DTD_FRAGMENT, XML_INDENT
 
Constructor Summary
AndListCondition(Condition[] conditions)
          This constructor lets you specify an array of conditions that should be "anded" together.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this condition object.
 boolean evaluate(Evaluator evaluator)
          This method evaluates the "and list" condition.
 
Methods inherited from class com.ibm.commerce.condition.ConditionList
getConditions, setConditions
 
Methods inherited from class com.ibm.commerce.condition.Condition
getNot, getType, getXMLFragment, loadConditionFromXML, setNot, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
Constructor Detail

AndListCondition

public AndListCondition(Condition[] conditions)
This constructor lets you specify an array of conditions that should be "anded" together.
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Condition
Returns a clone of this condition object.
Overrides:
clone in class Condition
Following copied from class: com.ibm.commerce.condition.Condition
Returns:
A clone of this condition object.

evaluate

public boolean evaluate(Evaluator evaluator)
This method evaluates the "and list" condition. If all of the conditions in the list evaluates to true, then the condition will evaluate to true. Note that the result will be negated if the not property is true.
Overrides:
evaluate in class Condition
Parameters:
evaluator - An implementation of the Evaluator interface that is used to evaluate all of the simple and open conditions.
Returns:
true if the condition is true.