Address.Field| Constructor and Description |
|---|
AddressImpl() |
AddressImpl(String formatted) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCountry()
Get the country.
|
String |
getFormatted()
Get the formatted address.
|
Float |
getLatitude()
Get the latitude.
|
String |
getLocality()
Get the locality.
|
Float |
getLongitude()
Get the longitude of the address in degrees.
|
String |
getPostalCode()
Get the Postal code for the address.
|
Boolean |
getPrimary()
Get a Boolean value indicating whether this instance of the Plural Field is the primary or
preferred value of for this field, e.g. the preferred mailing address.
|
String |
getRegion()
Get the region.
|
String |
getStreetAddress()
Get the street address.
|
String |
getType()
Get the type of label of the address.
|
void |
setCountry(String country)
Set the country.
|
void |
setFormatted(String formatted)
Set the formatted address.
|
void |
setLatitude(Float latitude)
Set the latitude.
|
void |
setLocality(String locality)
Set the locality.
|
void |
setLongitude(Float longitude)
Set the longitude of the address in degrees.
|
void |
setPostalCode(String postalCode)
Set the postal code for the address.
|
void |
setPrimary(Boolean primary) |
void |
setRegion(String region)
Set the region.
|
void |
setStreetAddress(String streetAddress)
Set the street address.
|
void |
setType(String type)
Get the type of label of the address.
|
public AddressImpl()
public AddressImpl(String formatted)
public String getCountry()
AddressgetCountry in interface Addresspublic void setCountry(String country)
setCountry in interface Addresscountry - the countrypublic Float getLatitude()
AddressgetLatitude in interface Addresspublic void setLatitude(Float latitude)
setLatitude in interface Addresslatitude - latitudepublic String getLocality()
AddressgetLocality in interface Addresspublic void setLocality(String locality)
setLocality in interface Addresslocality - the localitypublic Float getLongitude()
AddressgetLongitude in interface Addresspublic void setLongitude(Float longitude)
setLongitude in interface Addresslongitude - the longitude of the address in degrees.public String getPostalCode()
AddressgetPostalCode in interface Addresspublic void setPostalCode(String postalCode)
setPostalCode in interface AddresspostalCode - the postal codepublic void setRegion(String region)
public String getStreetAddress()
AddressgetStreetAddress in interface Addresspublic void setStreetAddress(String streetAddress)
setStreetAddress in interface AddressstreetAddress - the street addresspublic String getType()
Addresspublic void setType(String type)
public String getFormatted()
AddressgetFormatted in interface Addresspublic void setFormatted(String formatted)
setFormatted in interface Addressformatted - the formatted addresspublic Boolean getPrimary()
AddressGet a Boolean value indicating whether this instance of the Plural Field is the primary or preferred value of for this field, e.g. the preferred mailing address. Service Providers MUST NOT mark more than one instance of the same Plural Field as primary="true", and MAY choose not to mark any fields as primary, if this information is not available. Introduced in v0.8.1
The service provider may wish to share the address instance between items and primary related to the address from which this came, so if the address came from an Organization, primary relates to the primary address of the organization, and not necessary the primary address of all addresses.
If the address is not part of a list (eg Person.location ) primary has no meaning.
getPrimary in interface Addresspublic void setPrimary(Boolean primary)
setPrimary in interface Addressprimary - set the Primary status of this Address.Address.getPrimary()Copyright © 2007-2012. All Rights Reserved.