public class FilterChain extends java.lang.Object implements XMLizable
FilterChain
encapsulates a collection of Filter
objects.
FilterChain is a child node of the Constraint
XML block of a promotion and consists
of multiple filters that are applied in a contiguous fashion to an order, that is,
they are connected using a logical "and". This class extends the
XMLizable
interface. XML Snippet for FilterChain
:
<FilterChain impl="com.ibm.commerce.marketing.promotion.condition.FilterChain"> <!-- Multiple Filters can be specified --> <Filter></Filter> </FilterChain>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
FilterChain()
Default Constructor of FilterChain.
|
Modifier and Type | Method and Description |
---|---|
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
Filter |
getFilter(int index)
This method returns the filter at the specified index in the FilterChain.
|
int |
getSizeOfChain()
This method returns the size of FilterChain.
|
void |
setNextInChain(Filter newFilter)
This method adds the Filter to the Chain.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public Filter getFilter(int index)
index
- intFilter
public void setNextInChain(Filter newFilter)
newFilter
- public int getSizeOfChain()
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)