public class Address extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected String |
city |
protected String |
company |
protected String |
country |
protected String |
firstName |
protected String |
lastName |
static int |
MAX_ADDRESS_LENGTH |
static int |
MAX_CITY_LENGTH |
static int |
MAX_COMPANY_LENGTH |
static int |
MAX_COUNTRY_LENGTH |
static int |
MAX_FIRST_NAME_LENGTH |
static int |
MAX_LAST_NAME_LENGTH |
static int |
MAX_STATE_LENGTH |
static int |
MAX_ZIP_LENGTH |
protected String |
state |
protected String |
zipPostalCode |
| Modifier | Constructor and Description |
|---|---|
protected |
Address() |
| Modifier and Type | Method and Description |
|---|---|
static Address |
createAddress() |
String |
getAddress() |
String |
getCity() |
String |
getCompany() |
String |
getCountry() |
String |
getFirstName() |
String |
getLastName() |
String |
getState() |
String |
getZipPostalCode() |
void |
setAddress(String address) |
void |
setCity(String city) |
void |
setCompany(String company) |
void |
setCountry(String country) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setState(String state) |
void |
setZipPostalCode(String zipPostalCode) |
public static final int MAX_FIRST_NAME_LENGTH
public static final int MAX_LAST_NAME_LENGTH
public static final int MAX_COMPANY_LENGTH
public static final int MAX_ADDRESS_LENGTH
public static final int MAX_CITY_LENGTH
public static final int MAX_STATE_LENGTH
public static final int MAX_ZIP_LENGTH
public static final int MAX_COUNTRY_LENGTH
protected String firstName
protected String lastName
protected String company
protected String address
protected String city
protected String state
protected String zipPostalCode
protected String country
public static Address createAddress()
public String getFirstName()
public void setFirstName(String firstName)
firstName - the firstName to setpublic String getLastName()
public void setLastName(String lastName)
lastName - the lastName to setpublic String getCompany()
public void setCompany(String company)
company - the company to setpublic String getAddress()
public void setAddress(String address)
address - the address to setpublic String getCity()
public void setCity(String city)
city - the city to setpublic String getState()
public void setState(String state)
state - the state to setpublic String getZipPostalCode()
public void setZipPostalCode(String zipPostalCode)
zipPostalCode - the zip / postal code to setpublic String getCountry()
public void setCountry(String country)
country - the country to setCopyright © 2016. All Rights Reserved.