com.google.checkout.notification
Class ShoppingCart
java.lang.Object
com.google.checkout.notification.ShoppingCart
public class ShoppingCart
- extends java.lang.Object
- Author:
- Charles Dang (cdang@google.com)
Constructor Summary |
ShoppingCart(org.w3c.dom.Document document,
org.w3c.dom.Element shoppingCart)
|
Method Summary |
java.util.Date |
getCartExpiration()
Retrieves the value of the <good-until-date> element. |
java.util.Collection |
getItems()
Retrieves the contents of the <items> element as a Collection of Item
objects. |
org.w3c.dom.Element[] |
getMerchantPrivateDataNodes()
Retrieves the contents of the <merchant-private-data> element as an
array of Elements. |
void |
setMerchantPrivateDataNodes(org.w3c.dom.Element[] elements)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingCart
public ShoppingCart(org.w3c.dom.Document document,
org.w3c.dom.Element shoppingCart)
getCartExpiration
public java.util.Date getCartExpiration()
throws CheckoutException
- Retrieves the value of the <good-until-date> element.
- Returns:
- The cart expiration.
- Throws:
com.google.checkout.exceptions.CheckoutException
- if there was an
error retrieving the cart expiration date
CheckoutException
- See Also:
Date
getItems
public java.util.Collection getItems()
- Retrieves the contents of the <items> element as a Collection of Item
objects.
- Returns:
- The Collection of Item objects.
- See Also:
Item
getMerchantPrivateDataNodes
public org.w3c.dom.Element[] getMerchantPrivateDataNodes()
- Retrieves the contents of the <merchant-private-data> element as an
array of Elements.
- Returns:
- The contents <merchant-private-data> element value.
- See Also:
Element
setMerchantPrivateDataNodes
public void setMerchantPrivateDataNodes(org.w3c.dom.Element[] elements)