public class Address extends Object implements Serializable
Constructor and Description |
---|
Address() |
Address(Map<String,Object> addressMap) |
Address(String countryCode,
String state,
String city,
String zipCode) |
Address(String countryCode,
String state,
String city,
String zipCode,
String address1) |
Address(String countryCode,
String state,
String city,
String zipCode,
String address1,
String address2) |
Modifier and Type | Method and Description |
---|---|
String |
getAddress1() |
String |
getAddress2() |
String |
getCity() |
String |
getCountry() |
String |
getCountryName() |
HashMap<String,String> |
getMap() |
String |
getState() |
String |
getZipcode() |
void |
setAddress1(String address1) |
void |
setAddress2(String address2) |
void |
setCity(String city) |
void |
setCountry(String countryCode)
Sets the country by passing country code.
|
boolean |
setCountryByName(String countryName)
Sets the country by passing the country name.
|
void |
setState(String state) |
void |
setZipcode(String zipCode) |
public Address()
public Address(String countryCode, String state, String city, String zipCode, String address1)
public boolean setCountryByName(String countryName)
countryName
- name of the country to be set.public void setCountry(String countryCode)
countryCode
- the two character long country code.public void setState(String state)
public void setCity(String city)
public void setZipcode(String zipCode)
public void setAddress1(String address1)
public void setAddress2(String address2)
public String getCountry()
public String getState()
public String getCity()
public String getZipcode()
public String getAddress1()
public String getAddress2()