public class CatalogEntryGiftItem extends java.lang.Object implements GiftItem
<p> <GiftItem impl="com.ibm.commerce.marketing.promotion.choice.gift.CatalogEntryGiftItem"> <Quantity>1</Quantity> <CatalogEntryKey> <SKU>SKU-20101099</SKU> <DN>o=Root Organization</DN> </CatalogEntryKey> </GiftItem> </p>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
TAG_CATALOG_ENTRY_KEY
XML tag - CatalogEntryKey
|
static java.lang.String |
TAG_QUANTITY
XML tag - Quantity
|
ATTRIBUTE_NAME_IMPL, TAG_GIFT_ITEM
Constructor and Description |
---|
CatalogEntryGiftItem() |
Modifier and Type | Method and Description |
---|---|
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
Key |
getKey()
Gets the key object for the gift item.
|
java.lang.Integer |
getQuantity()
Gets the quantity associated with this gift item.
|
void |
setKey(Key aKey)
Sets a CatalogEntryKey object as the gift item key.
|
void |
setQuantity(java.lang.Integer aQuantity)
Sets the quantity associated with this gift item.
|
java.lang.String |
toXML()
Please note that this implementation will cache the result XML after
first call to this method.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String TAG_QUANTITY
public static final java.lang.String TAG_CATALOG_ENTRY_KEY
public Key getKey()
getKey
in interface GiftItem
GiftItem.getKey()
public void setKey(Key aKey)
public java.lang.Integer getQuantity()
getQuantity
in interface GiftItem
GiftItem.getQuantity()
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(org.w3c.dom.Node)
public java.lang.String toXML() throws XMLizationException
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void setQuantity(java.lang.Integer aQuantity)
setQuantity
in interface GiftItem
aQuantity
- The quantity to set.