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 StringgetCity()The city name.StringgetCountry()The country name.TwoLetterCountryCodegetCountryCode()The country code.StringgetFormattedAddress()The street number.StringgetPostalCode()The postal code.StringgetState()The state name.StringgetStreet()The street name.StringgetStreetNumber()The street number.StringgetSuburb()The suburb name.voidsetCity(String city)Sets city.voidsetCountry(String country)Sets country.voidsetCountryCode(TwoLetterCountryCode countryCode)Sets country code.voidsetFormattedAddress(String formattedAddress)Sets formatted address.voidsetPostalCode(String postalCode)Sets postal code.voidsetState(String state)Sets state.voidsetStreet(String street)Sets street.voidsetStreetNumber(String streetNumber)Sets street number.voidsetSuburb(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
-
-