public class Address extends Object implements Serializable
The postal address of an entity.
| Constructor and Description |
|---|
Address()
Instantiates a new trade address.
|
Address(String postcode,
String lineOne,
String cityName,
com.neovisionaries.i18n.CountryCode countryCode)
Instantiates a new trade address.
|
Address(String postcode,
String lineOne,
String lineTwo,
String cityName,
com.neovisionaries.i18n.CountryCode countryCode)
Instantiates a new trade address.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCity()
Gets the city name.
|
com.neovisionaries.i18n.CountryCode |
getCountry()
Gets the country.
|
String |
getLineOne()
Gets the line one.
|
String |
getLineTwo()
Gets the line two.
|
String |
getPostcode()
Gets the post code.
|
Address |
setCity(String cityName)
Sets the city name.
|
Address |
setCountry(com.neovisionaries.i18n.CountryCode country)
Sets the country.
|
Address |
setLineOne(String lineOne)
Sets the line one.
|
Address |
setLineTwo(String lineTwo)
Sets the line two..
|
Address |
setPostcode(String postcode)
Sets the post code.
|
public Address()
Instantiates a new trade address.
public Address(String postcode, String lineOne, String cityName, com.neovisionaries.i18n.CountryCode countryCode)
Instantiates a new trade address.
postcode - the postal codelineOne - the line onecityName - the city namecountryCode - the ISO 3166-2A country codepublic Address(String postcode, String lineOne, String lineTwo, String cityName, com.neovisionaries.i18n.CountryCode countryCode)
Instantiates a new trade address.
postcode - the post codelineOne - the line onelineTwo - the line twocityName - the city namecountryCode - the ISO 3166-2A country code@Basic public String getCity()
Gets the city name.
BASIC when part of Trade.agreements.seller.
Zürich
@Basic public com.neovisionaries.i18n.CountryCode getCountry()
Gets the country.
Two-letter country codes defined in ISO 3166-1,
BASIC when part of Trade.agreements.seller.
CH
href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-2A Country Codes</a>@Basic public String getLineOne()
Gets the line one. Usually the Street name.
BASIC when part of Trade.agreements.seller.
Elm Street 13
@Basic public String getLineTwo()
Gets the line two. Location like Building name or department.
BASIC when part of Trade.agreements.seller.
Department of broken dreams
@Basic public String getPostcode()
Gets the post code.
BASIC when part of Trade.agreements.seller.
DE-123456
public Address setCity(String cityName)
Sets the city name.
BASIC when part of Trade.agreements.seller.
Zürich
cityName - the new city namepublic Address setCountry(com.neovisionaries.i18n.CountryCode country)
Sets the country.
Two-letter country codes defined in ISO 3166-1,
BASIC when part of Trade.agreements.seller.
CH
country - the countryhref="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-2A Country Codes</a>public Address setLineOne(String lineOne)
Sets the line one. Usually the Street name.
BASIC when part of Trade.agreements.seller.
Elm Street 13
lineOne - the new line onepublic Address setLineTwo(String lineTwo)
Sets the line two.. Location like Building name or department.
BASIC when part of Trade.agreements.seller.
Department of broken dreams
lineTwo - the new line twopublic Address setPostcode(String postcode)
Sets the post code.
BASIC when part of Trade.agreements.seller.
DE-123456
postcode - the postcodeCopyright © 2014-2016 Konik.io. All Rights Reserved.