org.geotools.metadata.iso.citation
Class AddressImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.citation.AddressImpl
All Implemented Interfaces:
org.opengis.metadata.citation.Address, java.lang.Cloneable, java.io.Serializable

public class AddressImpl
extends MetadataEntity
implements org.opengis.metadata.citation.Address

Location of the responsible individual or organization.

Since:
2.1
Version:
$Id: AddressImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
AddressImpl()
          Constructs an initially empty address.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this address with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 org.opengis.util.InternationalString getAdministrativeArea()
          Return the state, province of the location.
 org.opengis.util.InternationalString getCity()
          Returns the city of the location Returns if unspecified.
 org.opengis.util.InternationalString getCountry()
          Returns the country of the physical address.
 java.util.Collection getDeliveryPoints()
          Returns the address line for the location (as described in ISO 11180, Annex A).
 java.util.Collection getElectronicMailAddresses()
          Returns the address of the electronic mailbox of the responsible organization or individual.
 java.lang.String getPostalCode()
          Returns ZIP or other postal code.
 int hashCode()
          Returns a hash code value for this address.
 void setAdministrativeArea(org.opengis.util.InternationalString newValue)
          Set the state, province of the location.
 void setCity(org.opengis.util.InternationalString newValue)
          Set the city of the location
 void setCountry(org.opengis.util.InternationalString newValue)
          set the country of the physical address.
 void setDeliveryPoints(java.util.Collection newValues)
          Set the address line for the location (as described in ISO 11180, Annex A).
 void setElectronicMailAddresses(java.util.Collection newValues)
          Set the address of the electronic mailbox of the responsible organization or individual.
 void setPostalCode(java.lang.String newValue)
          Set ZIP or other postal code.
 java.lang.String toString()
          Returns a string representation of this address.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressImpl

public AddressImpl()
Constructs an initially empty address.

Method Detail

getAdministrativeArea

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

Specified by:
getAdministrativeArea in interface org.opengis.metadata.citation.Address

setAdministrativeArea

public void setAdministrativeArea(org.opengis.util.InternationalString newValue)
Set the state, province of the location.


getCity

public org.opengis.util.InternationalString getCity()
Returns the city of the location Returns if unspecified.

Specified by:
getCity in interface org.opengis.metadata.citation.Address

setCity

public void setCity(org.opengis.util.InternationalString newValue)
Set the city of the location


getCountry

public org.opengis.util.InternationalString getCountry()
Returns the country of the physical address. Returns if unspecified.

Specified by:
getCountry in interface org.opengis.metadata.citation.Address

setCountry

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


getDeliveryPoints

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

Specified by:
getDeliveryPoints in interface org.opengis.metadata.citation.Address

setDeliveryPoints

public void setDeliveryPoints(java.util.Collection newValues)
Set the address line for the location (as described in ISO 11180, Annex A).


getElectronicMailAddresses

public java.util.Collection getElectronicMailAddresses()
Returns the address of the electronic mailbox of the responsible organization or individual.

Specified by:
getElectronicMailAddresses in interface org.opengis.metadata.citation.Address

setElectronicMailAddresses

public void setElectronicMailAddresses(java.util.Collection newValues)
Set the address of the electronic mailbox of the responsible organization or individual.


getPostalCode

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

Specified by:
getPostalCode in interface org.opengis.metadata.citation.Address

setPostalCode

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


freeze

protected void freeze()
Declare this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compare this address with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this address. For performance reason, this method do not uses all attributes for computing the hash code. Instead, it uses the attributes that are the most likely to be unique.


toString

public java.lang.String toString()
Returns a string representation of this address.



Copyright © GeoTools. All Rights Reserved.