org.geotoolkit.metadata.iso.citation
Class DefaultContact

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultContact
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, Contact

@ThreadSafe
public class DefaultContact
extends MetadataEntity
implements Contact

Information required to enable contact with the responsible person and/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
static Contact EPSG
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact ESRI
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact GEOTIFF
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact GEOTOOLKIT
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact GEOTOOLS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact ISO
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact NETCDF
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact OGC
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact OPEN_GIS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact ORACLE
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact POSTGIS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact PROJ4
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static Contact SUN_MICROSYSTEMS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultContact()
          Constructs an initially empty contact.
DefaultContact(Contact source)
          Constructs a metadata entity initialized with the values from the specified metadata.
DefaultContact(OnlineResource resource)
          Constructs a contact initialized to the specified online resource.
 
Method Summary
static DefaultContact castOrCopy(Contact object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 Address getAddress()
          Returns the physical and email address at which the organization or individual may be contacted.
 InternationalString getContactInstructions()
          Returns supplemental instructions on how or when to contact the individual or organization.
 InternationalString getHoursOfService()
          Returns time period (including time zone) when individuals can contact the organization or individual.
 OnlineResource getOnlineResource()
          Return on-line information that can be used to contact the individual or organization.
 Telephone getPhone()
          Returns telephone numbers at which the organization or individual may be contacted.
 void setAddress(Address newValue)
          Sets the physical and email address at which the organization or individual may be contacted.
 void setContactInstructions(InternationalString newValue)
          Sets supplemental instructions on how or when to contact the individual or organization.
 void setHoursOfService(InternationalString newValue)
          Sets time period (including time zone) when individuals can contact the organization or individual.
 void setOnlineResource(OnlineResource newValue)
          Sets on-line information that can be used to contact the individual or organization.
 void setPhone(Telephone newValue)
          Sets telephone numbers at which the organization or individual may be contacted.
 
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
 

Field Detail

ISO

@Deprecated
public static final Contact ISO
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the International Organization for Standardization.

Since:
3.19

OGC

@Deprecated
public static final Contact OGC
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the Open Geospatial consortium. "Open Geospatial consortium" is the new name for "OpenGIS consortium".

See Also:
DefaultOnlineResource.OGC

OPEN_GIS

@Deprecated
public static final Contact OPEN_GIS
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the OpenGIS consortium. "OpenGIS consortium" is the old name for "Open Geospatial consortium".

See Also:
DefaultOnlineResource.OPEN_GIS

EPSG

@Deprecated
public static final Contact EPSG
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the European Petroleum Survey Group.

See Also:
DefaultOnlineResource.EPSG

NETCDF

@Deprecated
public static final Contact NETCDF
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the NetCDF library.

Since:
3.08
See Also:
DefaultOnlineResource.NETCDF

GEOTIFF

@Deprecated
public static final Contact GEOTIFF
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the GeoTIFF group.

See Also:
DefaultOnlineResource.GEOTIFF

PROJ4

@Deprecated
public static final Contact PROJ4
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the Proj.4 project.

Since:
3.20
See Also:
DefaultOnlineResource.PROJ4

ESRI

@Deprecated
public static final Contact ESRI
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for ESRI.

See Also:
DefaultOnlineResource.ESRI

ORACLE

@Deprecated
public static final Contact ORACLE
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for Oracle.

See Also:
DefaultOnlineResource.ORACLE

POSTGIS

@Deprecated
public static final Contact POSTGIS
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for PostGIS.

Since:
2.4
See Also:
DefaultOnlineResource.POSTGIS

SUN_MICROSYSTEMS

@Deprecated
public static final Contact SUN_MICROSYSTEMS
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for Sun Microsystems.

Since:
2.2
See Also:
DefaultOnlineResource.SUN_MICROSYSTEMS

GEOTOOLKIT

@Deprecated
public static final Contact GEOTOOLKIT
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the Geotoolkit.org project.

See Also:
DefaultOnlineResource.GEOTOOLKIT

GEOTOOLS

@Deprecated
public static final Contact GEOTOOLS
Deprecated. To be replaced by a database (constants are becoming too numerous)
Contact informations for the GeoTools project.

See Also:
DefaultOnlineResource.GEOTOOLS
Constructor Detail

DefaultContact

public DefaultContact()
Constructs an initially empty contact.


DefaultContact

public DefaultContact(Contact 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

DefaultContact

public DefaultContact(OnlineResource resource)
Constructs a contact initialized to the specified online resource.

Parameters:
resource - The on-line information that can be used to contact the individual or organization, or null if none.
Method Detail

castOrCopy

public static DefaultContact castOrCopy(Contact 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

getAddress

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

Specified by:
getAddress in interface Contact

setAddress

public void setAddress(Address newValue)
Sets the physical and email address at which the organization or individual may be contacted.

Parameters:
newValue - The new address.

getContactInstructions

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

Specified by:
getContactInstructions in interface Contact

setContactInstructions

public void setContactInstructions(InternationalString newValue)
Sets supplemental instructions on how or when to contact the individual or organization.

Parameters:
newValue - The new contact instructions.

getOnlineResource

public OnlineResource getOnlineResource()
Return on-line information that can be used to contact the individual or organization. Returns null if none.

Specified by:
getOnlineResource in interface Contact

setOnlineResource

public void setOnlineResource(OnlineResource newValue)
Sets on-line information that can be used to contact the individual or organization.

Parameters:
newValue - The new online resource.

getPhone

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

Specified by:
getPhone in interface Contact

setPhone

public void setPhone(Telephone newValue)
Sets telephone numbers at which the organization or individual may be contacted.

Parameters:
newValue - The new telephone.

getHoursOfService

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

Specified by:
getHoursOfService in interface Contact

setHoursOfService

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

Parameters:
newValue - The new hours of service.


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