public class PostalAddress
extends java.lang.Object
Constructor and Description |
---|
PostalAddress(java.lang.String address,
java.lang.String postalZone,
java.lang.String city,
java.lang.String country) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the address of the Entity.
|
java.lang.String |
getCity()
Return the City of the Entity
|
java.lang.String |
getCountry()
Returns the country code of the Entity in ISO-3166-1 alpha2 format.
|
java.lang.String |
getPostalZone()
Returns the postal zone of the Entity
|
void |
setAddress(java.lang.String address)
Sets the address of the Entity
|
void |
setCity(java.lang.String city)
Sets the City of the Entity
|
void |
setCountry(java.lang.String country)
Sets the country code of the Entity in ISO-3166-1 alpha2 format.
|
void |
setPostalZone(java.lang.String postalZone)
Sets the postal zone of the Entity
|
public PostalAddress(java.lang.String address, java.lang.String postalZone, java.lang.String city, java.lang.String country)
address
- the addresspostalZone
- the postal zonecity
- the City.country
- the country code in ISO-3166-1 alpha2 formatpublic java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- the addresspublic java.lang.String getPostalZone()
public void setPostalZone(java.lang.String postalZone)
postalZone
- the postal zonepublic java.lang.String getCity()
public void setCity(java.lang.String city)
city
- the Citypublic java.lang.String getCountry()
public void setCountry(java.lang.String country)
country
- the country code in ISO-3166-1 alpha2 format.