org.geotools.metadata.iso.citation
Class ContactImpl

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

public class ContactImpl
extends MetadataEntity
implements org.opengis.metadata.citation.Contact

Information required to enable contact with the responsible person and/or organization.

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

Field Summary
static org.opengis.metadata.citation.Contact EPSG
          Contact informations for the European Petroleum Survey Group.
static org.opengis.metadata.citation.Contact ESRI
          Contact informations for ESRI.
static org.opengis.metadata.citation.Contact GEOTIFF
          Contact informations for the GeoTIFF group.
static org.opengis.metadata.citation.Contact GEOTOOLS
          Contact informations for the Geotools project.
static org.opengis.metadata.citation.Contact OGC
          Contact informations for the Open Geospatial consortium.
static org.opengis.metadata.citation.Contact OPEN_GIS
          Contact informations for the OpenGIS consortium.
static org.opengis.metadata.citation.Contact ORACLE
          Contact informations for Oracle.
static org.opengis.metadata.citation.Contact SUN_MICROSYSTEMS
          Contact informations for Sun Microsystems.
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
ContactImpl()
          Constructs an initially empty contact.
ContactImpl(org.opengis.metadata.citation.OnLineResource resource)
          Constructs a contact initialized to the specified online resource.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this contact with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 org.opengis.metadata.citation.Address getAddress()
          Returns the physical and email address at which the organization or individual may be contacted.
 org.opengis.util.InternationalString getContactInstructions()
          Returns supplemental instructions on how or when to contact the individual or organization.
 org.opengis.util.InternationalString getHoursOfService()
          Returns time period (including time zone) when individuals can contact the organization or individual.
 org.opengis.metadata.citation.OnLineResource getOnLineResource()
          Return on-line information that can be used to contact the individual or organization.
 org.opengis.metadata.citation.Telephone getPhone()
          Returns telephone numbers at which the organization or individual may be contacted.
 int hashCode()
          Returns a hash code value for this contact.
 void setAddress(org.opengis.metadata.citation.Address newValue)
          Set the physical and email address at which the organization or individual may be contacted.
 void setContactInstructions(org.opengis.util.InternationalString newValue)
          Set supplemental instructions on how or when to contact the individual or organization.
 void setHoursOfService(org.opengis.util.InternationalString newValue)
          Set time period (including time zone) when individuals can contact the organization or individual.
 void setOnLineResource(org.opengis.metadata.citation.OnLineResource newValue)
          Set on-line information that can be used to contact the individual or organization.
 void setPhone(org.opengis.metadata.citation.Telephone newValue)
          Set telephone numbers at which the organization or individual may be contacted.
 java.lang.String toString()
          Returns a string representation of this contact.
 
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
 

Field Detail

OGC

public static final org.opengis.metadata.citation.Contact OGC
Contact informations for the Open Geospatial consortium. "Open Geospatial consortium" is the new name for "OpenGIS consortium".

See Also:
OnLineResourceImpl.OGC

OPEN_GIS

public static final org.opengis.metadata.citation.Contact OPEN_GIS
Contact informations for the OpenGIS consortium. "OpenGIS consortium" is the old name for "Open Geospatial consortium".

See Also:
OnLineResourceImpl.OPEN_GIS

EPSG

public static final org.opengis.metadata.citation.Contact EPSG
Contact informations for the European Petroleum Survey Group.

See Also:
OnLineResourceImpl.EPSG

GEOTIFF

public static final org.opengis.metadata.citation.Contact GEOTIFF
Contact informations for the GeoTIFF group.

See Also:
OnLineResourceImpl.GEOTIFF

ESRI

public static final org.opengis.metadata.citation.Contact ESRI
Contact informations for ESRI.

See Also:
OnLineResourceImpl.ESRI

ORACLE

public static final org.opengis.metadata.citation.Contact ORACLE
Contact informations for Oracle.

See Also:
OnLineResourceImpl.ORACLE

SUN_MICROSYSTEMS

public static final org.opengis.metadata.citation.Contact SUN_MICROSYSTEMS
Contact informations for Sun Microsystems.

Since:
2.2
See Also:
OnLineResourceImpl.SUN_MICROSYSTEMS

GEOTOOLS

public static final org.opengis.metadata.citation.Contact GEOTOOLS
Contact informations for the Geotools project.

See Also:
OnLineResourceImpl.GEOTOOLS
Constructor Detail

ContactImpl

public ContactImpl()
Constructs an initially empty contact.


ContactImpl

public ContactImpl(org.opengis.metadata.citation.OnLineResource resource)
Constructs a contact initialized to the specified online resource.

Method Detail

getAddress

public org.opengis.metadata.citation.Address getAddress()
Returns the physical and email address at which the organization or individual may be contacted. Returns if none.

Specified by:
getAddress in interface org.opengis.metadata.citation.Contact

setAddress

public void setAddress(org.opengis.metadata.citation.Address newValue)
Set the physical and email address at which the organization or individual may be contacted.


getContactInstructions

public org.opengis.util.InternationalString getContactInstructions()
Returns supplemental instructions on how or when to contact the individual or organization. Returns if none.

Specified by:
getContactInstructions in interface org.opengis.metadata.citation.Contact

setContactInstructions

public void setContactInstructions(org.opengis.util.InternationalString newValue)
Set supplemental instructions on how or when to contact the individual or organization.


getOnLineResource

public org.opengis.metadata.citation.OnLineResource getOnLineResource()
Return on-line information that can be used to contact the individual or organization. Returns if none.

Specified by:
getOnLineResource in interface org.opengis.metadata.citation.Contact

setOnLineResource

public void setOnLineResource(org.opengis.metadata.citation.OnLineResource newValue)
Set on-line information that can be used to contact the individual or organization.


getPhone

public org.opengis.metadata.citation.Telephone getPhone()
Returns telephone numbers at which the organization or individual may be contacted. Returns if none.

Specified by:
getPhone in interface org.opengis.metadata.citation.Contact

setPhone

public void setPhone(org.opengis.metadata.citation.Telephone newValue)
Set telephone numbers at which the organization or individual may be contacted.


getHoursOfService

public org.opengis.util.InternationalString getHoursOfService()
Returns time period (including time zone) when individuals can contact the organization or individual. Returns if none.

Specified by:
getHoursOfService in interface org.opengis.metadata.citation.Contact

setHoursOfService

public void setHoursOfService(org.opengis.util.InternationalString newValue)
Set time period (including time zone) when individuals can contact the organization or individual.


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 contact with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this contact. 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 contact.



Copyright © GeoTools. All Rights Reserved.