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()returnsthisgetResourceScope()returnsScopeCode.DATASETgetIdentificationInfo()returnsthisgetCitation()returnsthisgetSpatialRepresentationTypes()returnsSpatialRepresentationType.VECTORgetTopicCategories()returnsTopicCategory.LOCATIONgetPresentationForms()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.InternationalStringBrief 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.CharacterSetThe 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.CitationCitation 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.InternationalStringDeprecated.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.DistributionInformation about the distributor of and options for obtaining the resource(s).org.opengis.util.InternationalStringVersion of the cited resource.Date of the edition.org.opengis.util.InternationalStringDescription 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.DATASETby 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.MaintenanceInformationInformation 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.InternationalStringOther 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.InternationalStringSummary 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.SeriesInformation 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.InternationalStringAny other descriptive information about the resource.org.opengis.util.InternationalStringgetTitle()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:
getFileIdentifierin interfaceorg.opengis.metadata.Metadata
-
getLanguages
Language(s) used for documenting metadata. Also the language(s) used within the data.- Specified by:
getLanguagesin interfaceorg.opengis.metadata.identification.DataIdentification
-
getLanguage
Language(s) used for documenting metadata. Also the language(s) used within the data.- Specified by:
getLanguagein interfaceorg.opengis.metadata.Metadata
-
getLocales
Language(s) used for documenting metadata. Also the language(s) used within the data.- Specified by:
getLocalesin 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:
getCharacterSetsin 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:
getCharacterSetin interfaceorg.opengis.metadata.Metadata
-
getParentIdentifier
Identification of the parent metadata record.- Specified by:
getParentIdentifierin interfaceorg.opengis.metadata.Metadata
-
getHierarchyLevels
Code for the metadata scope, fixed toScopeCode.DATASETby default. TheDATASETdefault value is consistent with the fact thatSimpleMetadataimplementsDataIdentification.- Specified by:
getHierarchyLevelsin interfaceorg.opengis.metadata.Metadata
-
getHierarchyLevelNames
Description of the metadata scope.- Specified by:
getHierarchyLevelNamesin interfaceorg.opengis.metadata.Metadata
-
getContacts
Parties responsible for the metadata information.- Specified by:
getContactsin interfaceorg.opengis.metadata.Metadata
-
getDateStamp
Date(s) associated with the metadata.- Specified by:
getDateStampin interfaceorg.opengis.metadata.Metadata
-
getMetadataStandardName
Citation(s) for the standard(s) to which the metadata conform.- Specified by:
getMetadataStandardNamein interfaceorg.opengis.metadata.Metadata
-
getMetadataStandardVersion
As of ISO 19115:2014, replaced bygetMetadataStandards()followed byCitation.getEdition().- Specified by:
getMetadataStandardVersionin interfaceorg.opengis.metadata.Metadata
-
getDataSetUri
Online location(s) where the metadata is available.- Specified by:
getDataSetUriin interfaceorg.opengis.metadata.Metadata
-
getSpatialRepresentationInfo
public Collection<org.opengis.metadata.spatial.SpatialRepresentation> getSpatialRepresentationInfo()Digital representation of spatial information in the dataset.- Specified by:
getSpatialRepresentationInfoin interfaceorg.opengis.metadata.Metadata
-
getReferenceSystemInfo
Description of the spatial and temporal reference systems used in the dataset.- Specified by:
getReferenceSystemInfoin interfaceorg.opengis.metadata.Metadata
-
getMetadataExtensionInfo
Information describing metadata extensions.- Specified by:
getMetadataExtensionInfoin interfaceorg.opengis.metadata.Metadata
-
getIdentificationInfo
Basic information about the resource(s) to which the metadata applies. This method returnsthisfor allowing call togetCitation(). and other methods.- Specified by:
getIdentificationInfoin interfaceorg.opengis.metadata.Metadata- See Also:
-
getContentInfo
Information about the feature and coverage characteristics.- Specified by:
getContentInfoin 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:
getDistributionInfoin interfaceorg.opengis.metadata.Metadata
-
getDataQualityInfo
Overall assessment of quality of a resource(s).- Specified by:
getDataQualityInfoin interfaceorg.opengis.metadata.Metadata
-
getPortrayalCatalogueInfo
Information about the catalogue of rules defined for the portrayal of a resource(s).- Specified by:
getPortrayalCatalogueInfoin interfaceorg.opengis.metadata.Metadata
-
getMetadataConstraints
Restrictions on the access and use of metadata.- Specified by:
getMetadataConstraintsin interfaceorg.opengis.metadata.Metadata
-
getApplicationSchemaInfo
Information about the conceptual schema of a dataset.- Specified by:
getApplicationSchemaInfoin interfaceorg.opengis.metadata.Metadata
-
getAcquisitionInformation
public Collection<org.opengis.metadata.acquisition.AcquisitionInformation> getAcquisitionInformation()Information about the acquisition of the data.- Specified by:
getAcquisitionInformationin 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:
getMetadataMaintenancein 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 returnsthisfor allowing call togetTitle()and other methods.- Specified by:
getCitationin 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:
getAbstractin 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:
getPurposein interfaceorg.opengis.metadata.identification.Identification
-
getCredits
Recognition of those who contributed to the resource. This is part of the information returned bygetIdentificationInfo().- Specified by:
getCreditsin interfaceorg.opengis.metadata.identification.Identification
-
getStatus
Status of the resource. This is part of the information returned bygetIdentificationInfo().- Specified by:
getStatusin 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:
getPointOfContactsin 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:
getSpatialRepresentationTypesin 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:
getSpatialResolutionsin 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:
getTopicCategoriesin interfaceorg.opengis.metadata.identification.DataIdentification
-
getExtents
Spatial and temporal extent of the resource. This is part of the information returned bygetIdentificationInfo().- Specified by:
getExtentsin 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:
getResourceMaintenancesin 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:
getGraphicOverviewsin interfaceorg.opengis.metadata.identification.Identification
-
getResourceFormats
Description of the format of the resource(s). This is part of the information returned bygetIdentificationInfo().- Specified by:
getResourceFormatsin interfaceorg.opengis.metadata.identification.Identification
-
getDescriptiveKeywords
Category keywords, their type, and reference source. This is part of the information returned bygetIdentificationInfo().- Specified by:
getDescriptiveKeywordsin 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:
getResourceSpecificUsagesin 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:
getResourceConstraintsin 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:
getAggregationInfoin 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:
getEnvironmentDescriptionin 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:
getSupplementalInformationin 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:
getTitlein 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:
getAlternateTitlesin interfaceorg.opengis.metadata.citation.Citation
-
getDates
Reference dates for the cited resource. This is part of the information returned bygetCitation().- Specified by:
getDatesin 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:
getEditionin interfaceorg.opengis.metadata.citation.Citation
-
getEditionDate
Date of the edition. This is part of the information returned bygetCitation().- Specified by:
getEditionDatein interfaceorg.opengis.metadata.citation.Citation
-
getIdentifiers
Unique identifier for the resource. This is part of the information returned bygetCitation().- Specified by:
getIdentifiersin 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:
getCitedResponsiblePartiesin 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:
getPresentationFormsin 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:
getSeriesin 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:
getOtherCitationDetailsin interfaceorg.opengis.metadata.citation.Citation
-
getCollectiveTitle
Deprecated.Removed as of ISO 19115:2014.- Specified by:
getCollectiveTitlein interfaceorg.opengis.metadata.citation.Citation
-
getISBN
International Standard Book Number. This is part of the information returned bygetCitation().- Specified by:
getISBNin interfaceorg.opengis.metadata.citation.Citation
-
getISSN
International Standard Serial Number. This is part of the information returned bygetCitation().- Specified by:
getISSNin interfaceorg.opengis.metadata.citation.Citation
-
getAssociatedResources().