com.ibm.commerce.marketing.promotion.condition

Class ManufacturerFilter

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


    public class ManufacturerFilter
    extends java.lang.Object
    implements Filter
    ManufacturerFilter class filters LineItemSet based on the Manufacturer of the LineItems (of the LineItemSet). It returns all the LineItems whose Manufacturer is the same as mentioned in the filter.This class implements Filter interface. XML Snippet for this type of Filter.
      <Filter impl="com.ibm.commerce.marketing.promotion.condition.ManufacturerFilter">
                    <MFName>ManufacturerName</MFName>
      </Filter>
            
    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
      ManufacturerFilter()
      Constructor for ManufacturerFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean belongsToManufacturer(CatalogEntry catEntry)
      This method checks if the passed CatalogEntry belongs to the manufacturer.
      LineItemSet filter(LineItemSet input, PromotionContext context)
      This method performs the business logic to filter the input LineItemSet and return a subset of the original LineItemSet.
      void fromXML(org.w3c.dom.Node anXMLNode)
      Transforms the XML node into its corresponding real Object.
      java.lang.String getManufacturerName()
      This method gets the Manufacturer name.
      void setManufacturerName(java.lang.String mFName)
      This method sets the Manufacturer name.
      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

      • ManufacturerFilter

        public ManufacturerFilter()
        Constructor for ManufacturerFilter.
    • Method Detail

      • getManufacturerName

        public java.lang.String getManufacturerName()
        This method gets the Manufacturer name.
        Returns:
        java.lang.String Name of the Manufacturer
      • setManufacturerName

        public void setManufacturerName(java.lang.String mFName)
        This method sets the Manufacturer name.
        Parameters:
        mFName - java.lang.String Name of the Manufacturer
      • belongsToManufacturer

        public boolean belongsToManufacturer(CatalogEntry catEntry)
        This method checks if the passed CatalogEntry belongs to the manufacturer.
        Parameters:
        catEntry - CatalogEntry
        Returns:
        boolean
      • filter

        public LineItemSet filter(LineItemSet input,
                                  PromotionContext context)
        Description copied from interface: Filter
        This method performs the business logic to filter the input LineItemSet and return a subset of the original LineItemSet. An empty LineItemSet may be returned if no line item matches the filtering condition.
        Specified by:
        filter in interface Filter
        Parameters:
        input - LineItemSet
        context - PromotionContext
        Returns:
        the filtered LineItemSet
        See Also:
        Filter.filter(LineItemSet, PromotionContext)