Interface Address
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe fields that represent the address object in json form. -
Method Summary
Modifier and TypeMethodDescriptionGet the country.Get the formatted address.Get the latitude.Get the locality.Get the longitude of the address in degrees.Get the Postal code for the address.Get a Boolean value indicating whether this instance of the Plural Field is the primary or preferred value of for this field, e.g.Get the region.Get the street address.getType()Get the type of label of the address.voidsetCountry(String country) Set the country.voidsetFormatted(String formatted) Set the formatted address.voidsetLatitude(Float latitude) Set the latitude.voidsetLocality(String locality) Set the locality.voidsetLongitude(Float longitude) Set the longitude of the address in degrees.voidsetPostalCode(String postalCode) Set the postal code for the address.voidsetPrimary(Boolean primary) voidSet the region.voidsetStreetAddress(String streetAddress) Set the street address.voidGet the type of label of the address.
-
Method Details
-
getCountry
String getCountry()Get the country.- Returns:
- the country
-
setCountry
Set the country.- Parameters:
country- the country
-
getLatitude
Float getLatitude()Get the latitude.- Returns:
- latitude
-
setLatitude
Set the latitude.- Parameters:
latitude- latitude
-
getLocality
String getLocality()Get the locality.- Returns:
- the locality
-
setLocality
Set the locality.- Parameters:
locality- the locality
-
getLongitude
Float getLongitude()Get the longitude of the address in degrees.- Returns:
- the longitude of the address in degrees
-
setLongitude
Set the longitude of the address in degrees.- Parameters:
longitude- the longitude of the address in degrees.
-
getPostalCode
String getPostalCode()Get the Postal code for the address.- Returns:
- the postal code for the address
-
setPostalCode
Set the postal code for the address.- Parameters:
postalCode- the postal code
-
getRegion
String getRegion()Get the region.- Returns:
- the region
-
setRegion
Set the region.- Parameters:
region- the region
-
getStreetAddress
String getStreetAddress()Get the street address.- Returns:
- the street address
-
setStreetAddress
Set the street address.- Parameters:
streetAddress- the street address
-
getType
String getType()Get the type of label of the address.- Returns:
- the type or label of the address
-
setType
Get the type of label of the address.- Parameters:
type- the type of label of the address.
-
getFormatted
String getFormatted()Get the formatted address.- Returns:
- the formatted address
-
setFormatted
Set the formatted address.- Parameters:
formatted- the formatted address
-
getPrimary
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. 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.
- Returns:
- true if the instance if the primary instance.
-
setPrimary
- Parameters:
primary- set the Primary status of this Address.
-