|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.checkout.Item
public class Item
This class encapsulates the <item> element.
Constructor Summary | |
---|---|
Item()
The default constructor. |
|
Item(org.w3c.dom.Document document,
org.w3c.dom.Element element)
A constructor which takes the document and element pointing to the <item> tag. |
Method Summary | |
---|---|
DigitalContent |
getDigitalContent()
Retrieve the contents of the <digital-content> tag as a DigitalContent object. |
java.lang.String |
getItemDescription()
Retrieve the contents of the <item-description> tag. |
java.lang.String |
getItemName()
Retrieve the contents of the <item-name> tag. |
float |
getItemWeight()
Retrieve the contents of the <item-weight> tag. |
java.lang.String |
getItemWeightUnit()
Retrieve the contents of the unit attribute of the <item-weight> tag. |
java.lang.String |
getMerchantItemId()
Retrieve the contents of the <merchant-item-id> tag. |
org.w3c.dom.Element[] |
getMerchantPrivateItemData()
Retrieve the contents of the <merchant-private-item-data> tag as an array of Elements. |
int |
getQuantity()
Retrieve the contents of the <quantity> tag. |
org.w3c.dom.Element |
getRootElement()
Get the root element, <item> |
java.lang.String |
getTaxTableSelector()
Retrieve the contents of the <tax-table-selector> tag. |
float |
getUnitPriceAmount()
Retrieve the contents of the <unit-price> tag. |
java.lang.String |
getUnitPriceCurrency()
Retrieve the contents of the currency attribute of the <unit-price> tag. |
void |
setDigitalContent(DigitalContent digitalContent)
Set the contents of the <digital-content> tag as a DigitalContent object. |
void |
setItemDescription(java.lang.String description)
Set the contents of the <item-description> tag. |
void |
setItemName(java.lang.String itemName)
Set the contents of the <item-name> tag. |
void |
setItemWeight(float itemWeight)
Set the contents of the currency attribute of the <item-weight> tag. |
void |
setItemWeightUnit(java.lang.String itemWeightUnit)
Set the contents of the unit attribute of the <item-weight> tag. |
void |
setMerchantItemId(java.lang.String merchantItemId)
Set the contents of the <merchant-item-id> tag. |
void |
setMerchantPrivateItemData(org.w3c.dom.Element[] elements)
Set the contents of the <merchant-private-item-data> tag as an array of Elements. |
void |
setQuantity(int quantity)
Set the contents of the <quantity> tag. |
void |
setTaxTableSelector(java.lang.String taxTableSelector)
Set the contents of the <tax-table-selector> tag. |
void |
setUnitPriceAmount(float unitPriceAmount)
Set the contents of the <unit-price> tag. |
void |
setUnitPriceCurrency(java.lang.String unitPriceCurrencyCode)
Set the contents of the currency attribute of the <unit-price> tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Item(org.w3c.dom.Document document, org.w3c.dom.Element element)
document
- The document.element
- The element.public Item()
Method Detail |
---|
public java.lang.String getItemDescription()
public java.lang.String getItemName()
public java.lang.String getMerchantItemId()
public org.w3c.dom.Element[] getMerchantPrivateItemData()
Element
public int getQuantity()
public java.lang.String getTaxTableSelector()
public float getUnitPriceAmount()
public java.lang.String getUnitPriceCurrency()
public float getItemWeight()
public java.lang.String getItemWeightUnit()
public void setItemDescription(java.lang.String description)
description
- The item description.public void setItemName(java.lang.String itemName)
itemName
- The item name.public void setMerchantItemId(java.lang.String merchantItemId)
merchantItemId
- The merchant item id.public void setMerchantPrivateItemData(org.w3c.dom.Element[] elements)
elements
- The private data elements.Element
public void setQuantity(int quantity)
quantity
- The quantity as an int.public void setTaxTableSelector(java.lang.String taxTableSelector)
taxTableSelector
- The tax table selector name.public void setUnitPriceAmount(float unitPriceAmount)
unitPriceAmount
- The unit price as a float.public void setUnitPriceCurrency(java.lang.String unitPriceCurrencyCode)
unitPriceCurrencyCode
- The currency code.public void setItemWeight(float itemWeight)
itemWeight
- The item weight.public void setItemWeightUnit(java.lang.String itemWeightUnit)
itemWeightUnit
- The item weight unit.public DigitalContent getDigitalContent()
DigitalContent
public void setDigitalContent(DigitalContent digitalContent)
digitalContent
- The DigitalContent object.DigitalContent
public org.w3c.dom.Element getRootElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |