Class SimpleMetadata

java.lang.Object
org.apache.sis.internal.simple.SimpleMetadata
All Implemented Interfaces:
org.opengis.metadata.citation.Citation, org.opengis.metadata.identification.DataIdentification, org.opengis.metadata.identification.Identification, org.opengis.metadata.Metadata
Direct Known Subclasses:
Metadata

public class SimpleMetadata extends Object implements org.opengis.metadata.Metadata, org.opengis.metadata.identification.DataIdentification, org.opengis.metadata.citation.Citation
An empty implementation of ISO 19115 metadata for dataset (not for services). This simple implementation presumes that the metadata describes exactly one dataset, which is described by implementing methods from the DataIdentification interface. The identification information itself presumes that the dataset is referenced by exactly one citation.

Unless specified otherwise, all methods in this class returns null or an empty collection by default. The exceptions to this rules are the following methods:

Subclasses are encouraged to override the following methods (typically with hard-coded values):
Since:
0.8
Version:
0.8
  • Constructor Details

    • SimpleMetadata

      protected SimpleMetadata()
      Creates a new metadata object.
  • Method Details

    • getFileIdentifier

      public String getFileIdentifier()
      Unique identifier for this metadata record.
      Specified by:
      getFileIdentifier in interface org.opengis.metadata.Metadata
    • getLanguages

      public Collection<Locale> getLanguages()
      Language(s) used for documenting metadata. Also the language(s) used within the data.
      Specified by:
      getLanguages in interface org.opengis.metadata.identification.DataIdentification
    • getLanguage

      public Locale getLanguage()
      Language(s) used for documenting metadata. Also the language(s) used within the data.
      Specified by:
      getLanguage in interface org.opengis.metadata.Metadata
    • getLocales

      public Collection<Locale> getLocales()
      Language(s) used for documenting metadata. Also the language(s) used within the data.
      Specified by:
      getLocales in interface org.opengis.metadata.Metadata
    • getCharacterSets

      public Collection<org.opengis.metadata.identification.CharacterSet> getCharacterSets()
      The character coding standard used for the metadata set. Also the character coding standard(s) used for the dataset.
      Specified by:
      getCharacterSets in interface org.opengis.metadata.identification.DataIdentification
    • getCharacterSet

      public org.opengis.metadata.identification.CharacterSet getCharacterSet()
      The character coding standard used for the metadata set. Also the character coding standard(s) used for the dataset.
      Specified by:
      getCharacterSet in interface org.opengis.metadata.Metadata
    • getParentIdentifier

      public String getParentIdentifier()
      Identification of the parent metadata record.
      Specified by:
      getParentIdentifier in interface org.opengis.metadata.Metadata
    • getHierarchyLevels

      public Collection<org.opengis.metadata.maintenance.ScopeCode> getHierarchyLevels()
      Code for the metadata scope, fixed to ScopeCode.DATASET by default. The DATASET default value is consistent with the fact that SimpleMetadata implements DataIdentification.
      Specified by:
      getHierarchyLevels in interface org.opengis.metadata.Metadata
    • getHierarchyLevelNames

      public Collection<String> getHierarchyLevelNames()
      Description of the metadata scope.
      Specified by:
      getHierarchyLevelNames in interface org.opengis.metadata.Metadata
    • getContacts

      public Collection<org.opengis.metadata.citation.ResponsibleParty> getContacts()
      Parties responsible for the metadata information.
      Specified by:
      getContacts in interface org.opengis.metadata.Metadata
    • getDateStamp

      public Date getDateStamp()
      Date(s) associated with the metadata.
      Specified by:
      getDateStamp in interface org.opengis.metadata.Metadata
    • getMetadataStandardName

      public String getMetadataStandardName()
      Citation(s) for the standard(s) to which the metadata conform.
      Specified by:
      getMetadataStandardName in interface org.opengis.metadata.Metadata
    • getMetadataStandardVersion

      public String getMetadataStandardVersion()
      As of ISO 19115:2014, replaced by getMetadataStandards() followed by Citation.getEdition().
      Specified by:
      getMetadataStandardVersion in interface org.opengis.metadata.Metadata
    • getDataSetUri

      public String getDataSetUri()
      Online location(s) where the metadata is available.
      Specified by:
      getDataSetUri in interface org.opengis.metadata.Metadata
    • getSpatialRepresentationInfo

      public Collection<org.opengis.metadata.spatial.SpatialRepresentation> getSpatialRepresentationInfo()
      Digital representation of spatial information in the dataset.
      Specified by:
      getSpatialRepresentationInfo in interface org.opengis.metadata.Metadata
    • getReferenceSystemInfo

      public Collection<org.opengis.referencing.ReferenceSystem> getReferenceSystemInfo()
      Description of the spatial and temporal reference systems used in the dataset.
      Specified by:
      getReferenceSystemInfo in interface org.opengis.metadata.Metadata
    • getMetadataExtensionInfo

      public Collection<org.opengis.metadata.MetadataExtensionInformation> getMetadataExtensionInfo()
      Information describing metadata extensions.
      Specified by:
      getMetadataExtensionInfo in interface org.opengis.metadata.Metadata
    • getIdentificationInfo

      public Collection<org.opengis.metadata.identification.DataIdentification> getIdentificationInfo()
      Basic information about the resource(s) to which the metadata applies. This method returns this for allowing call to getCitation(). and other methods.
      Specified by:
      getIdentificationInfo in interface org.opengis.metadata.Metadata
      See Also:
    • getContentInfo

      public Collection<org.opengis.metadata.content.ContentInformation> getContentInfo()
      Information about the feature and coverage characteristics.
      Specified by:
      getContentInfo in interface org.opengis.metadata.Metadata
    • getDistributionInfo

      public org.opengis.metadata.distribution.Distribution getDistributionInfo()
      Information about the distributor of and options for obtaining the resource(s).
      Specified by:
      getDistributionInfo in interface org.opengis.metadata.Metadata
    • getDataQualityInfo

      public Collection<org.opengis.metadata.quality.DataQuality> getDataQualityInfo()
      Overall assessment of quality of a resource(s).
      Specified by:
      getDataQualityInfo in interface org.opengis.metadata.Metadata
    • getPortrayalCatalogueInfo

      public Collection<org.opengis.metadata.PortrayalCatalogueReference> getPortrayalCatalogueInfo()
      Information about the catalogue of rules defined for the portrayal of a resource(s).
      Specified by:
      getPortrayalCatalogueInfo in interface org.opengis.metadata.Metadata
    • getMetadataConstraints

      public Collection<org.opengis.metadata.constraint.Constraints> getMetadataConstraints()
      Restrictions on the access and use of metadata.
      Specified by:
      getMetadataConstraints in interface org.opengis.metadata.Metadata
    • getApplicationSchemaInfo

      public Collection<org.opengis.metadata.ApplicationSchemaInformation> getApplicationSchemaInfo()
      Information about the conceptual schema of a dataset.
      Specified by:
      getApplicationSchemaInfo in interface org.opengis.metadata.Metadata
    • getAcquisitionInformation

      public Collection<org.opengis.metadata.acquisition.AcquisitionInformation> getAcquisitionInformation()
      Information about the acquisition of the data.
      Specified by:
      getAcquisitionInformation in interface org.opengis.metadata.Metadata
    • getMetadataMaintenance

      public org.opengis.metadata.maintenance.MaintenanceInformation getMetadataMaintenance()
      Information about the frequency of metadata updates, and the scope of those updates.
      Specified by:
      getMetadataMaintenance in interface org.opengis.metadata.Metadata
    • getCitation

      public org.opengis.metadata.citation.Citation getCitation()
      Citation for the resource. This is part of the information returned by getIdentificationInfo(). This method returns this for allowing call to getTitle() and other methods.
      Specified by:
      getCitation in interface org.opengis.metadata.identification.Identification
    • getAbstract

      public org.opengis.util.InternationalString getAbstract()
      Brief narrative summary of the resource. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getAbstract in interface org.opengis.metadata.identification.Identification
    • getPurpose

      public org.opengis.util.InternationalString getPurpose()
      Summary of the intentions with which the resource was developed. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getPurpose in interface org.opengis.metadata.identification.Identification
    • getCredits

      public Collection<String> getCredits()
      Recognition of those who contributed to the resource. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getCredits in interface org.opengis.metadata.identification.Identification
    • getStatus

      public Collection<org.opengis.metadata.identification.Progress> getStatus()
      Status of the resource. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getStatus in interface org.opengis.metadata.identification.Identification
    • getPointOfContacts

      public Collection<org.opengis.metadata.citation.ResponsibleParty> getPointOfContacts()
      Identification of, and means of communication with, person(s) and organisations associated with the resource(s). This is part of the information returned by getIdentificationInfo().
      Specified by:
      getPointOfContacts in interface org.opengis.metadata.identification.Identification
    • getSpatialRepresentationTypes

      public Collection<org.opengis.metadata.spatial.SpatialRepresentationType> getSpatialRepresentationTypes()
      Methods used to spatially represent geographic information. This is part of the information returned by getIdentificationInfo(). Default implementation returns SpatialRepresentationType.VECTOR. Subclasses should override this method if they represent gridded data instead of vector data.
      Specified by:
      getSpatialRepresentationTypes in interface org.opengis.metadata.identification.DataIdentification
    • getSpatialResolutions

      public Collection<org.opengis.metadata.identification.Resolution> getSpatialResolutions()
      Factor which provides a general understanding of the density of spatial data in the resource. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getSpatialResolutions in interface org.opengis.metadata.identification.DataIdentification
    • getTopicCategories

      public Collection<org.opengis.metadata.identification.TopicCategory> getTopicCategories()
      Main theme(s) of the resource. This is part of the information returned by getIdentificationInfo(). Default implementation returns TopicCategory.LOCATION. Subclasses should override this method if they represent other kind of data.
      Specified by:
      getTopicCategories in interface org.opengis.metadata.identification.DataIdentification
    • getExtents

      public Collection<org.opengis.metadata.extent.Extent> getExtents()
      Spatial and temporal extent of the resource. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getExtents in interface org.opengis.metadata.identification.DataIdentification
    • getResourceMaintenances

      public Collection<org.opengis.metadata.maintenance.MaintenanceInformation> getResourceMaintenances()
      Information about the frequency of resource updates, and the scope of those updates. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getResourceMaintenances in interface org.opengis.metadata.identification.Identification
    • getGraphicOverviews

      public Collection<org.opengis.metadata.identification.BrowseGraphic> getGraphicOverviews()
      Graphic that illustrates the resource(s) (should include a legend for the graphic). This is part of the information returned by getIdentificationInfo().
      Specified by:
      getGraphicOverviews in interface org.opengis.metadata.identification.Identification
    • getResourceFormats

      public Collection<org.opengis.metadata.distribution.Format> getResourceFormats()
      Description of the format of the resource(s). This is part of the information returned by getIdentificationInfo().
      Specified by:
      getResourceFormats in interface org.opengis.metadata.identification.Identification
    • getDescriptiveKeywords

      public Collection<org.opengis.metadata.identification.Keywords> getDescriptiveKeywords()
      Category keywords, their type, and reference source. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getDescriptiveKeywords in interface org.opengis.metadata.identification.Identification
    • getResourceSpecificUsages

      public Collection<org.opengis.metadata.identification.Usage> getResourceSpecificUsages()
      Basic information about specific application(s) for which the resource(s) has/have been or is being used by different users. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getResourceSpecificUsages in interface org.opengis.metadata.identification.Identification
    • getResourceConstraints

      public Collection<org.opengis.metadata.constraint.Constraints> getResourceConstraints()
      Information about constraints which apply to the resource(s). This is part of the information returned by getIdentificationInfo().
      Specified by:
      getResourceConstraints in interface org.opengis.metadata.identification.Identification
    • getAggregationInfo

      @Deprecated public Collection<org.opengis.metadata.identification.AggregateInformation> getAggregationInfo()
      Deprecated.
      As of ISO 19115:2014, replaced by getAssociatedResources().
      Specified by:
      getAggregationInfo in interface org.opengis.metadata.identification.Identification
    • getEnvironmentDescription

      public org.opengis.util.InternationalString getEnvironmentDescription()
      Description of the resource in the producer's processing environment, including items such as the software, the computer operating system, file name, and the dataset size. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getEnvironmentDescription in interface org.opengis.metadata.identification.DataIdentification
    • getSupplementalInformation

      public org.opengis.util.InternationalString getSupplementalInformation()
      Any other descriptive information about the resource. This is part of the information returned by getIdentificationInfo().
      Specified by:
      getSupplementalInformation in interface org.opengis.metadata.identification.DataIdentification
    • getTitle

      public org.opengis.util.InternationalString getTitle()
      Name by which the cited resource is known. This is part of the information returned by getCitation().
      Specified by:
      getTitle in interface org.opengis.metadata.citation.Citation
    • getAlternateTitles

      public Collection<org.opengis.util.InternationalString> getAlternateTitles()
      Short names or other language names by which the cited information is known. This is part of the information returned by getCitation().
      Specified by:
      getAlternateTitles in interface org.opengis.metadata.citation.Citation
    • getDates

      public Collection<org.opengis.metadata.citation.CitationDate> getDates()
      Reference dates for the cited resource. This is part of the information returned by getCitation().
      Specified by:
      getDates in interface org.opengis.metadata.citation.Citation
    • getEdition

      public org.opengis.util.InternationalString getEdition()
      Version of the cited resource. This is part of the information returned by getCitation().
      Specified by:
      getEdition in interface org.opengis.metadata.citation.Citation
    • getEditionDate

      public Date getEditionDate()
      Date of the edition. This is part of the information returned by getCitation().
      Specified by:
      getEditionDate in interface org.opengis.metadata.citation.Citation
    • getIdentifiers

      public Collection<org.opengis.metadata.Identifier> getIdentifiers()
      Unique identifier for the resource. This is part of the information returned by getCitation().
      Specified by:
      getIdentifiers in interface org.opengis.metadata.citation.Citation
    • getCitedResponsibleParties

      public Collection<org.opengis.metadata.citation.ResponsibleParty> getCitedResponsibleParties()
      Role, name, contact and position information for individuals or organisations that are responsible for the resource. This is part of the information returned by getCitation().
      Specified by:
      getCitedResponsibleParties in interface org.opengis.metadata.citation.Citation
    • getPresentationForms

      public Collection<org.opengis.metadata.citation.PresentationForm> getPresentationForms()
      Mode in which the resource is represented. This is part of the information returned by getCitation(). Default implementation returns PresentationForm.TABLE_DIGITAL. Subclasses should override this method if they represent other kind of data.
      Specified by:
      getPresentationForms in interface org.opengis.metadata.citation.Citation
    • getSeries

      public org.opengis.metadata.citation.Series getSeries()
      Information about the series, or aggregate dataset, of which the dataset is a part. This is part of the information returned by getCitation().
      Specified by:
      getSeries in interface org.opengis.metadata.citation.Citation
    • getOtherCitationDetails

      public org.opengis.util.InternationalString getOtherCitationDetails()
      Other information required to complete the citation that is not recorded elsewhere. This is part of the information returned by getCitation().
      Specified by:
      getOtherCitationDetails in interface org.opengis.metadata.citation.Citation
    • getCollectiveTitle

      @Deprecated public org.opengis.util.InternationalString getCollectiveTitle()
      Deprecated.
      Removed as of ISO 19115:2014.
      Specified by:
      getCollectiveTitle in interface org.opengis.metadata.citation.Citation
    • getISBN

      public String getISBN()
      International Standard Book Number. This is part of the information returned by getCitation().
      Specified by:
      getISBN in interface org.opengis.metadata.citation.Citation
    • getISSN

      public String getISSN()
      International Standard Serial Number. This is part of the information returned by getCitation().
      Specified by:
      getISSN in interface org.opengis.metadata.citation.Citation