Class AddressImpl
Object
AbstractMetadata
ModifiableMetadata
MetadataEntity
AddressImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,Address
Location of the responsible individual or organization.
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
-
Field Summary
Fields inherited from class AbstractMetadata
LOGGER
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty address.AddressImpl
(AddressType address) AddressImpl
(Address source) Constructs a metadata entity initialized with the values from the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturn the state, province of the location.getCity()
Returns the city of the location Returnsnull
if unspecified.Returns the country of the physical address.Returns the address line for the location (as described in ISO 11180, Annex A).Returns the address of the electronic mailbox of the responsible organization or individual.Returns ZIP or other postal code.void
setAdministrativeArea
(InternationalString newValue) Set the state, province of the location.void
setCity
(InternationalString newValue) Set the city of the locationvoid
setCountry
(InternationalString newValue) set the country of the physical address.void
setDeliveryPoints
(Collection<? extends String> newValues) Set the address line for the location (as described in ISO 11180, Annex A).void
setElectronicMailAddresses
(Collection<? extends String> newValues) Set the address of the electronic mailbox of the responsible organization or individual.void
setPostalCode
(String newValue) Set ZIP or other postal code.Methods inherited from class MetadataEntity
ensureNonNull, getStandard
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
Constructor Details
-
AddressImpl
public AddressImpl()Constructs an initially empty address. -
AddressImpl
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
AddressImpl
-
-
Method Details
-
getAdministrativeArea
Return the state, province of the location. Returnsnull
if unspecified.- Specified by:
getAdministrativeArea
in interfaceAddress
- Returns:
- State, province of the location, or
null
.
-
setAdministrativeArea
Set the state, province of the location. -
getCity
Returns the city of the location Returnsnull
if unspecified. -
setCity
Set the city of the location -
getCountry
Returns the country of the physical address. Returnsnull
if unspecified.- Specified by:
getCountry
in interfaceAddress
- Returns:
- Country of the physical address, or
null
.
-
setCountry
set the country of the physical address. -
getDeliveryPoints
Returns the address line for the location (as described in ISO 11180, Annex A).- Specified by:
getDeliveryPoints
in interfaceAddress
- Returns:
- Address line for the location.
-
setDeliveryPoints
Set the address line for the location (as described in ISO 11180, Annex A). -
getElectronicMailAddresses
Returns the address of the electronic mailbox of the responsible organization or individual.- Specified by:
getElectronicMailAddresses
in interfaceAddress
- Returns:
- Address of the electronic mailbox of the responsible organization or individual.
-
setElectronicMailAddresses
Set the address of the electronic mailbox of the responsible organization or individual. -
getPostalCode
Returns ZIP or other postal code. Returnsnull
if unspecified.- Specified by:
getPostalCode
in interfaceAddress
- Returns:
- ZIP or other postal code, or
null
.
-
setPostalCode
Set ZIP or other postal code.
-