Class AddressImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- AddressImpl
-
- All Implemented Interfaces:
Serializable,Cloneable,Address
public class AddressImpl extends MetadataEntity implements Address
Location of the responsible individual or organization.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description AddressImpl()Constructs an initially empty address.AddressImpl(AddressType address)AddressImpl(Address source)Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternationalStringgetAdministrativeArea()Return the state, province of the location.InternationalStringgetCity()Returns the city of the location Returnsnullif unspecified.InternationalStringgetCountry()Returns the country of the physical address.Collection<String>getDeliveryPoints()Returns the address line for the location (as described in ISO 11180, Annex A).Collection<String>getElectronicMailAddresses()Returns the address of the electronic mailbox of the responsible organization or individual.StringgetPostalCode()Returns ZIP or other postal code.voidsetAdministrativeArea(InternationalString newValue)Set the state, province of the location.voidsetCity(InternationalString newValue)Set the city of the locationvoidsetCountry(InternationalString newValue)set the country of the physical address.voidsetDeliveryPoints(Collection<? extends String> newValues)Set the address line for the location (as described in ISO 11180, Annex A).voidsetElectronicMailAddresses(Collection<? extends String> newValues)Set the address of the electronic mailbox of the responsible organization or individual.voidsetPostalCode(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 Detail
-
AddressImpl
public AddressImpl()
Constructs an initially empty address.
-
AddressImpl
public AddressImpl(Address source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
AddressImpl
public AddressImpl(AddressType address)
-
-
Method Detail
-
getAdministrativeArea
public InternationalString getAdministrativeArea()
Return the state, province of the location. Returnsnullif unspecified.- Specified by:
getAdministrativeAreain interfaceAddress- Returns:
- State, province of the location, or
null.
-
setAdministrativeArea
public void setAdministrativeArea(InternationalString newValue)
Set the state, province of the location.
-
getCity
public InternationalString getCity()
Returns the city of the location Returnsnullif unspecified.
-
setCity
public void setCity(InternationalString newValue)
Set the city of the location
-
getCountry
public InternationalString getCountry()
Returns the country of the physical address. Returnsnullif unspecified.- Specified by:
getCountryin interfaceAddress- Returns:
- Country of the physical address, or
null.
-
setCountry
public void setCountry(InternationalString newValue)
set the country of the physical address.
-
getDeliveryPoints
public Collection<String> getDeliveryPoints()
Returns the address line for the location (as described in ISO 11180, Annex A).- Specified by:
getDeliveryPointsin interfaceAddress- Returns:
- Address line for the location.
-
setDeliveryPoints
public void setDeliveryPoints(Collection<? extends String> newValues)
Set the address line for the location (as described in ISO 11180, Annex A).
-
getElectronicMailAddresses
public Collection<String> getElectronicMailAddresses()
Returns the address of the electronic mailbox of the responsible organization or individual.- Specified by:
getElectronicMailAddressesin interfaceAddress- Returns:
- Address of the electronic mailbox of the responsible organization or individual.
-
setElectronicMailAddresses
public void setElectronicMailAddresses(Collection<? extends String> newValues)
Set the address of the electronic mailbox of the responsible organization or individual.
-
getPostalCode
public String getPostalCode()
Returns ZIP or other postal code. Returnsnullif unspecified.- Specified by:
getPostalCodein interfaceAddress- Returns:
- ZIP or other postal code, or
null.
-
setPostalCode
public void setPostalCode(String newValue)
Set ZIP or other postal code.
-
-