org.geotools.metadata.iso
Class MetaDataImpl

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

public class MetaDataImpl
extends MetadataEntity
implements org.opengis.metadata.MetaData

Root entity which defines metadata about a resource or resources.

Since:
2.1
Version:
$Id: MetaDataImpl.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
MetaDataImpl()
          Creates an initially empty metadata.
MetaDataImpl(org.opengis.metadata.citation.ResponsibleParty contact, java.util.Date dateStamp, org.opengis.metadata.identification.Identification identificationInfo)
          Creates a meta data initialised to the specified values.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this MetaData with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 java.util.Collection getApplicationSchemaInfo()
          Provides information about the conceptual schema of a dataset.
 java.nio.charset.Charset getCharacterSet()
          Returns the full name of the character coding standard used for the metadata set.
 org.opengis.metadata.citation.ResponsibleParty getContact()
          Returns the party responsible for the metadata information.
 java.util.Collection getContentInfo()
          Provides information about the feature catalogue and describes the coverage and image data characteristics.
 java.util.Collection getDataQualityInfo()
          Provides overall assessment of quality of a resource(s).
 java.util.Date getDateStamp()
          Returns the date that the metadata was created.
 org.opengis.metadata.distribution.Distribution getDistributionInfo()
          Provides information about the distributor of and options for obtaining the resource(s).
 java.lang.String getFileIdentifier()
          Returns the unique identifier for this metadata file, or if none.
 java.util.Collection getHierarchyLevelNames()
          Returns the name of the hierarchy levels for which the metadata is provided.
 java.util.Collection getHierarchyLevels()
          Returns the scope to which the metadata applies.
 java.util.Collection getIdentificationInfo()
          Returns basic information about the resource(s) to which the metadata applies.
 java.util.Locale getLanguage()
          Returns the language used for documenting metadata.
 java.util.Collection getMetadataConstraints()
          Provides restrictions on the access and use of data.
 java.util.Collection getMetadataExtensionInfo()
          Returns information describing metadata extensions.
 org.opengis.metadata.maintenance.MaintenanceInformation getMetadataMaintenance()
          Provides information about the frequency of metadata updates, and the scope of those updates.
 java.lang.String getMetadataStandardName()
          Returns the name of the metadata standard (including profile name) used.
 java.lang.String getMetadataStandardVersion()
          Returns the version (profile) of the metadata standard used.
 java.lang.String getParentIdentifier()
          Returns the file identifier of the metadata to which this metadata is a subset (child).
 java.util.Collection getPortrayalCatalogueInfo()
          Provides information about the catalogue of rules defined for the portrayal of a resource(s).
 java.util.Collection getReferenceSystemInfo()
          Returns the description of the spatial and temporal reference systems used in the dataset.
 java.util.Collection getSpatialRepresentationInfo()
          Returns the digital representation of spatial information in the dataset.
 int hashCode()
          Returns a hash code value for this address.
 void setApplicationSchemaInfo(java.util.Collection newValues)
          Provides information about the conceptual schema of a dataset.
 void setCharacterSet(java.lang.String newValue)
          Set the full name of the character coding standard used for the metadata set.
 void setContact(org.opengis.metadata.citation.ResponsibleParty newValue)
          Set the party responsible for the metadata information.
 void setContentInfo(java.util.Collection newValues)
          Set information about the feature catalogue and describes the coverage and image data characteristics.
 void setDataQualityInfo(java.util.Collection newValues)
          Set overall assessment of quality of a resource(s).
 void setDateStamp(java.util.Date newValue)
          Set the date that the metadata was created.
 void setDistributionInfo(org.opengis.metadata.distribution.Distribution newValue)
          Provides information about the distributor of and options for obtaining the resource(s).
 void setFileIdentifier(java.lang.String newValue)
          Set the unique identifier for this metadata file, or if none.
 void setHierarchyLevelNames(java.util.Collection newValues)
          Set the name of the hierarchy levels for which the metadata is provided.
 void setHierarchyLevels(java.util.Collection newValues)
          Set the scope to which the metadata applies.
 void setIdentificationInfo(java.util.Collection newValues)
          Set basic information about the resource(s) to which the metadata applies.
 void setLanguage(java.util.Locale newValue)
          Set the language used for documenting metadata.
 void setMetadataConstraints(java.util.Collection newValues)
          Set restrictions on the access and use of data.
 void setMetadataExtensionInfo(java.util.Collection newValues)
          Set information describing metadata extensions.
 void setMetadataMaintenance(org.opengis.metadata.maintenance.MaintenanceInformation newValue)
          Set information about the frequency of metadata updates, and the scope of those updates.
 void setMetadataStandardName(java.lang.String newValue)
          Name of the metadata standard (including profile name) used.
 void setMetadataStandardVersion(java.lang.String newValue)
          Set the version (profile) of the metadata standard used.
 void setParentIdentifier(java.lang.String newValue)
          Set the file identifier of the metadata to which this metadata is a subset (child).
 void setPortrayalCatalogueInfo(java.util.Collection newValues)
          Set information about the catalogue of rules defined for the portrayal of a resource(s).
 void setReferenceSystemInfo(java.util.Collection newValues)
          Set the description of the spatial and temporal reference systems used in the dataset.
 void setSpatialRepresentationInfo(java.util.Collection newValues)
          Set the digital representation of spatial information in the dataset.
 java.lang.String toString()
          Returns a string representation of this metadata.
 
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

MetaDataImpl

public MetaDataImpl()
Creates an initially empty metadata.


MetaDataImpl

public MetaDataImpl(org.opengis.metadata.citation.ResponsibleParty contact,
                    java.util.Date dateStamp,
                    org.opengis.metadata.identification.Identification identificationInfo)
Creates a meta data initialised to the specified values.

Parameters:
contact - Party responsible for the metadata information.
dateStamp - Date that the metadata was created.
identificationInfo - Basic information about the resource to which the metadata applies.
Method Detail

getFileIdentifier

public java.lang.String getFileIdentifier()
Returns the unique identifier for this metadata file, or if none.

Specified by:
getFileIdentifier in interface org.opengis.metadata.MetaData

setFileIdentifier

public void setFileIdentifier(java.lang.String newValue)
Set the unique identifier for this metadata file, or if none.


getLanguage

public java.util.Locale getLanguage()
Returns the language used for documenting metadata.

Specified by:
getLanguage in interface org.opengis.metadata.MetaData

setLanguage

public void setLanguage(java.util.Locale newValue)
Set the language used for documenting metadata.


getCharacterSet

public java.nio.charset.Charset getCharacterSet()
Returns the full name of the character coding standard used for the metadata set.

Specified by:
getCharacterSet in interface org.opengis.metadata.MetaData

setCharacterSet

public void setCharacterSet(java.lang.String newValue)
Set the full name of the character coding standard used for the metadata set.


getParentIdentifier

public java.lang.String getParentIdentifier()
Returns the file identifier of the metadata to which this metadata is a subset (child).

Specified by:
getParentIdentifier in interface org.opengis.metadata.MetaData

setParentIdentifier

public void setParentIdentifier(java.lang.String newValue)
Set the file identifier of the metadata to which this metadata is a subset (child).


getHierarchyLevels

public java.util.Collection getHierarchyLevels()
Returns the scope to which the metadata applies.

Specified by:
getHierarchyLevels in interface org.opengis.metadata.MetaData

setHierarchyLevels

public void setHierarchyLevels(java.util.Collection newValues)
Set the scope to which the metadata applies.


getHierarchyLevelNames

public java.util.Collection getHierarchyLevelNames()
Returns the name of the hierarchy levels for which the metadata is provided.

Specified by:
getHierarchyLevelNames in interface org.opengis.metadata.MetaData

setHierarchyLevelNames

public void setHierarchyLevelNames(java.util.Collection newValues)
Set the name of the hierarchy levels for which the metadata is provided.


getContact

public org.opengis.metadata.citation.ResponsibleParty getContact()
Returns the party responsible for the metadata information.

Specified by:
getContact in interface org.opengis.metadata.MetaData

setContact

public void setContact(org.opengis.metadata.citation.ResponsibleParty newValue)
Set the party responsible for the metadata information.


getDateStamp

public java.util.Date getDateStamp()
Returns the date that the metadata was created.

Specified by:
getDateStamp in interface org.opengis.metadata.MetaData

setDateStamp

public void setDateStamp(java.util.Date newValue)
Set the date that the metadata was created.


getMetadataStandardName

public java.lang.String getMetadataStandardName()
Returns the name of the metadata standard (including profile name) used.

Specified by:
getMetadataStandardName in interface org.opengis.metadata.MetaData

setMetadataStandardName

public void setMetadataStandardName(java.lang.String newValue)
Name of the metadata standard (including profile name) used.


getMetadataStandardVersion

public java.lang.String getMetadataStandardVersion()
Returns the version (profile) of the metadata standard used.

Specified by:
getMetadataStandardVersion in interface org.opengis.metadata.MetaData

setMetadataStandardVersion

public void setMetadataStandardVersion(java.lang.String newValue)
Set the version (profile) of the metadata standard used.


getSpatialRepresentationInfo

public java.util.Collection getSpatialRepresentationInfo()
Returns the digital representation of spatial information in the dataset.

Specified by:
getSpatialRepresentationInfo in interface org.opengis.metadata.MetaData

setSpatialRepresentationInfo

public void setSpatialRepresentationInfo(java.util.Collection newValues)
Set the digital representation of spatial information in the dataset.


getReferenceSystemInfo

public java.util.Collection getReferenceSystemInfo()
Returns the description of the spatial and temporal reference systems used in the dataset.

Specified by:
getReferenceSystemInfo in interface org.opengis.metadata.MetaData

setReferenceSystemInfo

public void setReferenceSystemInfo(java.util.Collection newValues)
Set the description of the spatial and temporal reference systems used in the dataset.


getMetadataExtensionInfo

public java.util.Collection getMetadataExtensionInfo()
Returns information describing metadata extensions.

Specified by:
getMetadataExtensionInfo in interface org.opengis.metadata.MetaData

setMetadataExtensionInfo

public void setMetadataExtensionInfo(java.util.Collection newValues)
Set information describing metadata extensions.


getIdentificationInfo

public java.util.Collection getIdentificationInfo()
Returns basic information about the resource(s) to which the metadata applies.

Specified by:
getIdentificationInfo in interface org.opengis.metadata.MetaData

setIdentificationInfo

public void setIdentificationInfo(java.util.Collection newValues)
Set basic information about the resource(s) to which the metadata applies.


getContentInfo

public java.util.Collection getContentInfo()
Provides information about the feature catalogue and describes the coverage and image data characteristics.

Specified by:
getContentInfo in interface org.opengis.metadata.MetaData

setContentInfo

public void setContentInfo(java.util.Collection newValues)
Set information about the feature catalogue and describes the coverage and image data characteristics.


getDistributionInfo

public org.opengis.metadata.distribution.Distribution getDistributionInfo()
Provides information about the distributor of and options for obtaining the resource(s).

Specified by:
getDistributionInfo in interface org.opengis.metadata.MetaData

setDistributionInfo

public void setDistributionInfo(org.opengis.metadata.distribution.Distribution newValue)
Provides information about the distributor of and options for obtaining the resource(s).


getDataQualityInfo

public java.util.Collection getDataQualityInfo()
Provides overall assessment of quality of a resource(s).

Specified by:
getDataQualityInfo in interface org.opengis.metadata.MetaData

setDataQualityInfo

public void setDataQualityInfo(java.util.Collection newValues)
Set overall assessment of quality of a resource(s).


getPortrayalCatalogueInfo

public java.util.Collection getPortrayalCatalogueInfo()
Provides information about the catalogue of rules defined for the portrayal of a resource(s).

Specified by:
getPortrayalCatalogueInfo in interface org.opengis.metadata.MetaData

setPortrayalCatalogueInfo

public void setPortrayalCatalogueInfo(java.util.Collection newValues)
Set information about the catalogue of rules defined for the portrayal of a resource(s).


getMetadataConstraints

public java.util.Collection getMetadataConstraints()
Provides restrictions on the access and use of data.

Specified by:
getMetadataConstraints in interface org.opengis.metadata.MetaData

setMetadataConstraints

public void setMetadataConstraints(java.util.Collection newValues)
Set restrictions on the access and use of data.


getApplicationSchemaInfo

public java.util.Collection getApplicationSchemaInfo()
Provides information about the conceptual schema of a dataset.

Specified by:
getApplicationSchemaInfo in interface org.opengis.metadata.MetaData

setApplicationSchemaInfo

public void setApplicationSchemaInfo(java.util.Collection newValues)
Provides information about the conceptual schema of a dataset.


getMetadataMaintenance

public org.opengis.metadata.maintenance.MaintenanceInformation getMetadataMaintenance()
Provides information about the frequency of metadata updates, and the scope of those updates.

Specified by:
getMetadataMaintenance in interface org.opengis.metadata.MetaData

setMetadataMaintenance

public void setMetadataMaintenance(org.opengis.metadata.maintenance.MaintenanceInformation newValue)
Set information about the frequency of metadata updates, and the scope of those updates.


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 MetaData 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 metadata. The content of this string is implementation dependent and used mostly for debugging purpose.

To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.