com.google.checkout.checkout
Class TaxArea

java.lang.Object
  extended by com.google.checkout.checkout.TaxArea

public class TaxArea
extends java.lang.Object

This class represents the <tax-area> tag in the Checkout API.

Author:
simonjsmith

Constructor Summary
TaxArea()
           
 
Method Summary
 void addCountryArea(USArea countryArea)
          Add a <us-country-area> tag to the <tax-area> tag.
 void addPostalArea(java.lang.String countryCode)
          This method adds a <postal-area> element.
 void addPostalArea(java.lang.String countryCode, java.lang.String postalCodePattern)
          This method adds a <postal-area> element.
 void addStateCode(java.lang.String stateCode)
          Add a <state> and encolsing <us-state-area> to the <tax-area> tag.
 void addWorldArea()
          This method adds a <world-area> element.
 void addZipPattern(java.lang.String zipPattern)
          Add a <zip-pattern> and encolsing <us-zip-area> to the <tax-area> tag.
 org.w3c.dom.Element getRootElement()
          Get the root element, <tax-area>
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxArea

public TaxArea()
Method Detail

addCountryArea

public void addCountryArea(USArea countryArea)
Add a <us-country-area> tag to the <tax-area> tag.

Parameters:
countryArea - The US country area.
See Also:
USArea

addStateCode

public void addStateCode(java.lang.String stateCode)
Add a <state> and encolsing <us-state-area> to the <tax-area> tag.

Parameters:
stateCode - The state code.

addZipPattern

public void addZipPattern(java.lang.String zipPattern)
Add a <zip-pattern> and encolsing <us-zip-area> to the <tax-area> tag.

Parameters:
zipPattern - The Zip Pattern.

getRootElement

public org.w3c.dom.Element getRootElement()
Get the root element, <tax-area>

Returns:
The root element, <tax-atea>.

addPostalArea

public void addPostalArea(java.lang.String countryCode,
                          java.lang.String postalCodePattern)
This method adds a <postal-area> element. The <country-code> element and optionally the <postal-code-pattern> are subelements .

Parameters:
countryCode - The country code.
postalCodePattern - The Postal Code Pattern.

addPostalArea

public void addPostalArea(java.lang.String countryCode)
This method adds a <postal-area> element.

Parameters:
countryCode - The country code.

addWorldArea

public void addWorldArea()
This method adds a <world-area> element.