org.geotools.metadata.iso.citation
Class AddressImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by 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
Module:
modules/library/metadata (gt-metadata.jar)

Field Summary
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
AddressImpl()
          Constructs an initially empty address.
AddressImpl(Address source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 InternationalString getAdministrativeArea()
          Return the state, province of the location.
 InternationalString getCity()
          Returns the city of the location Returns null if unspecified.
 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)
          Set the state, province of the location.
 void setCity(InternationalString newValue)
          Set the city of the location
 void 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
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Method Detail

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)
Set the state, province of the location.


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)
Set the city of the location


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.


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)
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:
getElectronicMailAddresses in interface Address

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. Returns null if unspecified.

Specified by:
getPostalCode in interface Address

setPostalCode

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



Copyright © 1996-2010 Geotools. All Rights Reserved.