com.ibm.commerce.marketing.promotion.condition

Class FilterChain

  • java.lang.Object
    • com.ibm.commerce.marketing.promotion.condition.FilterChain
  • All Implemented Interfaces:
    XMLizable, java.io.Serializable


    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>
            
     
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      FilterChain()
      Default Constructor of FilterChain.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FilterChain

        public FilterChain()
        Default Constructor of FilterChain.
    • Method Detail

      • getFilter

        public Filter getFilter(int index)
        This method returns the filter at the specified index in the FilterChain.
        Parameters:
        index - int
        Returns:
        Filter
      • setNextInChain

        public void setNextInChain(Filter newFilter)
        This method adds the Filter to the Chain.
        Parameters:
        newFilter -
      • getSizeOfChain

        public int getSizeOfChain()
        This method returns the size of FilterChain.
        Returns:
        int size of FilterChain.