com.google.checkout.merchantcalculation
Class AnonymousAddress

java.lang.Object
  extended by com.google.checkout.merchantcalculation.AnonymousAddress

public class AnonymousAddress
extends java.lang.Object

This class encapsulates the <anonymous-address> element, used as part of the Merchant Calculations API.

Author:
simonjsmith

Constructor Summary
AnonymousAddress(org.w3c.dom.Document document, org.w3c.dom.Element element)
          A constructor which takes the document and element pointing to the <anonymous-address> tag.
 
Method Summary
 java.lang.String getCity()
          Retrieve the contents of the <city> tag.
 java.lang.String getCountryCode()
          Retrieve the contents of the <country-code> tag.
 java.lang.String getId()
          Retrieve the contents of the <id> tag.
 java.lang.String getPostalCode()
          Retrieve the contents of the <postal-code> tag.
 java.lang.String getRegion()
          Retrieve the contents of the <region> tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonymousAddress

public AnonymousAddress(org.w3c.dom.Document document,
                        org.w3c.dom.Element element)
A constructor which takes the document and element pointing to the <anonymous-address> tag.

Parameters:
document - The document.
element - The element.
Method Detail

getCity

public java.lang.String getCity()
Retrieve the contents of the <city> tag.

Returns:
The city.

getCountryCode

public java.lang.String getCountryCode()
Retrieve the contents of the <country-code> tag.

Returns:
The Country Code.

getId

public java.lang.String getId()
Retrieve the contents of the <id> tag.

Returns:
The id.

getPostalCode

public java.lang.String getPostalCode()
Retrieve the contents of the <postal-code> tag.

Returns:
The Postal Code.

getRegion

public java.lang.String getRegion()
Retrieve the contents of the <region> tag.

Returns:
The Region.