com.ibm.commerce.condition
Class TrueCondition

java.lang.Object
  com.ibm.commerce.condition.Condition
      com.ibm.commerce.condition.TrueCondition
All Implemented Interfaces:
ConditionConstants

public final class TrueCondition
extends Condition

This class describes a boolean expression that always evaluates as true.


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
TrueCondition()
Default constructor.
Method Summary
java.lang.Object clone()
Returns a clone of this condition object.
boolean evaluate(Evaluator evaluator)
This method will evaluate the true condition.
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.
See Also:
Constant Field Values
Constructor Detail

TrueCondition

public TrueCondition()
Default constructor.
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Condition
Returns a clone of this condition object.
Specified by:
clone in class Condition
Returns:
A clone of this condition object.

evaluate

public boolean evaluate(Evaluator evaluator)
This method will evaluate the true condition. A true condition will always return true unless the not property is set to true.
Specified by:
evaluate in class Condition
Parameters:
evaluator - An implementation of the Evaluator interface.
Returns:
true if the condition is true.

Feedback