public class DummyPurchaseCondition extends java.lang.Object implements Condition
DummyPurchaseCondition
class provides dummy implementation for Condition
interface. It does not define any requirements and always returns true. XML
Snippet for this type of Condition.
<PurchaseCondition impl="com.ibm.commerce.marketing.promotion.condition.DummyPurchaseCondition"/>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
DummyPurchaseCondition()
Constructor for DummyPurchaseCondition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(PromotionContext context)
Always returns true.
|
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public DummyPurchaseCondition()
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
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
anXMLNode
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)