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 TypeMethodDescriptionvoidaddAttribute(String name, Object value) Add a value to the JSON data.protected booleanbooleanPrimary 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 numberfor this address.Postal code or ZIP code for this address.inthashCode()voidsetAddressLine1(String addressLine1) Primary address information, typically street name and building number.voidThe city, town or village of this address.voidsetFullName(String fullName) The combined names of the individual at this address.voidsetJsonMap(Map<String, Object> jsonMap) JSON data for the address object which isn't already stored in other fields.voidsetPhonePrimary(Phone phonePrimary) The primaryphone numberfor this address.voidsetPostalCode(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 numberfor this address.- Returns:
- The primary
phone numberfor 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 numberfor this address.- Parameters:
phonePrimary- The primaryphone numberfor 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
-