Package org.bremersee.common.model
Class Address
- java.lang.Object
-
- org.bremersee.common.model.Address
-
- All Implemented Interfaces:
Serializable
public class Address extends Object implements Serializable
Address data.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCity()
The city name.String
getCountry()
The country name.TwoLetterCountryCode
getCountryCode()
The country code.String
getFormattedAddress()
The street number.String
getPostalCode()
The postal code.String
getState()
The state name.String
getStreet()
The street name.String
getStreetNumber()
The street number.String
getSuburb()
The suburb name.void
setCity(String city)
Sets city.void
setCountry(String country)
Sets country.void
setCountryCode(TwoLetterCountryCode countryCode)
Sets country code.void
setFormattedAddress(String formattedAddress)
Sets formatted address.void
setPostalCode(String postalCode)
Sets postal code.void
setState(String state)
Sets state.void
setStreet(String street)
Sets street.void
setStreetNumber(String streetNumber)
Sets street number.void
setSuburb(String suburb)
Sets suburb.
-
-
-
Constructor Detail
-
Address
public Address(String streetNumber, String street, String postalCode, String city, String suburb, String state, String country, TwoLetterCountryCode countryCode, String formattedAddress)
Instantiates a new address.- Parameters:
streetNumber
- the street numberstreet
- the streetpostalCode
- the postal codecity
- the citysuburb
- the suburbstate
- the statecountry
- the countrycountryCode
- the country codeformattedAddress
- the formatted address
-
-
Method Detail
-
getStreetNumber
public String getStreetNumber()
The street number.- Returns:
- streetNumber street number
-
setStreetNumber
public void setStreetNumber(String streetNumber)
Sets street number.- Parameters:
streetNumber
- the street number
-
getStreet
public String getStreet()
The street name.- Returns:
- street street
-
setStreet
public void setStreet(String street)
Sets street.- Parameters:
street
- the street
-
getPostalCode
public String getPostalCode()
The postal code.- Returns:
- postalCode postal code
-
setPostalCode
public void setPostalCode(String postalCode)
Sets postal code.- Parameters:
postalCode
- the postal code
-
getCity
public String getCity()
The city name.- Returns:
- city city
-
setCity
public void setCity(String city)
Sets city.- Parameters:
city
- the city
-
getSuburb
public String getSuburb()
The suburb name.- Returns:
- suburb suburb
-
setSuburb
public void setSuburb(String suburb)
Sets suburb.- Parameters:
suburb
- the suburb
-
getState
public String getState()
The state name.- Returns:
- state state
-
setState
public void setState(String state)
Sets state.- Parameters:
state
- the state
-
getCountry
public String getCountry()
The country name.- Returns:
- country country
-
setCountry
public void setCountry(String country)
Sets country.- Parameters:
country
- the country
-
getCountryCode
public TwoLetterCountryCode getCountryCode()
The country code.- Returns:
- countryCode country code
-
setCountryCode
public void setCountryCode(TwoLetterCountryCode countryCode)
Sets country code.- Parameters:
countryCode
- the country code
-
getFormattedAddress
public String getFormattedAddress()
The street number.- Returns:
- formattedAddress formatted address
-
setFormattedAddress
public void setFormattedAddress(String formattedAddress)
Sets formatted address.- Parameters:
formattedAddress
- the formatted address
-
-