public class Address
extends java.lang.Object
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCountryCode()
Gets the two-letter ISO country code.
|
java.lang.String |
getHouseNo()
Gets the house or building number.
|
java.lang.String |
getName()
Gets the name, either the first and last name of a natural person or the company name of a legal person.
|
java.lang.String |
getPostalCode()
Gets the postal code
|
java.lang.String |
getStreet()
Gets the street.
|
java.lang.String |
getTown()
Gets the town.
|
int |
hashCode() |
void |
setCountryCode(java.lang.String countryCode)
Sets the two-letter ISO country code
The country code is mandatory unless the entire address contains
null or empty values. |
void |
setHouseNo(java.lang.String houseNo)
Sets the house or building number.
|
void |
setName(java.lang.String name)
Sets the name, either the first and last name of a natural person or the company name of a legal person.
|
void |
setPostalCode(java.lang.String postalCode)
Sets the postal code
The postal code is mandatory unless the entire address contains
null or empty values. |
void |
setStreet(java.lang.String street)
Sets the street.
|
void |
setTown(java.lang.String town)
Sets the town
The town is mandatory unless the entire address contains
null or empty values. |
public java.lang.String getName()
public void setName(java.lang.String name)
The name is mandatory unless the entire address contains null or empty values.
name - the namepublic java.lang.String getStreet()
public void setStreet(java.lang.String street)
This field must not contain the house or building number.
This field is optional.
street - the streetpublic java.lang.String getHouseNo()
public void setHouseNo(java.lang.String houseNo)
This field is optional.
houseNo - the house numberpublic java.lang.String getPostalCode()
public void setPostalCode(java.lang.String postalCode)
The postal code is mandatory unless the entire address contains null or empty values.
postalCode - the postal codepublic java.lang.String getTown()
public void setTown(java.lang.String town)
The town is mandatory unless the entire address contains null or empty values.
town - the townpublic java.lang.String getCountryCode()
public void setCountryCode(java.lang.String countryCode)
The country code is mandatory unless the entire address contains null or empty values.
countryCode - the ISO country codepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object