|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.social.core.model.AddressImpl
public class AddressImpl
Default representation of an Address
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.shindig.social.opensocial.model.Address |
|---|
Address.Field |
| Constructor Summary | |
|---|---|
AddressImpl()
|
|
AddressImpl(String formatted)
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddressImpl()
public AddressImpl(String formatted)
| Method Detail |
|---|
public String getCountry()
Address
getCountry in interface Addresspublic void setCountry(String country)
setCountry in interface Addresscountry - the countrypublic Float getLatitude()
Address
getLatitude in interface Addresspublic void setLatitude(Float latitude)
setLatitude in interface Addresslatitude - latitudepublic String getLocality()
Address
getLocality in interface Addresspublic void setLocality(String locality)
setLocality in interface Addresslocality - the localitypublic Float getLongitude()
Address
getLongitude in interface Addresspublic void setLongitude(Float longitude)
setLongitude in interface Addresslongitude - the longitude of the address in degrees.public String getPostalCode()
Address
getPostalCode in interface Addresspublic void setPostalCode(String postalCode)
setPostalCode in interface AddresspostalCode - the postal codepublic String getRegion()
Address
getRegion in interface Addresspublic void setRegion(String region)
setRegion in interface Addressregion - the regionpublic String getStreetAddress()
Address
getStreetAddress in interface Addresspublic void setStreetAddress(String streetAddress)
setStreetAddress in interface AddressstreetAddress - the street addresspublic String getType()
Address
getType in interface Addresspublic void setType(String type)
setType in interface Addresstype - the type of label of the address.public String getFormatted()
Address
getFormatted 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||