public class AdjustmentFunction extends java.lang.Object implements XMLizable
<AdjustmentFunction impl="com.ibm.commerce.marketing.promotion.reward.AdjustmentFunction"> <FilterChain impl="com.ibm.commerce.marketing.promotion.condition.FilterChain"> <!-- Multiple Filters can be specified --> <Filter></Filter> </FilterChain> <Adjustment></Adjustment> </AdjustmentFunction>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AdjustmentFunction()
Constructor for AdjustmentFunction.
|
Modifier and Type | Method and Description |
---|---|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
Adjustment | getAdjustment()
This method gets the Adjustment of this AdjustmentFunction.
|
FilterChain | getFilterChain()
This method gets the FilterChain for this AdjustmentFunction.
|
boolean | invoke(LineItemSet targetedItems, java.math.BigDecimal targetedAmount, int targetedAmountTypes, java.util.Vector affectedItemsVector, java.util.Vector adjustmentsVector, PromotionContext context)
This method gets the filter list of the adjustment function and applies all the filters to the targeted order items to obtain the affected order items.
|
void | setAdjustment(Adjustment newAdjustment)
This method sets the Adjustment for this AdjustmentFunction.
|
void | setFilterChain(FilterChain _filterChain)
This method sets the FilterChain for this AdjustmentFunction.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public AdjustmentFunction()
public Adjustment getAdjustment()
public FilterChain getFilterChain()
public void setAdjustment(Adjustment newAdjustment)
public void setFilterChain(FilterChain _filterChain)
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public boolean invoke(LineItemSet targetedItems, java.math.BigDecimal targetedAmount, int targetedAmountTypes, java.util.Vector affectedItemsVector, java.util.Vector adjustmentsVector, PromotionContext context) throws PromotionRuntimeException