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 Filter
.
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 and Description |
---|
PriceComparisonFilter()
Deprecated.
Constructor for PriceComparisonFilter.
|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CRITERIA_UPTO
public static final java.lang.String CRITERIA_EXACT
public static final java.lang.Integer HIGH
public static final java.lang.Integer LOW
public PriceComparisonFilter()
public java.lang.Integer getType()
1
if high; 0
otherwisepublic int getNoOfItems()
public void setType(java.lang.Integer newType)
newType
- java.lang.Integerpublic java.lang.String getFilterCriteria()
upto
;exact
public void setFilterCriteria(java.lang.String _filterCriteria)
filterCriteria
- java.lang.Stringpublic void setNoOfItems(int _noOfItems)
_noOfItems
- The number of items to be set.public LineItemSet filter(LineItemSet input, PromotionContext context)
Filter
filter
in interface Filter
input
- LineItemSet
context
- PromotionContext
LineItemSet
Filter.filter(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)