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>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ManufacturerFilter()
Constructor for ManufacturerFilter.
|
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.
|
public static final java.lang.String COPYRIGHT
public ManufacturerFilter()
public java.lang.String getManufacturerName()
public void setManufacturerName(java.lang.String mFName)
mFName
- java.lang.String Name of the Manufacturerpublic boolean belongsToManufacturer(CatalogEntry catEntry)
catEntry
- CatalogEntry
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)