Class MetaDataImpl

  • All Implemented Interfaces:
    Serializable, Cloneable, MetaData

    public class MetaDataImpl
    extends MetadataEntity
    implements MetaData
    Root entity which defines metadata about a resource or resources.
    Since:
    2.1
    Author:
    Martin Desruisseaux (IRD), Touraïvane
    See Also:
    Serialized Form
    • Constructor Detail

      • MetaDataImpl

        public MetaDataImpl()
        Creates an initially empty metadata.
      • MetaDataImpl

        public MetaDataImpl​(MetaData source)
        Constructs a metadata entity initialized with the values from the specified metadata.
        Since:
        2.4
      • MetaDataImpl

        public MetaDataImpl​(ResponsibleParty contact,
                            Date dateStamp,
                            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 String getFileIdentifier()
        Returns the unique identifier for this metadata file, or null if none.
        Specified by:
        getFileIdentifier in interface MetaData
        Returns:
        Unique identifier for this metadata file, or null.
      • setFileIdentifier

        public void setFileIdentifier​(String newValue)
        Set the unique identifier for this metadata file, or null if none.
      • getLanguage

        public Locale getLanguage()
        Returns the language used for documenting metadata.
        Specified by:
        getLanguage in interface MetaData
        Returns:
        Language used for documenting metadata, or null.
      • setLanguage

        public void setLanguage​(Locale newValue)
        Set the language used for documenting metadata.
      • getCharacterSet

        public CharacterSet getCharacterSet()
        Returns the full name of the character coding standard used for the metadata set.
        Specified by:
        getCharacterSet in interface MetaData
        Returns:
        character coding standard used for the metadata, or null.
      • setCharacterSet

        public void setCharacterSet​(CharacterSet newValue)
        Set the full name of the character coding standard used for the metadata set.
      • getParentIdentifier

        public String getParentIdentifier()
        Returns the file identifier of the metadata to which this metadata is a subset (child).
        Specified by:
        getParentIdentifier in interface MetaData
        Returns:
        Identifier of the metadata to which this metadata is a subset, or null.
      • setParentIdentifier

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

        public Collection<ScopeCode> getHierarchyLevels()
        Returns the scope to which the metadata applies.
        Specified by:
        getHierarchyLevels in interface MetaData
        Returns:
        Scope to which the metadata applies.
      • setHierarchyLevels

        public void setHierarchyLevels​(Collection<? extends ScopeCode> newValues)
        Set the scope to which the metadata applies.
      • getHierarchyLevelNames

        public Collection<String> getHierarchyLevelNames()
        Returns the name of the hierarchy levels for which the metadata is provided.
        Specified by:
        getHierarchyLevelNames in interface MetaData
        Returns:
        Hierarchy levels for which the metadata is provided.
      • setHierarchyLevelNames

        public void setHierarchyLevelNames​(Collection<? extends String> newValues)
        Set the name of the hierarchy levels for which the metadata is provided.
      • getContacts

        public Collection<ResponsibleParty> getContacts()
        Returns the parties responsible for the metadata information.
        Specified by:
        getContacts in interface MetaData
        Returns:
        Parties responsible for the metadata information.
      • setContacts

        public void setContacts​(Collection<? extends ResponsibleParty> newValues)
        Set the parties responsible for the metadata information.
      • getDateStamp

        public Date getDateStamp()
        Returns the date that the metadata was created.
        Specified by:
        getDateStamp in interface MetaData
        Returns:
        Date that the metadata was created.
      • setDateStamp

        public void setDateStamp​(Date newValue)
        Set the date that the metadata was created.
      • getMetadataStandardName

        public String getMetadataStandardName()
        Returns the name of the metadata standard (including profile name) used.
        Specified by:
        getMetadataStandardName in interface MetaData
        Returns:
        Name of the metadata standard used, or null.
      • setMetadataStandardName

        public void setMetadataStandardName​(String newValue)
        Name of the metadata standard (including profile name) used.
      • getMetadataStandardVersion

        public String getMetadataStandardVersion()
        Returns the version (profile) of the metadata standard used.
        Specified by:
        getMetadataStandardVersion in interface MetaData
        Returns:
        Version of the metadata standard used, or null.
      • setMetadataStandardVersion

        public void setMetadataStandardVersion​(String newValue)
        Set the version (profile) of the metadata standard used.
      • getSpatialRepresentationInfo

        public Collection<SpatialRepresentation> getSpatialRepresentationInfo()
        Returns the digital representation of spatial information in the dataset.
        Specified by:
        getSpatialRepresentationInfo in interface MetaData
        Returns:
        Digital representation of spatial information in the dataset.
      • setSpatialRepresentationInfo

        public void setSpatialRepresentationInfo​(Collection<? extends SpatialRepresentation> newValues)
        Set the digital representation of spatial information in the dataset.
      • getReferenceSystemInfo

        public Collection<ReferenceSystem> getReferenceSystemInfo()
        Returns the description of the spatial and temporal reference systems used in the dataset. @TODO: annotates the referencing module of Geotools before.
        Specified by:
        getReferenceSystemInfo in interface MetaData
        Returns:
        Spatial and temporal reference systems used in the dataset.
      • setReferenceSystemInfo

        public void setReferenceSystemInfo​(Collection<? extends ReferenceSystem> newValues)
        Set the description of the spatial and temporal reference systems used in the dataset.
      • setMetadataExtensionInfo

        public void setMetadataExtensionInfo​(Collection<? extends MetadataExtensionInformation> newValues)
        Set information describing metadata extensions.
      • getIdentificationInfo

        public Collection<Identification> getIdentificationInfo()
        Returns basic information about the resource(s) to which the metadata applies.
        Specified by:
        getIdentificationInfo in interface MetaData
        Returns:
        The resource(s) to which the metadata applies.
      • setIdentificationInfo

        public void setIdentificationInfo​(Collection<? extends Identification> newValues)
        Set basic information about the resource(s) to which the metadata applies.
      • getContentInfo

        public Collection<ContentInformation> getContentInfo()
        Provides information about the feature catalogue and describes the coverage and image data characteristics.
        Specified by:
        getContentInfo in interface MetaData
        Returns:
        The feature catalogue, coverage descriptions and image data characteristics.
      • setContentInfo

        public void setContentInfo​(Collection<? extends ContentInformation> newValues)
        Set information about the feature catalogue and describes the coverage and image data characteristics.
      • getDistributionInfo

        public Distribution getDistributionInfo()
        Provides information about the distributor of and options for obtaining the resource(s).
        Specified by:
        getDistributionInfo in interface MetaData
        Returns:
        The distributor of and options for obtaining the resource(s).
      • setDistributionInfo

        public void setDistributionInfo​(Distribution newValue)
        Provides information about the distributor of and options for obtaining the resource(s).
      • getDataQualityInfo

        public Collection<DataQuality> getDataQualityInfo()
        Provides overall assessment of quality of a resource(s).
        Specified by:
        getDataQualityInfo in interface MetaData
        Returns:
        Overall assessment of quality of a resource(s).
      • setDataQualityInfo

        public void setDataQualityInfo​(Collection<? extends DataQuality> newValues)
        Set overall assessment of quality of a resource(s).
      • getPortrayalCatalogueInfo

        public Collection<PortrayalCatalogueReference> getPortrayalCatalogueInfo()
        Provides information about the catalogue of rules defined for the portrayal of a resource(s).
        Specified by:
        getPortrayalCatalogueInfo in interface MetaData
        Returns:
        The catalogue of rules defined for the portrayal of a resource(s).
      • setPortrayalCatalogueInfo

        public void setPortrayalCatalogueInfo​(Collection<? extends PortrayalCatalogueReference> newValues)
        Set information about the catalogue of rules defined for the portrayal of a resource(s).
      • getMetadataConstraints

        public Collection<Constraints> getMetadataConstraints()
        Provides restrictions on the access and use of data.
        Specified by:
        getMetadataConstraints in interface MetaData
        Returns:
        Restrictions on the access and use of data.
      • setMetadataConstraints

        public void setMetadataConstraints​(Collection<? extends Constraints> newValues)
        Set restrictions on the access and use of data.
      • setApplicationSchemaInfo

        public void setApplicationSchemaInfo​(Collection<? extends ApplicationSchemaInformation> newValues)
        Provides information about the conceptual schema of a dataset.
      • getMetadataMaintenance

        public MaintenanceInformation getMetadataMaintenance()
        Provides information about the frequency of metadata updates, and the scope of those updates.
        Specified by:
        getMetadataMaintenance in interface MetaData
        Returns:
        The frequency of metadata updates and their scope.
      • setMetadataMaintenance

        public void setMetadataMaintenance​(MaintenanceInformation newValue)
        Set information about the frequency of metadata updates, and the scope of those updates.
      • getLocales

        public Collection<Locale> getLocales()
        Provides information about an alternatively used localized character string for a linguistic extension.
        Specified by:
        getLocales in interface MetaData
        Returns:
        Alternatively used localized character string for a linguistic extension.
        Since:
        2.4
      • setLocales

        public void setLocales​(Collection<? extends Locale> newValues)
        Set information about an alternatively used localized character string for a linguistic extension.
        Since:
        2.4
      • getDataSetUri

        public String getDataSetUri()
        Provides the URI of the dataset to which the metadata applies.
        Specified by:
        getDataSetUri in interface MetaData
        Returns:
        Uniformed Resource Identifier of the dataset, or null.
        Since:
        2.4
      • setDataSetUri

        public void setDataSetUri​(String newValue)
        Sets the URI of the dataset to which the metadata applies.
        Since:
        2.4