com.elasticpath.sfweb.formbean.impl
Class CheckoutAddressFormBeanImpl

java.lang.Object
  extended by com.elasticpath.sfweb.formbean.impl.EpFormBeanImpl
      extended by com.elasticpath.sfweb.formbean.impl.CheckoutAddressFormBeanImpl
All Implemented Interfaces:
CheckoutAddressFormBean, EpFormBean, java.io.Serializable

public class CheckoutAddressFormBeanImpl
extends EpFormBeanImpl
implements CheckoutAddressFormBean

Form bean for creating new addresses during the checkout.

See Also:
Serialized Form

Constructor Summary
CheckoutAddressFormBeanImpl()
           
 
Method Summary
 java.util.List getExistingAddresses()
          Get the available addresses that the customer may choose to ship to.
 CustomerAddress getNewAddress()
          Get a new Address object to store a newly entered address.
 boolean isShippingAddress()
          Returns true if the shipping address is being set.
 void setExistingAddresses(java.util.List existingAddresses)
          Set the available addresses that the customer may choose to ship to.
 void setNewAddress(CustomerAddress address)
          Set the address object to be used to record a new address.
 void setShippingAddress(boolean shippingAddress)
          Set whether the shipping address or billing address is being specified.
 
Methods inherited from class com.elasticpath.sfweb.formbean.impl.EpFormBeanImpl
getElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.sfweb.formbean.EpFormBean
getElasticPath
 

Constructor Detail

CheckoutAddressFormBeanImpl

public CheckoutAddressFormBeanImpl()
Method Detail

getExistingAddresses

public java.util.List getExistingAddresses()
Get the available addresses that the customer may choose to ship to.

Specified by:
getExistingAddresses in interface CheckoutAddressFormBean
Returns:
the list of addresses

getNewAddress

public CustomerAddress getNewAddress()
Get a new Address object to store a newly entered address.

Specified by:
getNewAddress in interface CheckoutAddressFormBean
Returns:
a new address object

isShippingAddress

public boolean isShippingAddress()
Returns true if the shipping address is being set. If false, then the billing address is being set.

Specified by:
isShippingAddress in interface CheckoutAddressFormBean
Returns:
true for shipping, false for billing

setExistingAddresses

public void setExistingAddresses(java.util.List existingAddresses)
Set the available addresses that the customer may choose to ship to.

Specified by:
setExistingAddresses in interface CheckoutAddressFormBean
Parameters:
existingAddresses - the list of addresses

setNewAddress

public void setNewAddress(CustomerAddress address)
Set the address object to be used to record a new address.

Specified by:
setNewAddress in interface CheckoutAddressFormBean
Parameters:
address - the new address

setShippingAddress

public void setShippingAddress(boolean shippingAddress)
Set whether the shipping address or billing address is being specified.

Specified by:
setShippingAddress in interface CheckoutAddressFormBean
Parameters:
shippingAddress - true for shipping, false for billing