com.elasticpath.domain.customer.impl
Class AbstractAddressImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractEntityImpl
              extended by com.elasticpath.domain.customer.impl.AbstractAddressImpl
All Implemented Interfaces:
Address, Entity, EpDomain, Persistence, ValueObject, java.io.Serializable
Direct Known Subclasses:
CustomerAddressImpl, OrderAddressImpl

public class AbstractAddressImpl
extends AbstractEntityImpl
implements Address

Implementation of a street address.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
AbstractAddressImpl()
           
 
Method Summary
 java.lang.String getCity()
          Gets the city of this Address.
 java.lang.String getCountry()
          Gets the country of this Address.
 java.lang.String getFaxNumber()
          Gets the fax number associated with this Address.
 java.lang.String getFirstName()
          Gets the first name associated with this Address.
 java.lang.String getLastName()
          Gets the last name associated with this Address.
 java.lang.String getPhoneNumber()
          Gets the phone number associated with this Address.
 java.lang.String getRegionPathStr()
          Return the string reprents the address's region path info, in the format of "[zip/postal code] [city] [subcountry] [country]".
 java.lang.String getStreet1()
          Gets the streetname of this Address.
 java.lang.String getStreet2()
          Gets the streetname of this Address.
 java.lang.String getSubCountry()
          Gets the state or province of this Address.
 java.lang.String getZipOrPostalCode()
          Gets the zip/postal code of this Address.
 boolean isCommercialAddress()
          True if this Address is a commercial address.
 void setCity(java.lang.String city)
          Sets the city of this Address.
 void setCommercialAddress(boolean commercialAddress)
          Sets whether this Address is a commercial address.
 void setCountry(java.lang.String country)
          Sets the country of this Address.
 void setFaxNumber(java.lang.String faxNumber)
          Sets the fax number associated with this Address.
 void setFirstName(java.lang.String firstName)
          Sets the first name associated with this Address.
 void setLastName(java.lang.String lastName)
          Sets the last name associated with this Address.
 void setPhoneNumber(java.lang.String phoneNumber)
          Sets the phone number associated with this Address.
 void setStreet1(java.lang.String street)
          Sets the streetname of this Address.
 void setStreet2(java.lang.String street)
          Sets the streetname of this Address.
 void setSubCountry(java.lang.String subCountry)
          Sets the state or province of this Address.
 void setZipOrPostalCode(java.lang.String zipOrPostalCode)
          Sets the zip/postal code of this Address.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl
convertAttributeGroupAttributes, getGuid, setDefaultValues, setGuid
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.customer.Address
getGuid, setGuid
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

AbstractAddressImpl

public AbstractAddressImpl()
Method Detail

getCity

public java.lang.String getCity()
Gets the city of this Address.

Specified by:
getCity in interface Address
Returns:
the city.

getCountry

public java.lang.String getCountry()
Gets the country of this Address.

Specified by:
getCountry in interface Address
Returns:
the country.

getFaxNumber

public java.lang.String getFaxNumber()
Gets the fax number associated with this Address.

Specified by:
getFaxNumber in interface Address
Returns:
the fax number.

getFirstName

public java.lang.String getFirstName()
Gets the first name associated with this Address.

Specified by:
getFirstName in interface Address
Returns:
the first name

getLastName

public java.lang.String getLastName()
Gets the last name associated with this Address.

Specified by:
getLastName in interface Address
Returns:
the last name

getPhoneNumber

public java.lang.String getPhoneNumber()
Gets the phone number associated with this Address.

Specified by:
getPhoneNumber in interface Address
Returns:
the phone number.

getRegionPathStr

public java.lang.String getRegionPathStr()
Return the string reprents the address's region path info, in the format of "[zip/postal code] [city] [subcountry] [country]". An example will be "V5Y 1N3 Vancouver BC CA".

Specified by:
getRegionPathStr in interface Address
Returns:
the string reprents the address's region path info

getStreet1

public java.lang.String getStreet1()
Gets the streetname of this Address.

Specified by:
getStreet1 in interface Address
Returns:
the streetname.

getStreet2

public java.lang.String getStreet2()
Gets the streetname of this Address.

Specified by:
getStreet2 in interface Address
Returns:
the streetname.

getSubCountry

public java.lang.String getSubCountry()
Gets the state or province of this Address.

Specified by:
getSubCountry in interface Address
Returns:
the state or province.

getZipOrPostalCode

public java.lang.String getZipOrPostalCode()
Gets the zip/postal code of this Address.

Specified by:
getZipOrPostalCode in interface Address
Returns:
the zip/postal code.

isCommercialAddress

public boolean isCommercialAddress()
True if this Address is a commercial address.

Specified by:
isCommercialAddress in interface Address
Returns:
true if the address is commercial.

setCity

public void setCity(java.lang.String city)
Sets the city of this Address.

Specified by:
setCity in interface Address
Parameters:
city - the new city.

setCommercialAddress

public void setCommercialAddress(boolean commercialAddress)
Sets whether this Address is a commercial address.

Specified by:
setCommercialAddress in interface Address
Parameters:
commercialAddress - Set to true for commercial addresses.

setCountry

public void setCountry(java.lang.String country)
Sets the country of this Address.

Specified by:
setCountry in interface Address
Parameters:
country - the new country.

setFaxNumber

public void setFaxNumber(java.lang.String faxNumber)
Sets the fax number associated with this Address.

Specified by:
setFaxNumber in interface Address
Parameters:
faxNumber - the new fax number.

setFirstName

public void setFirstName(java.lang.String firstName)
Sets the first name associated with this Address.

Specified by:
setFirstName in interface Address
Parameters:
firstName - the new phone number.

setLastName

public void setLastName(java.lang.String lastName)
Sets the last name associated with this Address.

Specified by:
setLastName in interface Address
Parameters:
lastName - the new phone number.

setPhoneNumber

public void setPhoneNumber(java.lang.String phoneNumber)
Sets the phone number associated with this Address.

Specified by:
setPhoneNumber in interface Address
Parameters:
phoneNumber - the new phone number.

setStreet1

public void setStreet1(java.lang.String street)
Sets the streetname of this Address.

Specified by:
setStreet1 in interface Address
Parameters:
street - the new streetname.

setStreet2

public void setStreet2(java.lang.String street)
Sets the streetname of this Address.

Specified by:
setStreet2 in interface Address
Parameters:
street - the new streetname.

setSubCountry

public void setSubCountry(java.lang.String subCountry)
Sets the state or province of this Address.

Specified by:
setSubCountry in interface Address
Parameters:
subCountry - the new state or province.

setZipOrPostalCode

public void setZipOrPostalCode(java.lang.String zipOrPostalCode)
Sets the zip/postal code of this Address.

Specified by:
setZipOrPostalCode in interface Address
Parameters:
zipOrPostalCode - the new zip/postal code.