Package org.apache.sis.internal.simple
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:
getMetadataScopes()
returnsthis
getResourceScope()
returnsScopeCode.DATASET
getIdentificationInfo()
returnsthis
getCitation()
returnsthis
getSpatialRepresentationTypes()
returnsSpatialRepresentationType.VECTOR
getTopicCategories()
returnsTopicCategory.LOCATION
getPresentationForms()
returnsPresentationForm.TABLE_DIGITAL
getSpatialRepresentationTypes()
if the metadata describe gridded data instead of vector data.getTopicCategories()
if the data represent something else than locations.getResourceFormats()
with a hard-coded value provided by the data store implementation.getPresentationForms()
if the data represent something else than tabular data.
- Since:
- 0.8
- Version:
- 0.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.util.InternationalString
Brief narrative summary of the resource.Collection<org.opengis.metadata.acquisition.AcquisitionInformation>
Information about the acquisition of the data.Collection<org.opengis.metadata.identification.AggregateInformation>
Deprecated.Collection<org.opengis.util.InternationalString>
Short names or other language names by which the cited information is known.Collection<org.opengis.metadata.ApplicationSchemaInformation>
Information about the conceptual schema of a dataset.org.opengis.metadata.identification.CharacterSet
The character coding standard used for the metadata set.Collection<org.opengis.metadata.identification.CharacterSet>
The character coding standard used for the metadata set.org.opengis.metadata.citation.Citation
Citation for the resource.Collection<org.opengis.metadata.citation.ResponsibleParty>
Role, name, contact and position information for individuals or organisations that are responsible for the resource.org.opengis.util.InternationalString
Deprecated.Removed as of ISO 19115:2014.Collection<org.opengis.metadata.citation.ResponsibleParty>
Parties responsible for the metadata information.Collection<org.opengis.metadata.content.ContentInformation>
Information about the feature and coverage characteristics.Recognition of those who contributed to the resource.Collection<org.opengis.metadata.quality.DataQuality>
Overall assessment of quality of a resource(s).Online location(s) where the metadata is available.Collection<org.opengis.metadata.citation.CitationDate>
getDates()
Reference dates for the cited resource.Date(s) associated with the metadata.Collection<org.opengis.metadata.identification.Keywords>
Category keywords, their type, and reference source.org.opengis.metadata.distribution.Distribution
Information about the distributor of and options for obtaining the resource(s).org.opengis.util.InternationalString
Version of the cited resource.Date of the edition.org.opengis.util.InternationalString
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.Collection<org.opengis.metadata.extent.Extent>
Spatial and temporal extent of the resource.Unique identifier for this metadata record.Collection<org.opengis.metadata.identification.BrowseGraphic>
Graphic that illustrates the resource(s) (should include a legend for the graphic).Description of the metadata scope.Collection<org.opengis.metadata.maintenance.ScopeCode>
Code for the metadata scope, fixed toScopeCode.DATASET
by default.Collection<org.opengis.metadata.identification.DataIdentification>
Basic information about the resource(s) to which the metadata applies.Collection<org.opengis.metadata.Identifier>
Unique identifier for the resource.getISBN()
International Standard Book Number.getISSN()
International Standard Serial Number.Language(s) used for documenting metadata.Language(s) used for documenting metadata.Language(s) used for documenting metadata.Collection<org.opengis.metadata.constraint.Constraints>
Restrictions on the access and use of metadata.Collection<org.opengis.metadata.MetadataExtensionInformation>
Information describing metadata extensions.org.opengis.metadata.maintenance.MaintenanceInformation
Information about the frequency of metadata updates, and the scope of those updates.Citation(s) for the standard(s) to which the metadata conform.As of ISO 19115:2014, replaced bygetMetadataStandards()
followed byCitation.getEdition()
.org.opengis.util.InternationalString
Other information required to complete the citation that is not recorded elsewhere.Identification of the parent metadata record.Collection<org.opengis.metadata.citation.ResponsibleParty>
Identification of, and means of communication with, person(s) and organisations associated with the resource(s).Collection<org.opengis.metadata.PortrayalCatalogueReference>
Information about the catalogue of rules defined for the portrayal of a resource(s).Collection<org.opengis.metadata.citation.PresentationForm>
Mode in which the resource is represented.org.opengis.util.InternationalString
Summary of the intentions with which the resource was developed.Collection<org.opengis.referencing.ReferenceSystem>
Description of the spatial and temporal reference systems used in the dataset.Collection<org.opengis.metadata.constraint.Constraints>
Information about constraints which apply to the resource(s).Collection<org.opengis.metadata.distribution.Format>
Description of the format of the resource(s).Collection<org.opengis.metadata.maintenance.MaintenanceInformation>
Information about the frequency of resource updates, and the scope of those updates.Collection<org.opengis.metadata.identification.Usage>
Basic information about specific application(s) for which the resource(s) has/have been or is being used by different users.org.opengis.metadata.citation.Series
Information about the series, or aggregate dataset, of which the dataset is a part.Collection<org.opengis.metadata.spatial.SpatialRepresentation>
Digital representation of spatial information in the dataset.Collection<org.opengis.metadata.spatial.SpatialRepresentationType>
Methods used to spatially represent geographic information.Collection<org.opengis.metadata.identification.Resolution>
Factor which provides a general understanding of the density of spatial data in the resource.Collection<org.opengis.metadata.identification.Progress>
Status of the resource.org.opengis.util.InternationalString
Any other descriptive information about the resource.org.opengis.util.InternationalString
getTitle()
Name by which the cited resource is known.Collection<org.opengis.metadata.identification.TopicCategory>
Main theme(s) of the resource.
-
Constructor Details
-
SimpleMetadata
protected SimpleMetadata()Creates a new metadata object.
-
-
Method Details
-
getFileIdentifier
Unique identifier for this metadata record.- Specified by:
getFileIdentifier
in interfaceorg.opengis.metadata.Metadata
-
getLanguages
Language(s) used for documenting metadata. Also the language(s) used within the data.- Specified by:
getLanguages
in interfaceorg.opengis.metadata.identification.DataIdentification
-
getLanguage
Language(s) used for documenting metadata. Also the language(s) used within the data.- Specified by:
getLanguage
in interfaceorg.opengis.metadata.Metadata
-
getLocales
Language(s) used for documenting metadata. Also the language(s) used within the data.- Specified by:
getLocales
in interfaceorg.opengis.metadata.Metadata
-
getCharacterSets
The character coding standard used for the metadata set. Also the character coding standard(s) used for the dataset.- Specified by:
getCharacterSets
in interfaceorg.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 interfaceorg.opengis.metadata.Metadata
-
getParentIdentifier
Identification of the parent metadata record.- Specified by:
getParentIdentifier
in interfaceorg.opengis.metadata.Metadata
-
getHierarchyLevels
Code for the metadata scope, fixed toScopeCode.DATASET
by default. TheDATASET
default value is consistent with the fact thatSimpleMetadata
implementsDataIdentification
.- Specified by:
getHierarchyLevels
in interfaceorg.opengis.metadata.Metadata
-
getHierarchyLevelNames
Description of the metadata scope.- Specified by:
getHierarchyLevelNames
in interfaceorg.opengis.metadata.Metadata
-
getContacts
Parties responsible for the metadata information.- Specified by:
getContacts
in interfaceorg.opengis.metadata.Metadata
-
getDateStamp
Date(s) associated with the metadata.- Specified by:
getDateStamp
in interfaceorg.opengis.metadata.Metadata
-
getMetadataStandardName
Citation(s) for the standard(s) to which the metadata conform.- Specified by:
getMetadataStandardName
in interfaceorg.opengis.metadata.Metadata
-
getMetadataStandardVersion
As of ISO 19115:2014, replaced bygetMetadataStandards()
followed byCitation.getEdition()
.- Specified by:
getMetadataStandardVersion
in interfaceorg.opengis.metadata.Metadata
-
getDataSetUri
Online location(s) where the metadata is available.- Specified by:
getDataSetUri
in interfaceorg.opengis.metadata.Metadata
-
getSpatialRepresentationInfo
public Collection<org.opengis.metadata.spatial.SpatialRepresentation> getSpatialRepresentationInfo()Digital representation of spatial information in the dataset.- Specified by:
getSpatialRepresentationInfo
in interfaceorg.opengis.metadata.Metadata
-
getReferenceSystemInfo
Description of the spatial and temporal reference systems used in the dataset.- Specified by:
getReferenceSystemInfo
in interfaceorg.opengis.metadata.Metadata
-
getMetadataExtensionInfo
Information describing metadata extensions.- Specified by:
getMetadataExtensionInfo
in interfaceorg.opengis.metadata.Metadata
-
getIdentificationInfo
Basic information about the resource(s) to which the metadata applies. This method returnsthis
for allowing call togetCitation()
. and other methods.- Specified by:
getIdentificationInfo
in interfaceorg.opengis.metadata.Metadata
- See Also:
-
getContentInfo
Information about the feature and coverage characteristics.- Specified by:
getContentInfo
in interfaceorg.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 interfaceorg.opengis.metadata.Metadata
-
getDataQualityInfo
Overall assessment of quality of a resource(s).- Specified by:
getDataQualityInfo
in interfaceorg.opengis.metadata.Metadata
-
getPortrayalCatalogueInfo
Information about the catalogue of rules defined for the portrayal of a resource(s).- Specified by:
getPortrayalCatalogueInfo
in interfaceorg.opengis.metadata.Metadata
-
getMetadataConstraints
Restrictions on the access and use of metadata.- Specified by:
getMetadataConstraints
in interfaceorg.opengis.metadata.Metadata
-
getApplicationSchemaInfo
Information about the conceptual schema of a dataset.- Specified by:
getApplicationSchemaInfo
in interfaceorg.opengis.metadata.Metadata
-
getAcquisitionInformation
public Collection<org.opengis.metadata.acquisition.AcquisitionInformation> getAcquisitionInformation()Information about the acquisition of the data.- Specified by:
getAcquisitionInformation
in interfaceorg.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 interfaceorg.opengis.metadata.Metadata
-
getCitation
public org.opengis.metadata.citation.Citation getCitation()Citation for the resource. This is part of the information returned bygetIdentificationInfo()
. This method returnsthis
for allowing call togetTitle()
and other methods.- Specified by:
getCitation
in interfaceorg.opengis.metadata.identification.Identification
-
getAbstract
public org.opengis.util.InternationalString getAbstract()Brief narrative summary of the resource. This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getAbstract
in interfaceorg.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 bygetIdentificationInfo()
.- Specified by:
getPurpose
in interfaceorg.opengis.metadata.identification.Identification
-
getCredits
Recognition of those who contributed to the resource. This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getCredits
in interfaceorg.opengis.metadata.identification.Identification
-
getStatus
Status of the resource. This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getStatus
in interfaceorg.opengis.metadata.identification.Identification
-
getPointOfContacts
Identification of, and means of communication with, person(s) and organisations associated with the resource(s). This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getPointOfContacts
in interfaceorg.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 bygetIdentificationInfo()
. Default implementation returnsSpatialRepresentationType.VECTOR
. Subclasses should override this method if they represent gridded data instead of vector data.- Specified by:
getSpatialRepresentationTypes
in interfaceorg.opengis.metadata.identification.DataIdentification
-
getSpatialResolutions
Factor which provides a general understanding of the density of spatial data in the resource. This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getSpatialResolutions
in interfaceorg.opengis.metadata.identification.DataIdentification
-
getTopicCategories
Main theme(s) of the resource. This is part of the information returned bygetIdentificationInfo()
. Default implementation returnsTopicCategory.LOCATION
. Subclasses should override this method if they represent other kind of data.- Specified by:
getTopicCategories
in interfaceorg.opengis.metadata.identification.DataIdentification
-
getExtents
Spatial and temporal extent of the resource. This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getExtents
in interfaceorg.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 bygetIdentificationInfo()
.- Specified by:
getResourceMaintenances
in interfaceorg.opengis.metadata.identification.Identification
-
getGraphicOverviews
Graphic that illustrates the resource(s) (should include a legend for the graphic). This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getGraphicOverviews
in interfaceorg.opengis.metadata.identification.Identification
-
getResourceFormats
Description of the format of the resource(s). This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getResourceFormats
in interfaceorg.opengis.metadata.identification.Identification
-
getDescriptiveKeywords
Category keywords, their type, and reference source. This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getDescriptiveKeywords
in interfaceorg.opengis.metadata.identification.Identification
-
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 bygetIdentificationInfo()
.- Specified by:
getResourceSpecificUsages
in interfaceorg.opengis.metadata.identification.Identification
-
getResourceConstraints
Information about constraints which apply to the resource(s). This is part of the information returned bygetIdentificationInfo()
.- Specified by:
getResourceConstraints
in interfaceorg.opengis.metadata.identification.Identification
-
getAggregationInfo
@Deprecated public Collection<org.opengis.metadata.identification.AggregateInformation> getAggregationInfo()Deprecated.As of ISO 19115:2014, replaced bygetAssociatedResources()
.- Specified by:
getAggregationInfo
in interfaceorg.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 bygetIdentificationInfo()
.- Specified by:
getEnvironmentDescription
in interfaceorg.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 bygetIdentificationInfo()
.- Specified by:
getSupplementalInformation
in interfaceorg.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 bygetCitation()
.- Specified by:
getTitle
in interfaceorg.opengis.metadata.citation.Citation
-
getAlternateTitles
Short names or other language names by which the cited information is known. This is part of the information returned bygetCitation()
.- Specified by:
getAlternateTitles
in interfaceorg.opengis.metadata.citation.Citation
-
getDates
Reference dates for the cited resource. This is part of the information returned bygetCitation()
.- Specified by:
getDates
in interfaceorg.opengis.metadata.citation.Citation
-
getEdition
public org.opengis.util.InternationalString getEdition()Version of the cited resource. This is part of the information returned bygetCitation()
.- Specified by:
getEdition
in interfaceorg.opengis.metadata.citation.Citation
-
getEditionDate
Date of the edition. This is part of the information returned bygetCitation()
.- Specified by:
getEditionDate
in interfaceorg.opengis.metadata.citation.Citation
-
getIdentifiers
Unique identifier for the resource. This is part of the information returned bygetCitation()
.- Specified by:
getIdentifiers
in interfaceorg.opengis.metadata.citation.Citation
-
getCitedResponsibleParties
Role, name, contact and position information for individuals or organisations that are responsible for the resource. This is part of the information returned bygetCitation()
.- Specified by:
getCitedResponsibleParties
in interfaceorg.opengis.metadata.citation.Citation
-
getPresentationForms
Mode in which the resource is represented. This is part of the information returned bygetCitation()
. Default implementation returnsPresentationForm.TABLE_DIGITAL
. Subclasses should override this method if they represent other kind of data.- Specified by:
getPresentationForms
in interfaceorg.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 bygetCitation()
.- Specified by:
getSeries
in interfaceorg.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 bygetCitation()
.- Specified by:
getOtherCitationDetails
in interfaceorg.opengis.metadata.citation.Citation
-
getCollectiveTitle
Deprecated.Removed as of ISO 19115:2014.- Specified by:
getCollectiveTitle
in interfaceorg.opengis.metadata.citation.Citation
-
getISBN
International Standard Book Number. This is part of the information returned bygetCitation()
.- Specified by:
getISBN
in interfaceorg.opengis.metadata.citation.Citation
-
getISSN
International Standard Serial Number. This is part of the information returned bygetCitation()
.- Specified by:
getISSN
in interfaceorg.opengis.metadata.citation.Citation
-
getAssociatedResources()
.