public class Address extends java.lang.Object implements java.io.Serializable
The postal address of an entity.
Constructor and Description |
---|
Address()
Instantiates a new trade address.
|
Address(java.lang.String postcode,
java.lang.String lineOne,
java.lang.String cityName,
com.neovisionaries.i18n.CountryCode countryCode)
Instantiates a new trade address.
|
Address(java.lang.String postcode,
java.lang.String lineOne,
java.lang.String lineTwo,
java.lang.String cityName,
com.neovisionaries.i18n.CountryCode countryCode)
Instantiates a new trade address.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCity()
Gets the city name.
|
com.neovisionaries.i18n.CountryCode |
getCountry()
Gets the country.
|
java.lang.String |
getLineOne()
Gets the line one.
|
java.lang.String |
getLineTwo()
Gets the line two.
|
java.lang.String |
getPostcode()
Gets the post code.
|
Address |
setCity(java.lang.String cityName)
Sets the city name.
|
Address |
setCountry(com.neovisionaries.i18n.CountryCode country)
Sets the country.
|
Address |
setLineOne(java.lang.String lineOne)
Sets the line one.
|
Address |
setLineTwo(java.lang.String lineTwo)
Sets the line two..
|
Address |
setPostcode(java.lang.String postcode)
Sets the post code.
|
public Address()
Instantiates a new trade address.
public Address(java.lang.String postcode, java.lang.String lineOne, java.lang.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(java.lang.String postcode, java.lang.String lineOne, java.lang.String lineTwo, java.lang.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 java.lang.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 java.lang.String getLineOne()
Gets the line one. Usually the Street name.
BASIC when part of Trade.agreements.seller.
Elm Street 13
@Basic public java.lang.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 java.lang.String getPostcode()
Gets the post code.
BASIC when part of Trade.agreements.seller.
DE-123456
public Address setCity(java.lang.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(java.lang.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(java.lang.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(java.lang.String postcode)
Sets the post code.
BASIC when part of Trade.agreements.seller.
DE-123456
postcode
- the postcodeCopyright © 2014-2018 Konik.io. All Rights Reserved.