Simple mutable data holder for a shipping address, implementing the ShippingAddress contract. Instances are built up field by field with the setters and then read back through the ShippingAddress getters, for example when binding a posted address form or assembling an address for display.
Implements: ShippingAddress
Properties
| Property | Returns | Description |
|---|---|---|
| addressID | String | Identifier used when a user selects this address from a list of saved addresses. Not necessarily a database primary key. |
| addressLine1 | String | First line of the street address, for example the street number and name. |
| addressLine2 | String | Second line of the street address, for example a unit or suite number. |
| postcode | String | Postal or zip code for the address. |
| state | String | State or province of the address. |
Methods
getAddressID()
Returns: String
Identifier used when a user selects this address from a list of saved addresses. Not necessarily a database primary key.
getAddressLine1()
Returns: String
First line of the street address, for example the street number and name.
getAddressLine2()
Returns: String
Second line of the street address, for example a unit or suite number.
getPostcode()
Returns: String
Postal or zip code for the address.
getState()
Returns: String
State or province of the address.