com.google.checkout.checkout
Class ShipFrom

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

public class ShipFrom
extends java.lang.Object

This class encapsulates the <ship-from> element.

Author:
simonjsmith

Constructor Summary
ShipFrom()
          The default constructor.
 
Method Summary
 org.w3c.dom.Element getRootElement()
          Get the root element, <ship-from>
 void setCity(java.lang.String city)
          Set the city.
 void setCountryCode(java.lang.String countryCode)
          Set the countryCode.
 void setId(java.lang.String id)
          Set the id.
 void setPostalCode(java.lang.String postalCode)
          Set the postalCode.
 void setRegion(java.lang.String region)
          Set the region.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShipFrom

public ShipFrom()
The default constructor.

Method Detail

setId

public void setId(java.lang.String id)
Set the id.

Parameters:
id - The id of the ShipFrom instance.

setCity

public void setCity(java.lang.String city)
Set the city.

Parameters:
city - The city.

setCountryCode

public void setCountryCode(java.lang.String countryCode)
Set the countryCode.

Parameters:
countryCode - The countryCode.

setPostalCode

public void setPostalCode(java.lang.String postalCode)
Set the postalCode.

Parameters:
postalCode - The postalCode.

setRegion

public void setRegion(java.lang.String region)
Set the region.

Parameters:
region - The region.

getRootElement

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

Returns:
The root element, <ship-from>.