|
||||||||||
| 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(java.lang.String formatted)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCountry()
Get the country. |
java.lang.String |
getFormatted()
Get the formatted address. |
java.lang.Float |
getLatitude()
Get the latitude. |
java.lang.String |
getLocality()
Get the locality. |
java.lang.Float |
getLongitude()
Get the longitude of the address in degrees. |
java.lang.String |
getPostalCode()
Get the Postal code for the address. |
java.lang.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. |
java.lang.String |
getRegion()
Get the region. |
java.lang.String |
getStreetAddress()
Get the street address. |
java.lang.String |
getType()
Get the type of label of the address. |
void |
setCountry(java.lang.String country)
Set the country. |
void |
setFormatted(java.lang.String formatted)
Set the formatted address. |
void |
setLatitude(java.lang.Float latitude)
Set the latitude. |
void |
setLocality(java.lang.String locality)
Set the locality. |
void |
setLongitude(java.lang.Float longitude)
Set the longitude of the address in degrees. |
void |
setPostalCode(java.lang.String postalCode)
Set the postal code for the address. |
void |
setPrimary(java.lang.Boolean primary)
|
void |
setRegion(java.lang.String region)
Set the region. |
void |
setStreetAddress(java.lang.String streetAddress)
Set the street address. |
void |
setType(java.lang.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(java.lang.String formatted)
| Method Detail |
|---|
public java.lang.String getCountry()
Address
getCountry in interface Addresspublic void setCountry(java.lang.String country)
setCountry in interface Addresscountry - the countrypublic java.lang.Float getLatitude()
Address
getLatitude in interface Addresspublic void setLatitude(java.lang.Float latitude)
setLatitude in interface Addresslatitude - latitudepublic java.lang.String getLocality()
Address
getLocality in interface Addresspublic void setLocality(java.lang.String locality)
setLocality in interface Addresslocality - the localitypublic java.lang.Float getLongitude()
Address
getLongitude in interface Addresspublic void setLongitude(java.lang.Float longitude)
setLongitude in interface Addresslongitude - the longitude of the address in degrees.public java.lang.String getPostalCode()
Address
getPostalCode in interface Addresspublic void setPostalCode(java.lang.String postalCode)
setPostalCode in interface AddresspostalCode - the postal codepublic java.lang.String getRegion()
Address
getRegion in interface Addresspublic void setRegion(java.lang.String region)
setRegion in interface Addressregion - the regionpublic java.lang.String getStreetAddress()
Address
getStreetAddress in interface Addresspublic void setStreetAddress(java.lang.String streetAddress)
setStreetAddress in interface AddressstreetAddress - the street addresspublic java.lang.String getType()
Address
getType in interface Addresspublic void setType(java.lang.String type)
setType in interface Addresstype - the type of label of the address.public java.lang.String getFormatted()
Address
getFormatted in interface Addresspublic void setFormatted(java.lang.String formatted)
setFormatted in interface Addressformatted - the formatted addresspublic java.lang.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(java.lang.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 | |||||||||