public class AlwaysTrueCondition extends java.lang.Object implements Condition
<Condition impl="com.ibm.commerce.marketing.promotion.condition.AlwaysTrueCondition">
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AlwaysTrueCondition()
Constructor for AlwaysTrueCondition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(PromotionContext context)
This method always returns true.
|
void |
fromXML(org.w3c.dom.Node anXMLNode)
This method is used to build an object from its XML representation.
|
java.lang.String |
toXML()
This method is used to construct an XML node for Condition.
|
public static final java.lang.String COPYRIGHT
public AlwaysTrueCondition()
public boolean evaluate(PromotionContext context) throws PromotionConditionEvaluationException
evaluate
in interface Condition
context
- The PromotionContext.PromotionConditionEvaluationException
- This exception is thrown if the evaluation encounters
unexpected problems.Condition.evaluate(PromotionContext)
public java.lang.String toXML() throws XMLizationException
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
fromXML
in interface XMLizable
anXMLNode
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)