public class Address extends AbstractMwsObject
<complexType name="Address">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="AddressLine1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="AddressLine2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="AddressLine3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="City" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="County" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="District" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="StateOrRegion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="PostalCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="CountryCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Phone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
Address()
Default constructor.
|
Address(String name,
String addressLine1,
String addressLine2,
String addressLine3,
String city,
String county,
String district,
String stateOrRegion,
String postalCode,
String countryCode,
String phone)
Value constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddressLine1()
Get the value of AddressLine1.
|
String |
getAddressLine2()
Get the value of AddressLine2.
|
String |
getAddressLine3()
Get the value of AddressLine3.
|
String |
getCity()
Get the value of City.
|
String |
getCountryCode()
Get the value of CountryCode.
|
String |
getCounty()
Get the value of County.
|
String |
getDistrict()
Get the value of District.
|
String |
getName()
Get the value of Name.
|
String |
getPhone()
Get the value of Phone.
|
String |
getPostalCode()
Get the value of PostalCode.
|
String |
getStateOrRegion()
Get the value of StateOrRegion.
|
boolean |
isSetAddressLine1()
Check to see if AddressLine1 is set.
|
boolean |
isSetAddressLine2()
Check to see if AddressLine2 is set.
|
boolean |
isSetAddressLine3()
Check to see if AddressLine3 is set.
|
boolean |
isSetCity()
Check to see if City is set.
|
boolean |
isSetCountryCode()
Check to see if CountryCode is set.
|
boolean |
isSetCounty()
Check to see if County is set.
|
boolean |
isSetDistrict()
Check to see if District is set.
|
boolean |
isSetName()
Check to see if Name is set.
|
boolean |
isSetPhone()
Check to see if Phone is set.
|
boolean |
isSetPostalCode()
Check to see if PostalCode is set.
|
boolean |
isSetStateOrRegion()
Check to see if StateOrRegion is set.
|
void |
readFragmentFrom(MwsReader r)
Read members from a MwsReader.
|
void |
setAddressLine1(String addressLine1)
Set the value of AddressLine1.
|
void |
setAddressLine2(String addressLine2)
Set the value of AddressLine2.
|
void |
setAddressLine3(String addressLine3)
Set the value of AddressLine3.
|
void |
setCity(String city)
Set the value of City.
|
void |
setCountryCode(String countryCode)
Set the value of CountryCode.
|
void |
setCounty(String county)
Set the value of County.
|
void |
setDistrict(String district)
Set the value of District.
|
void |
setName(String name)
Set the value of Name.
|
void |
setPhone(String phone)
Set the value of Phone.
|
void |
setPostalCode(String postalCode)
Set the value of PostalCode.
|
void |
setStateOrRegion(String stateOrRegion)
Set the value of StateOrRegion.
|
Address |
withAddressLine1(String addressLine1)
Set the value of AddressLine1, return this.
|
Address |
withAddressLine2(String addressLine2)
Set the value of AddressLine2, return this.
|
Address |
withAddressLine3(String addressLine3)
Set the value of AddressLine3, return this.
|
Address |
withCity(String city)
Set the value of City, return this.
|
Address |
withCountryCode(String countryCode)
Set the value of CountryCode, return this.
|
Address |
withCounty(String county)
Set the value of County, return this.
|
Address |
withDistrict(String district)
Set the value of District, return this.
|
Address |
withName(String name)
Set the value of Name, return this.
|
Address |
withPhone(String phone)
Set the value of Phone, return this.
|
Address |
withPostalCode(String postalCode)
Set the value of PostalCode, return this.
|
Address |
withStateOrRegion(String stateOrRegion)
Set the value of StateOrRegion, return this.
|
void |
writeFragmentTo(MwsWriter w)
Write members to a MwsWriter.
|
void |
writeTo(MwsWriter w)
Write tag, xmlns and members to a MwsWriter.
|
toJSON, toJSONFragment, toXML, toXMLFragmentpublic Address(String name, String addressLine1, String addressLine2, String addressLine3, String city, String county, String district, String stateOrRegion, String postalCode, String countryCode, String phone)
public Address()
public String getName()
public void setName(String name)
name - The new value to set.public boolean isSetName()
public Address withName(String name)
name - The new value to set.public String getAddressLine1()
public void setAddressLine1(String addressLine1)
addressLine1 - The new value to set.public boolean isSetAddressLine1()
public Address withAddressLine1(String addressLine1)
addressLine1 - The new value to set.public String getAddressLine2()
public void setAddressLine2(String addressLine2)
addressLine2 - The new value to set.public boolean isSetAddressLine2()
public Address withAddressLine2(String addressLine2)
addressLine2 - The new value to set.public String getAddressLine3()
public void setAddressLine3(String addressLine3)
addressLine3 - The new value to set.public boolean isSetAddressLine3()
public Address withAddressLine3(String addressLine3)
addressLine3 - The new value to set.public String getCity()
public void setCity(String city)
city - The new value to set.public boolean isSetCity()
public Address withCity(String city)
city - The new value to set.public String getCounty()
public void setCounty(String county)
county - The new value to set.public boolean isSetCounty()
public Address withCounty(String county)
county - The new value to set.public String getDistrict()
public void setDistrict(String district)
district - The new value to set.public boolean isSetDistrict()
public Address withDistrict(String district)
district - The new value to set.public String getStateOrRegion()
public void setStateOrRegion(String stateOrRegion)
stateOrRegion - The new value to set.public boolean isSetStateOrRegion()
public Address withStateOrRegion(String stateOrRegion)
stateOrRegion - The new value to set.public String getPostalCode()
public void setPostalCode(String postalCode)
postalCode - The new value to set.public boolean isSetPostalCode()
public Address withPostalCode(String postalCode)
postalCode - The new value to set.public String getCountryCode()
public void setCountryCode(String countryCode)
countryCode - The new value to set.public boolean isSetCountryCode()
public Address withCountryCode(String countryCode)
countryCode - The new value to set.public String getPhone()
public void setPhone(String phone)
phone - The new value to set.public boolean isSetPhone()
public Address withPhone(String phone)
phone - The new value to set.public void readFragmentFrom(MwsReader r)
r - The reader to read from.public void writeFragmentTo(MwsWriter w)
w - The writer to write to.public void writeTo(MwsWriter w)
w - The Writer to write to.Copyright © 2014. All Rights Reserved.