com.ibm.commerce.marketing.promotion.condition

Class PriceComparisonFilter

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

    Deprecated. 
    please use OrderedQuantityFilter instead

    public class PriceComparisonFilter
    extends java.lang.Object
    implements Filter
    PriceComparisonFilter sorts the LineItemSet and returns the specified number of either highest priced or lowest priced LineItems. This class implements interface. XML Snippet for this type of Filter. highest upto 2
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Deprecated. 
      IBM copyright notice field.
      static java.lang.String CRITERIA_EXACT
      Deprecated. 
      XML value exact
      static java.lang.String CRITERIA_UPTO
      Deprecated. 
      XML value upto
      static java.lang.Integer HIGH
      Deprecated. 
      Indicates Highest priced LineItems to be selected.
      static java.lang.Integer LOW
      Deprecated. 
      Indicates Lowest priced LineItems to be selected.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PriceComparisonFilter()
      Deprecated. 
      Constructor for PriceComparisonFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      LineItemSet filter(LineItemSet input, PromotionContext context)
      Deprecated. 
      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)
      Deprecated. 
      Transforms the XML node into its corresponding real Object.
      java.lang.String getFilterCriteria()
      Deprecated. 
      This method returns the FilterCriteria.
      int getNoOfItems()
      Deprecated. 
      This method returns the number of items to be selected.
      java.lang.Integer getType()
      Deprecated. 
      This method gets the type of the selection.
      void setFilterCriteria(java.lang.String _filterCriteria)
      Deprecated. 
      This method returns the FilterCriteria.
      void setNoOfItems(int _noOfItems)
      Deprecated. 
      This method sets the number of items to be selected.
      void setType(java.lang.Integer newType)
      Deprecated. 
      This method sets the type of the selection.
      java.lang.String toXML()
      Deprecated. 
      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
        Deprecated. 
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • CRITERIA_UPTO

        public static final java.lang.String CRITERIA_UPTO
        Deprecated. 
        XML value upto
        See Also:
        Constant Field Values
      • CRITERIA_EXACT

        public static final java.lang.String CRITERIA_EXACT
        Deprecated. 
        XML value exact
        See Also:
        Constant Field Values
      • HIGH

        public static final java.lang.Integer HIGH
        Deprecated. 
        Indicates Highest priced LineItems to be selected.
      • LOW

        public static final java.lang.Integer LOW
        Deprecated. 
        Indicates Lowest priced LineItems to be selected.
    • Constructor Detail

      • PriceComparisonFilter

        public PriceComparisonFilter()
        Deprecated. 
        Constructor for PriceComparisonFilter.
    • Method Detail

      • getType

        public java.lang.Integer getType()
        Deprecated. 
        This method gets the type of the selection.
        Returns:
        java.lang.Integer 1 if high; 0 otherwise
      • getNoOfItems

        public int getNoOfItems()
        Deprecated. 
        This method returns the number of items to be selected.
        Returns:
        int Number Of Items
      • setType

        public void setType(java.lang.Integer newType)
        Deprecated. 
        This method sets the type of the selection.
        Parameters:
        newType - java.lang.Integer
      • getFilterCriteria

        public java.lang.String getFilterCriteria()
        Deprecated. 
        This method returns the FilterCriteria.
        Returns:
        java.lang.String upto;exact
      • setFilterCriteria

        public void setFilterCriteria(java.lang.String _filterCriteria)
        Deprecated. 
        This method returns the FilterCriteria.
        Parameters:
        filterCriteria - java.lang.String
      • setNoOfItems

        public void setNoOfItems(int _noOfItems)
        Deprecated. 
        This method sets the number of items to be selected.
        Parameters:
        _noOfItems - The number of items to be set.
      • filter

        public LineItemSet filter(LineItemSet input,
                                  PromotionContext context)
        Deprecated. 
        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)
      • toXML

        public java.lang.String toXML()
                               throws XMLizationException
        Deprecated. 
        Description copied from interface: XMLizable
        Converts the object into its corresponding XML format representation.
        Specified by:
        toXML in interface XMLizable
        Returns:
        The string format of the XML that represents this XMLizable object
        Throws:
        XMLizationException - when this process fails
        See Also:
        XMLizable.toXML()