org.geotoolkit.metadata.iso.citation
Class DefaultOnlineResource

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultOnlineResource
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, OnlineResource

@ThreadSafe
public class DefaultOnlineResource
extends MetadataEntity
implements OnlineResource

Information about on-line sources from which the dataset, specification, or community profile name and extended metadata elements can be obtained.

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 OnlineResource EPSG
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource ESRI
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource GEOTIFF
          The online resources for the GeoTIFF group.
static OnlineResource GEOTOOLKIT
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource GEOTOOLS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource ISO
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource NETCDF
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource OGC
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource OPEN_GIS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource ORACLE
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource POSTGIS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource PROJ4
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource SUN_MICROSYSTEMS
          Deprecated. To be replaced by a database (constants are becoming too numerous)
static OnlineResource WMS
          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
DefaultOnlineResource()
          Creates an initially empty on line resource.
DefaultOnlineResource(OnlineResource source)
          Constructs a metadata entity initialized with the values from the specified metadata.
DefaultOnlineResource(URI linkage)
          Creates an on line resource initialized to the given URI.
 
Method Summary
static DefaultOnlineResource castOrCopy(OnlineResource object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 String getApplicationProfile()
          Returns the name of an application profile that can be used with the online resource.
 InternationalString getDescription()
          Returns the detailed text description of what the online resource is/does.
 OnLineFunction getFunction()
          Returns the code for function performed by the online resource.
 URI getLinkage()
          Returns the location (address) for on-line access using a Uniform Resource Locator address or similar addressing scheme such as http://www.statkart.no/isotc211.
 String getName()
          Name of the online resource.
 String getProtocol()
          Returns the connection protocol to be used.
 void setApplicationProfile(String newValue)
          Sets the name of an application profile that can be used with the online resource.
 void setDescription(InternationalString newValue)
          Sets the detailed text description of what the online resource is/does.
 void setFunction(OnLineFunction newValue)
          Sets the code for function performed by the online resource.
 void setLinkage(URI newValue)
          Sets the location (address) for on-line access using a Uniform Resource Locator address or similar addressing scheme such as http://www.statkart.no/isotc211.
 void setName(String newValue)
          Sets the name of the online resource.
 void setProtocol(String newValue)
          Returns the connection protocol to be used.
 
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 OnlineResource ISO
Deprecated. To be replaced by a database (constants are becoming too numerous)
The online resources for the International Organization for Standardization.

Since:
3.19

OGC

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

See Also:
OPEN_GIS

OPEN_GIS

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

See Also:
OGC

EPSG

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


NETCDF

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

Since:
3.08

GEOTIFF

public static final OnlineResource GEOTIFF
The online resources for the GeoTIFF group.


PROJ4

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

Since:
3.20

ESRI

@Deprecated
public static final OnlineResource ESRI
Deprecated. To be replaced by a database (constants are becoming too numerous)
The online resources for ESRI.


ORACLE

@Deprecated
public static final OnlineResource ORACLE
Deprecated. To be replaced by a database (constants are becoming too numerous)
The online resources for Oracle.


POSTGIS

@Deprecated
public static final OnlineResource POSTGIS
Deprecated. To be replaced by a database (constants are becoming too numerous)
The online resources for PostGIS.

Since:
2.4

SUN_MICROSYSTEMS

@Deprecated
public static final OnlineResource SUN_MICROSYSTEMS
Deprecated. To be replaced by a database (constants are becoming too numerous)
The online resources for Sun Microsystems. This online resources point to the Java developer site.

Since:
2.2

GEOTOOLKIT

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


GEOTOOLS

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


WMS

@Deprecated
public static final OnlineResource WMS
Deprecated. To be replaced by a database (constants are becoming too numerous)
The download link for Web Map Service specification. The download link may change in future Geotk versions in order to point toward the latest specification.

Since:
2.2
Constructor Detail

DefaultOnlineResource

public DefaultOnlineResource()
Creates an initially empty on line resource.


DefaultOnlineResource

public DefaultOnlineResource(OnlineResource 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

DefaultOnlineResource

public DefaultOnlineResource(URI linkage)
Creates an on line resource initialized to the given URI.

Parameters:
linkage - The location for on-line access using a Uniform Resource Locator address, or null if none.
Method Detail

castOrCopy

public static DefaultOnlineResource castOrCopy(OnlineResource 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

getApplicationProfile

public String getApplicationProfile()
Returns the name of an application profile that can be used with the online resource. Returns null if none.

Specified by:
getApplicationProfile in interface OnlineResource

setApplicationProfile

public void setApplicationProfile(String newValue)
Sets the name of an application profile that can be used with the online resource.

Parameters:
newValue - The new application profile.

getName

public String getName()
Name of the online resource. Returns null if none.

Specified by:
getName in interface OnlineResource
Since:
2.4

setName

public void setName(String newValue)
Sets the name of the online resource.

Parameters:
newValue - The new name.
Since:
2.4

getDescription

public InternationalString getDescription()
Returns the detailed text description of what the online resource is/does. Returns null if none.

Specified by:
getDescription in interface OnlineResource

setDescription

public void setDescription(InternationalString newValue)
Sets the detailed text description of what the online resource is/does.

Parameters:
newValue - The new description.

getFunction

public OnLineFunction getFunction()
Returns the code for function performed by the online resource. Returns null if unspecified.

Specified by:
getFunction in interface OnlineResource

setFunction

public void setFunction(OnLineFunction newValue)
Sets the code for function performed by the online resource.

Parameters:
newValue - The new function.

getLinkage

public URI getLinkage()
Returns the location (address) for on-line access using a Uniform Resource Locator address or similar addressing scheme such as http://www.statkart.no/isotc211.

Specified by:
getLinkage in interface OnlineResource

setLinkage

public void setLinkage(URI newValue)
Sets the location (address) for on-line access using a Uniform Resource Locator address or similar addressing scheme such as http://www.statkart.no/isotc211.

Parameters:
newValue - The new linkage.

getProtocol

public String getProtocol()
Returns the connection protocol to be used. Returns null if none.

Specified by:
getProtocol in interface OnlineResource

setProtocol

public void setProtocol(String newValue)
Returns the connection protocol to be used.

Parameters:
newValue - The new protocol.
Since:
3.04


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