public class PostalAddressWebConverter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CITY |
static String |
COUNTRY |
static String |
POSTAL_CODE |
static String |
STATE_OR_PROVINCE |
static String |
STREET |
static String |
STREET_NUMBER |
Constructor and Description |
---|
PostalAddressWebConverter() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
convert(PostalAddressType postalAddress)
This method creates a Map
|
public static final String CITY
public static final String COUNTRY
public static final String POSTAL_CODE
public static final String STATE_OR_PROVINCE
public static final String STREET
public static final String STREET_NUMBER
public Map<String,Object> convert(PostalAddressType postalAddress)
CITY = "city"; COUNTRY = "country"; POSTAL_CODE = "postalCode"; STATE_OR_PROVINCE = "stateOrProvince"; STREET = "street"; STREET_NUMBER = "streetNumber";
postalAddress
- the PostalAddressType to be converted into a map, null returns empty MapThis work is licensed under a Creative Commons Attribution 4.0 International License.