Class Address
java.lang.Object
com.broadleafcommerce.tabby.provider.domain.Address
- All Implemented Interfaces:
Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Add a value to the JSON data.protected boolean
boolean
Primary address information, typically street name and building number.getAttribute
(String name) Get a value from the JSON data.getCity()
The city, town or village of this address.The combined names of the individual at this address.JSON data for the address object which isn't already stored in other fields.The primaryphone number
for this address.Postal code or ZIP code for this address.int
hashCode()
void
setAddressLine1
(String addressLine1) Primary address information, typically street name and building number.void
The city, town or village of this address.void
setFullName
(String fullName) The combined names of the individual at this address.void
setJsonMap
(Map<String, Object> jsonMap) JSON data for the address object which isn't already stored in other fields.void
setPhonePrimary
(Phone phonePrimary) The primaryphone number
for this address.void
setPostalCode
(String postalCode) Postal code or ZIP code for this address.toString()
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
addAttribute
Add a value to the JSON data. Necessary for populating the JSON from the payload.- Parameters:
name
- the attribute namevalue
- the attribute value
-
getAttribute
Get a value from the JSON data. Necessary for populating the JSON from the payload.- Parameters:
name
- the attribute name
-
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
-
getAddressLine1
Primary address information, typically street name and building number.- Returns:
- Primary address information, typically street name and building number.
-
getCity
The city, town or village of this address.- Returns:
- The city, town or village of this address.
-
getPostalCode
Postal code or ZIP code for this address.- Returns:
- Postal code or ZIP code for this address.
-
getPhonePrimary
The primaryphone number
for this address.- Returns:
- The primary
phone number
for this address.
-
getJsonMap
JSON data for the address object which isn't already stored in other fields.- Returns:
- JSON order object data
-
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
-
setAddressLine1
Primary address information, typically street name and building number.- Parameters:
addressLine1
- Primary address information, typically street name and building number.
-
setCity
The city, town or village of this address.- Parameters:
city
- The city, town or village of this address.
-
setPostalCode
Postal code or ZIP code for this address.- Parameters:
postalCode
- Postal code or ZIP code for this address.
-
setPhonePrimary
The primaryphone number
for this address.- Parameters:
phonePrimary
- The primaryphone number
for this address.
-
setJsonMap
JSON data for the address object which isn't already stored in other fields.- Parameters:
jsonMap
- JSON order object data
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-