public class PriceThresholdFilter extends java.lang.Object implements Filter
<Filter impl="com.ibm.commerce.marketing.promotion.condition.PriceThresholdFilter"> <ThresholdPrice>200</ThresholdPrice> <Currency>CAD</Currency> </Filter>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
PriceThresholdFilter()
Constructor for PriceThresholdFilter.
|
Modifier and Type | Method and Description |
---|---|
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 | getCurrency()
This method gets the Currency.
|
java.math.BigDecimal | getThresholdPrice()
This method gets the ThresholdPrice.
|
boolean | isOfHigherPrice(java.math.BigDecimal price)
This method checks if Price of LineItem is greater than Threshold Price.
|
void | setCurrency(java.lang.String _currency)
This method sets the Currency.
|
void | setThresholdPrice(java.math.BigDecimal price)
This method sets the ThresholdPrice.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public PriceThresholdFilter()
public java.lang.String getCurrency()
public java.math.BigDecimal getThresholdPrice()
public void setCurrency(java.lang.String _currency)
public void setThresholdPrice(java.math.BigDecimal price)
public boolean isOfHigherPrice(java.math.BigDecimal price)
public LineItemSet filter(LineItemSet input, PromotionContext context)
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException