public class DummyPatternFilter extends java.lang.Object implements PatternFilter
DummyPatternFilter
class provides dummy implementation for PatternFilter
interface. It doesn't do any filtration on the LineItemSet
passed as input but
returns true always.
XML Snippet for this type of PatternFilter
.
<PatternFilter impl="com.ibm.commerce.marketing.promotion.condition.DummyPatternFilter"/>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
DummyPatternFilter()
Constructor for DummyPatternFilter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(LineItemSet input,
PromotionContext context)
This method checks if the
LineItemSet passed as input
satisfies the condition specified in the filter. |
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 DummyPatternFilter()
public boolean evaluate(LineItemSet input, PromotionContext context)
PatternFilter
LineItemSet
passed as input
satisfies the condition specified in the filter.evaluate
in interface PatternFilter
input
- LineItemSet
context
- PromotionContext
true
if condition satisfied;
false
otherwisePatternFilter.evaluate(LineItemSet, 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)