org.geotoolkit.metadata.iso.citation
Class DefaultAddress

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultAddress
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, Address

@ThreadSafe
public class DefaultAddress
extends MetadataEntity
implements Address

Location of the responsible individual or organization.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Cédric Briançon (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultAddress()
          Constructs an initially empty address.
DefaultAddress(Address source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
static DefaultAddress castOrCopy(Address object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 InternationalString getAdministrativeArea()
          Return the state, province of the location.
 InternationalString getCity()
          Returns the city of the location.
 InternationalString getCountry()
          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.
 String getPostalCode()
          Returns ZIP or other postal code.
 void setAdministrativeArea(InternationalString newValue)
          Sets the state, province of the location.
 void setCity(InternationalString newValue)
          Sets the city of the location.
 void setCountry(InternationalString newValue)
          set the country of the physical address.
 void setDeliveryPoints(Collection<? extends String> newValues)
          Sets the address line for the location (as described in ISO 11180, Annex A).
 void setElectronicMailAddresses(Collection<? extends String> newValues)
          Sets the address of the electronic mailbox of the responsible organization or individual.
 void setPostalCode(String newValue)
          Sets ZIP or other postal code.
 
Methods inherited from class MetadataEntity
getIdentifier, getIdentifierMap, getIdentifiers, getStandard
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultAddress

public DefaultAddress()
Constructs an initially empty address.


DefaultAddress

public DefaultAddress(Address source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source - The metadata to copy, or null if none.
Since:
2.4
Method Detail

castOrCopy

public static DefaultAddress castOrCopy(Address object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is null, then this method returns null. Otherwise if the given object is already a Geotk implementation, then the given object is returned unchanged. Otherwise a new Geotk implementation is created and initialized to the attribute values of the given object, using a shallow copy operation (i.e. attributes are not cloned).

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getAdministrativeArea

public InternationalString getAdministrativeArea()
Return the state, province of the location. Returns null if unspecified.

Specified by:
getAdministrativeArea in interface Address

setAdministrativeArea

public void setAdministrativeArea(InternationalString newValue)
Sets the state, province of the location.

Parameters:
newValue - The new administrative area.

getCity

public InternationalString getCity()
Returns the city of the location. Returns null if unspecified.

Specified by:
getCity in interface Address

setCity

public void setCity(InternationalString newValue)
Sets the city of the location.

Parameters:
newValue - The new city.

getCountry

public InternationalString getCountry()
Returns the country of the physical address. Returns null if unspecified.

Specified by:
getCountry in interface Address

setCountry

public void setCountry(InternationalString newValue)
set the country of the physical address.

Parameters:
newValue - The new country.

getDeliveryPoints

public Collection<String> getDeliveryPoints()
Returns the address line for the location (as described in ISO 11180, Annex A).

Specified by:
getDeliveryPoints in interface Address

setDeliveryPoints

public void setDeliveryPoints(Collection<? extends String> newValues)
Sets the address line for the location (as described in ISO 11180, Annex A).

Parameters:
newValues - The new delivery points.

getElectronicMailAddresses

public Collection<String> getElectronicMailAddresses()
Returns the address of the electronic mailbox of the responsible organization or individual.

Specified by:
getElectronicMailAddresses in interface Address

setElectronicMailAddresses

public void setElectronicMailAddresses(Collection<? extends String> newValues)
Sets the address of the electronic mailbox of the responsible organization or individual.

Parameters:
newValues - The new electronic mail addresses.

getPostalCode

public String getPostalCode()
Returns ZIP or other postal code. Returns null if unspecified.

Specified by:
getPostalCode in interface Address

setPostalCode

public void setPostalCode(String newValue)
Sets ZIP or other postal code.

Parameters:
newValue - The new postal code.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.