Class Address
java.lang.Object
com.broadleafcommerce.order.common.domain.Address
- All Implemented Interfaces:
Serializable
The street address for a physical location.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Primary address information, typically street name and building number.Secondary address information, like apartment, suite, or unit number.Tertiary address information, typically for international addresses.getCity()The city, town or village of this address.The name of the company at this address.Returns the completed name : Either thefullNameif present or the concatenation of thefirstNameandlastName.The country for this address.The county of this address.The email address of the individual at this physical address.The first name of the individual at this address.The combined names of the individual at this address.The last name of the individual at this address.Thefax numberfor this address.The primaryphone numberfor this address.The secondaryphone numberfor this address.Postal code or ZIP code for this address.The state, province or region of this address.inthashCode()booleanisActive()Whether this address is an active address of the owner.booleanWhether this address is the default address of the owner.voidsetActive(boolean isActive) Whether this address is an active address of the owner.voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetAddressLine1(String addressLine1) Primary address information, typically street name and building number.voidsetAddressLine2(String addressLine2) Secondary address information, like apartment, suite, or unit number.voidsetAddressLine3(String addressLine3) Tertiary address information, typically for international addresses.voidThe city, town or village of this address.voidsetCompanyName(String companyName) The name of the company at this address.voidsetCountry(String country) The country for this address.voidThe county of this address.voidsetDefault(boolean isDefault) Whether this address is the default address of the owner.voidsetEmailAddress(String emailAddress) The email address of the individual at this physical address.voidsetFirstName(String firstName) The first name of the individual at this address.voidsetFullName(String fullName) The combined names of the individual at this address.voidsetLastName(String lastName) The last name of the individual at this address.voidsetPhoneFax(Phone phoneFax) Thefax numberfor this address.voidsetPhonePrimary(Phone phonePrimary) The primaryphone numberfor this address.voidsetPhoneSecondary(Phone phoneSecondary) The secondaryphone numberfor this address.voidsetPostalCode(String postalCode) Postal code or ZIP code for this address.voidsetStateProvinceRegion(String stateProvinceRegion) The state, province or region of this address.toString()
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
addAdditionalAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getAdditionalAttributes
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getCompletedName
Returns the completed name : Either thefullNameif present or the concatenation of thefirstNameandlastName.- Returns:
- the completed name : Either the
fullNameif present or the concatenation of thefirstNameandlastName.
-
getFirstName
The first name of the individual at this address.- Returns:
- The first name of the individual at this address.
-
getLastName
The last name of the individual at this address.- Returns:
- The last name of the individual at this address.
-
getFullName
The combined names of the individual at this address. It is considered better UX to use a full name field in place of separate first and last name fields.- Returns:
- The combined names of the individual at this address
-
getEmailAddress
The email address of the individual at this physical address.- Returns:
- The email address of the individual at this physical address.
-
getCompanyName
The name of the company at this address.- Returns:
- The name of the company at this address.
-
getAddressLine1
Primary address information, typically street name and building number.- Returns:
- Primary address information, typically street name and building number.
-
getAddressLine2
Secondary address information, like apartment, suite, or unit number.- Returns:
- Secondary address information, like apartment number or suite number.
-
getAddressLine3
Tertiary address information, typically for international addresses.- Returns:
- Tertiary address information, typically for international addresses.
-
getCity
The city, town or village of this address.- Returns:
- The city, town or village of this address.
-
getStateProvinceRegion
The state, province or region of this address.- Returns:
- The state, province or region of this address.
-
getCounty
The county of this address.- Returns:
- The county of this address.
-
getCountry
The country for this address.- Returns:
- The country for this address.
-
getPostalCode
Postal code or ZIP code for this address.- Returns:
- Postal code or ZIP code for this address.
-
getPhonePrimary
The primaryphone numberfor this address.- Returns:
- The primary
phone numberfor this address.
-
getPhoneSecondary
The secondaryphone numberfor this address.- Returns:
- The secondary
phone numberfor this address.
-
getPhoneFax
Thefax numberfor this address.- Returns:
- The
fax numberfor this address.
-
isDefault
public boolean isDefault()Whether this address is the default address of the owner.- Returns:
- Whether this address is the default address of the owner.
-
isActive
public boolean isActive()Whether this address is an active address of the owner.- Returns:
- Whether this address is an active address of the owner.
-
setFirstName
The first name of the individual at this address.- Parameters:
firstName- The first name of the individual at this address.
-
setLastName
The last name of the individual at this address.- Parameters:
lastName- The last name of the individual at this address.
-
setFullName
The combined names of the individual at this address. It is considered better UX to use a full name field in place of separate first and last name fields.- Parameters:
fullName- The combined names of the individual at this address
-
setEmailAddress
The email address of the individual at this physical address.- Parameters:
emailAddress- The email address of the individual at this physical address.
-
setCompanyName
The name of the company at this address.- Parameters:
companyName- The name of the company at this address.
-
setAddressLine1
Primary address information, typically street name and building number.- Parameters:
addressLine1- Primary address information, typically street name and building number.
-
setAddressLine2
Secondary address information, like apartment, suite, or unit number.- Parameters:
addressLine2- Secondary address information, like apartment number or suite number.
-
setAddressLine3
Tertiary address information, typically for international addresses.- Parameters:
addressLine3- Tertiary address information, typically for international addresses.
-
setCity
The city, town or village of this address.- Parameters:
city- The city, town or village of this address.
-
setStateProvinceRegion
The state, province or region of this address.- Parameters:
stateProvinceRegion- The state, province or region of this address.
-
setCounty
The county of this address.- Parameters:
county- The county of this address.
-
setCountry
The country for this address.- Parameters:
country- The country for this address.
-
setPostalCode
Postal code or ZIP code for this address.- Parameters:
postalCode- Postal code or ZIP code for this address.
-
setPhonePrimary
The primaryphone numberfor this address.- Parameters:
phonePrimary- The primaryphone numberfor this address.
-
setPhoneSecondary
The secondaryphone numberfor this address.- Parameters:
phoneSecondary- The secondaryphone numberfor this address.
-
setPhoneFax
Thefax numberfor this address.- Parameters:
phoneFax- Thefax numberfor this address.
-
setDefault
public void setDefault(boolean isDefault) Whether this address is the default address of the owner.- Parameters:
isDefault- Whether this address is the default address of the owner.
-
setActive
public void setActive(boolean isActive) Whether this address is an active address of the owner.- Parameters:
isActive- Whether this address is an active address of the owner.
-
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-