Class DefaultMetadata

All Implemented Interfaces:
Serializable, Emptiable, LenientComparable, IdentifiedObject, org.opengis.metadata.Metadata
Direct Known Subclasses:
MI_Metadata

public class DefaultMetadata extends ISOMetadata implements org.opengis.metadata.Metadata
Root entity which defines metadata about a resource or resources. The following properties are mandatory or conditional (i.e. mandatory under some circumstances) in a well-formed metadata according ISO 19115:
MD_Metadata   ├─language………………………………………………… Language used for documenting metadata.   ├─characterSet……………………………………… Full name of the character coding standard used for the metadata set.   ├─contact…………………………………………………… Parties responsible for the metadata information.   │   ├─party……………………………………………… Information about the parties.   │   │   └─name……………………………………… Name of the party.   │   └─role………………………………………………… Function performed by the responsible party.   ├─identificationInfo……………………… Basic information about the resource(s) to which the metadata applies.   │   ├─citation……………………………………… Citation data for the resource(s).   │   │   ├─title…………………………………… Name by which the cited resource is known.   │   │   └─date……………………………………… Reference date for the cited resource.   │   ├─abstract……………………………………… Brief narrative summary of the content of the resource(s).   │   ├─extent…………………………………………… Bounding polygon, vertical, and temporal extent of the dataset.   │   │   ├─description…………………… The spatial and temporal extent for the referring object.   │   │   ├─geographicElement…… Geographic component of the extent of the referring object.   │   │   ├─temporalElement………… Temporal component of the extent of the referring object.   │   │   └─verticalElement………… Vertical component of the extent of the referring object.   │   └─topicCategory………………………… Main theme(s) of the dataset.   ├─dateInfo………………………………………………… Date(s) associated with the metadata.   ├─metadataScope…………………………………… The scope or type of resource for which metadata is provided.   │   └─resourceScope………………………… Resource scope   └─parentMetadata………………………………… Identification of the parent metadata record.       ├─title……………………………………………… Name by which the cited resource is known.       └─date………………………………………………… Reference date for the cited resource.

Localization

When this object is marshalled as an ISO 19139 compliant XML document, the value given to the setLanguage(Locale) method will be used for the localization of InternationalString and CodeList instances of in this DefaultMetadata object and every children, as required by INSPIRE rules. If no language were specified, then the default locale will be the one defined in the XML.LOCALE marshaller property, if any.

Limitations

  • Instances of this class are not synchronized for multi-threading. Synchronization, if needed, is caller's responsibility.
  • Serialized objects of this class are not guaranteed to be compatible with future Apache SIS releases. Serialization support is appropriate for short term storage or RMI between applications running the same version of Apache SIS. For long term storage, use XML instead.
Since:
0.3
Version:
1.1
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
    • locales

      private Map<Locale,Charset> locales
      Language(s) and character set(s) used within the dataset.
    • parentMetadata

      private org.opengis.metadata.citation.Citation parentMetadata
      Identification of the parent metadata record.
    • metadataScopes

      private Collection<DefaultMetadataScope> metadataScopes
      Scope to which the metadata applies.
    • contacts

      private Collection<org.opengis.metadata.citation.ResponsibleParty> contacts
      Parties responsible for the metadata information.
    • dateInfo

      private Collection<org.opengis.metadata.citation.CitationDate> dateInfo
      Date(s) associated with the metadata.
    • metadataStandards

      private Collection<org.opengis.metadata.citation.Citation> metadataStandards
      Citation(s) for the standard(s) to which the metadata conform.
    • metadataProfiles

      private Collection<org.opengis.metadata.citation.Citation> metadataProfiles
      Citation(s) for the profile(s) of the metadata standard to which the metadata conform.
    • alternativeMetadataReferences

      private Collection<org.opengis.metadata.citation.Citation> alternativeMetadataReferences
      Reference(s) to alternative metadata or metadata in a non-ISO standard for the same resource.
    • metadataLinkages

      private Collection<org.opengis.metadata.citation.OnlineResource> metadataLinkages
      Online location(s) where the metadata is available.
    • spatialRepresentationInfo

      private Collection<org.opengis.metadata.spatial.SpatialRepresentation> spatialRepresentationInfo
      Digital representation of spatial information in the dataset.
    • referenceSystemInfo

      private Collection<org.opengis.referencing.ReferenceSystem> referenceSystemInfo
      Description of the spatial and temporal reference systems used in the dataset.
    • metadataExtensionInfo

      private Collection<org.opengis.metadata.MetadataExtensionInformation> metadataExtensionInfo
      Information describing metadata extensions.
    • identificationInfo

      private Collection<org.opengis.metadata.identification.Identification> identificationInfo
      Basic information about the resource(s) to which the metadata applies.
    • contentInfo

      private Collection<org.opengis.metadata.content.ContentInformation> contentInfo
      Provides information about the feature catalogue and describes the coverage and image data characteristics.
    • distributionInfo

      private org.opengis.metadata.distribution.Distribution distributionInfo
      Provides information about the distributor of and options for obtaining the resource(s).
    • dataQualityInfo

      private Collection<org.opengis.metadata.quality.DataQuality> dataQualityInfo
      Provides overall assessment of quality of a resource(s).
    • portrayalCatalogueInfo

      private Collection<org.opengis.metadata.PortrayalCatalogueReference> portrayalCatalogueInfo
      Provides information about the catalogue of rules defined for the portrayal of a resource(s).
    • metadataConstraints

      private Collection<org.opengis.metadata.constraint.Constraints> metadataConstraints
      Provides restrictions on the access and use of metadata.
    • applicationSchemaInfo

      private Collection<org.opengis.metadata.ApplicationSchemaInformation> applicationSchemaInfo
      Provides information about the conceptual schema of a dataset.
    • metadataMaintenance

      private org.opengis.metadata.maintenance.MaintenanceInformation metadataMaintenance
      Provides information about the frequency of metadata updates, and the scope of those updates.
    • acquisitionInformation

      private Collection<org.opengis.metadata.acquisition.AcquisitionInformation> acquisitionInformation
      Provides information about the acquisition of the data.
    • resourceLineages

      private Collection<org.opengis.metadata.lineage.Lineage> resourceLineages
      Information about the provenance, sources and/or the production processes applied to the resource.
  • Constructor Details

    • DefaultMetadata

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

      public DefaultMetadata(org.opengis.metadata.citation.ResponsibleParty contact, Date dateStamp, org.opengis.metadata.identification.Identification identificationInfo)
      Creates a meta data initialized 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.
    • DefaultMetadata

      public DefaultMetadata(org.opengis.metadata.Metadata object)
      Constructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, because the other metadata contained in the given object are not recursively copied.
      Parameters:
      object - the metadata to copy values from, or null if none.
      See Also:
  • Method Details

    • castOrCopy

      public static DefaultMetadata castOrCopy(org.opengis.metadata.Metadata object)
      Returns a SIS metadata implementation with the values of the given arbitrary implementation. This method performs the first applicable action in the following choices:
      • If the given object is null, then this method returns null.
      • Otherwise if the given object is already an instance of DefaultMetadata, then it is returned unchanged.
      • Otherwise a new DefaultMetadata instance is created using the copy constructor and returned. Note that this is a shallow copy operation, because the other metadata contained in the given object are not recursively copied.

      Use case

      This method is useful before XML marshalling or serialization, which may not be supported by all implementations. However, the returned metadata is not guaranteed to be editable. For editable metadata, see deepCopy(Metadata).
      Parameters:
      object - the object to get as a SIS implementation, or null if none.
      Returns:
      a SIS implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
    • deepCopy

      public static DefaultMetadata deepCopy(org.opengis.metadata.Metadata object)
      Returns an editable copy of the given metadata. All children are also copied. This method is more expensive than castOrCopy(Metadata) because the copy is unconditional and much deeper. However, the result is guaranteed to be editable.

      Use case

      Metadata returned by Resource.getMetadata() are typically unmodifiable. This deepCopy(…) method is useful for completing those metadata with new elements, for example before insertion in a catalog.
      Parameters:
      object - the metadata to copy, or null if none.
      Returns:
      a deep copy of the given object, or null if the argument was null.
      Since:
      1.1
      See Also:
    • getMetadataIdentifier

      @UML(identifier="metadataIdentifier", obligation=OPTIONAL, specification=ISO_19115) public org.opengis.metadata.Identifier getMetadataIdentifier()
      Returns a unique identifier for this metadata record.
      Note: OGC 07-045 (Catalog Service Specification — ISO metadata application profile) recommends usage of a UUID (Universal Unique Identifier) as specified by IETF to ensure identifier’s uniqueness.
      Returns:
      unique identifier for this metadata record, or null.
      Since:
      0.5
    • setMetadataIdentifier

      public void setMetadataIdentifier(org.opengis.metadata.Identifier newValue)
      Sets the unique identifier for this metadata record.
      Parameters:
      newValue - the new identifier, or null if none.
      Since:
      0.5
    • getFileIdentifier

      @Deprecated public String getFileIdentifier()
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataIdentifier() in order to include the codespace attribute.
      Returns the unique identifier for this metadata file.
      Specified by:
      getFileIdentifier in interface org.opengis.metadata.Metadata
      Returns:
      unique identifier for this metadata file, or null.
    • setFileIdentifier

      @Deprecated public void setFileIdentifier(String newValue)
      Deprecated.
      As of ISO 19115:2014, replaced by setMetadataIdentifier(Identifier)
      Sets the unique identifier for this metadata file.
      Parameters:
      newValue - the new identifier, or null if none.
    • getLocalesAndCharsets

      @UML(identifier="defaultLocale+otherLocale", obligation=CONDITIONAL, specification=ISO_19115) public Map<Locale,Charset> getLocalesAndCharsets()
      Returns the language(s) and character set(s) used for documenting metadata. The first entry in iteration order is the default language and its character set. All other entries, if any, are alternate language(s) and character set(s) used within the resource.

      Unless another locale has been specified with the XML.LOCALE property, this DefaultMetadata instance and its children will use the first locale returned by this method for marshalling InternationalString and CodeList instances in ISO 19115-2 compliant XML documents.

      Each (Locale, Charset) entry is equivalent to an instance of ISO 19115 PT_Locale class. The language code and the character set are mandatory elements in ISO standard. Consequently, this map should not contain null key or null values, but Apache SIS implementations is tolerant for historical reasons. The same character set may be associated to many languages.

      Returns:
      language(s) and character set(s) used for documenting metadata.
      Since:
      1.0
    • setLocalesAndCharsets

      public void setLocalesAndCharsets(Map<? extends Locale,? extends Charset> newValues)
      Sets the language(s) and character set(s) used within the dataset. The first element in iteration order should be the default language. All other elements, if any, are alternate language(s) used within the resource.
      Parameters:
      newValues - the new language(s) and character set(s) used for documenting metadata.
      Since:
      1.0
      See Also:
    • getLanguages

      @Deprecated public Collection<Locale> getLanguages()
      Deprecated.
      Replaced by getLocalesAndCharsets().keySet().
      Returns the language(s) used for documenting metadata. The first element in iteration order is the default language. All other elements, if any, are alternate language(s) used within the resource.
      Returns:
      language(s) used for documenting metadata.
      Since:
      0.5
    • setLanguages

      @Deprecated public void setLanguages(Collection<Locale> newValues)
      Deprecated.
      Replaced by putting keys in getLocalesAndCharsets() map.
      Sets the language(s) used for documenting metadata. The first element in iteration order shall be the default language. All other elements, if any, are alternate language(s) used within the resource.
      Parameters:
      newValues - the new languages.
      Since:
      0.5
    • getLanguage

      @Deprecated public Locale getLanguage()
      Deprecated.
      Replaced by getLocalesAndCharsets().keySet().
      Returns the default language used for documenting metadata.
      Specified by:
      getLanguage in interface org.opengis.metadata.Metadata
      Returns:
      language used for documenting metadata, or null.
    • setLanguage

      @Deprecated public void setLanguage(Locale newValue)
      Deprecated.
      Replaced by getLocalesAndCharsets().put(newValue, …).
      Sets the language used for documenting metadata. This method modifies the collection returned by getLanguages() as below:
      • If the languages collection is empty, then this method sets the collection to the given newValue.
      • Otherwise the first element in the languages collection is replaced by the given newValue.
      Parameters:
      newValue - the new language.
    • getLocales

      @Deprecated public Collection<Locale> getLocales()
      Deprecated.
      Replaced by getLocalesAndCharsets().keySet().
      Provides information about an alternatively used localized character string for a linguistic extension.
      Specified by:
      getLocales in interface org.opengis.metadata.Metadata
      Returns:
      alternatively used localized character string for a linguistic extension.
    • setLocales

      @Deprecated public void setLocales(Collection<? extends Locale> newValues)
      Deprecated.
      Replaced by putting keys in getLocalesAndCharsets().
      Sets information about an alternatively used localized character string for a linguistic extension.
      Parameters:
      newValues - the new locales.
    • getCharacterSets

      @Deprecated public Collection<Charset> getCharacterSets()
      Deprecated.
      Replaced by getLocalesAndCharsets().values().
      Returns the character coding standard used for the metadata set.
      Returns:
      character coding standards used for the metadata.
      Since:
      0.5
    • setCharacterSets

      @Deprecated public void setCharacterSets(Collection<? extends Charset> newValues)
      Deprecated.
      Replaced by putting values in getLocalesAndCharsets() map.
      Sets the character coding standard used for the metadata set.
      Parameters:
      newValues - the new character coding standards.
      Since:
      0.5
    • getCharacterSet

      @Deprecated public org.opengis.metadata.identification.CharacterSet getCharacterSet()
      Deprecated.
      Replaced by getLocalesAndCharsets().values().
      Returns the character coding standard used for the metadata set.
      Specified by:
      getCharacterSet in interface org.opengis.metadata.Metadata
      Returns:
      character coding standard used for the metadata, or null.
    • setCharacterSet

      @Deprecated public void setCharacterSet(org.opengis.metadata.identification.CharacterSet newValue)
      Deprecated.
      Replaced by getLocalesAndCharsets().put(…, newValue).
      Sets the character coding standard used for the metadata set.
      Parameters:
      newValue - the new character set.
    • getParentMetadata

      @UML(identifier="parentMetadata", obligation=CONDITIONAL, specification=ISO_19115) public org.opengis.metadata.citation.Citation getParentMetadata()
      Returns an identification of the parent metadata record. This is non-null if this metadata is a subset (child) of another metadata that is described elsewhere.
      Returns:
      identification of the parent metadata record, or null if none.
      Since:
      0.5
    • setParentMetadata

      public void setParentMetadata(org.opengis.metadata.citation.Citation newValue)
      Sets an identification of the parent metadata record.
      Parameters:
      newValue - the new identification of the parent metadata record.
      Since:
      0.5
    • getParentIdentifier

      @Deprecated public String getParentIdentifier()
      Deprecated.
      As of ISO 19115:2014, replaced by getParentMetadata().
      Returns the file identifier of the metadata to which this metadata is a subset (child).
      Specified by:
      getParentIdentifier in interface org.opengis.metadata.Metadata
      Returns:
      identifier of the metadata to which this metadata is a subset, or null.
    • setParentIdentifier

      @Deprecated public void setParentIdentifier(String newValue)
      Deprecated.
      As of ISO 19115:2014, replaced by getParentMetadata().
      Sets the file identifier of the metadata to which this metadata is a subset (child).
      Parameters:
      newValue - the new parent identifier.
    • getMetadataScopes

      @UML(identifier="metadataScope", obligation=CONDITIONAL, specification=ISO_19115) public Collection<DefaultMetadataScope> getMetadataScopes()
      Returns the scope or type of resource for which metadata is provided.
      Upcoming API change — generalization
      The element type will be changed to the MetadataScope interface when GeoAPI will provide it (tentatively in GeoAPI 3.1).
      Returns:
      scope or type of resource for which metadata is provided.
      Since:
      0.5
    • setMetadataScopes

      public void setMetadataScopes(Collection<? extends DefaultMetadataScope> newValues)
      Sets the scope or type of resource for which metadata is provided.
      Upcoming API change — generalization
      The element type will be changed to the MetadataScope interface when GeoAPI will provide it (tentatively in GeoAPI 3.1).
      Parameters:
      newValues - the new scope or type of resource.
      Since:
      0.5
    • getHierarchyLevels

      @Deprecated public final Collection<org.opengis.metadata.maintenance.ScopeCode> getHierarchyLevels()
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataScopes() followed by DefaultMetadataScope.getResourceScope().
      Returns the scope to which the metadata applies.
      Specified by:
      getHierarchyLevels in interface org.opengis.metadata.Metadata
      Returns:
      scope to which the metadata applies.
    • setHierarchyLevels

      @Deprecated public void setHierarchyLevels(Collection<? extends org.opengis.metadata.maintenance.ScopeCode> newValues)
      Deprecated.
      Sets the scope to which the metadata applies.
      Parameters:
      newValues - the new hierarchy levels.
    • getHierarchyLevelNames

      @Deprecated public final Collection<String> getHierarchyLevelNames()
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataScopes() followed by DefaultMetadataScope.getName().
      Returns the name of the hierarchy levels for which the metadata is provided.
      Specified by:
      getHierarchyLevelNames in interface org.opengis.metadata.Metadata
      Returns:
      hierarchy levels for which the metadata is provided.
    • setHierarchyLevelNames

      @Deprecated public void setHierarchyLevelNames(Collection<? extends String> newValues)
      Deprecated.
      Sets the name of the hierarchy levels for which the metadata is provided.
      Parameters:
      newValues - the new hierarchy level names.
    • getContacts

      public Collection<org.opengis.metadata.citation.ResponsibleParty> getContacts()
      Returns the parties responsible for the metadata information.
      Upcoming API change — generalization
      As of ISO 19115:2014, ResponsibleParty is replaced by the Responsibility parent interface. This change will be tentatively applied in GeoAPI 4.0.
      Specified by:
      getContacts in interface org.opengis.metadata.Metadata
      Returns:
      parties responsible for the metadata information.
    • setContacts

      public void setContacts(Collection<? extends org.opengis.metadata.citation.ResponsibleParty> newValues)
      Sets the parties responsible for the metadata information.
      Parameters:
      newValues - the new contacts.
    • getDateInfo

      @UML(identifier="dateInfo", obligation=MANDATORY, specification=ISO_19115) public Collection<org.opengis.metadata.citation.CitationDate> getDateInfo()
      Returns the date(s) associated with the metadata.
      Returns:
      date(s) associated with the metadata.
      Since:
      0.5
      See Also:
      • Citation.getDates()
    • setDateInfo

      public void setDateInfo(Collection<? extends org.opengis.metadata.citation.CitationDate> newValues)
      Sets the date(s) associated with the metadata. The collection should contain at least an element for DateType.CREATION.
      Parameters:
      newValues - new dates associated with the metadata.
      Since:
      0.5
    • getDateStamp

      @Deprecated public Date getDateStamp()
      Deprecated.
      As of ISO 19115:2014, replaced by getDateInfo().
      Returns the date that the metadata was created.
      Specified by:
      getDateStamp in interface org.opengis.metadata.Metadata
      Returns:
      date that the metadata was created, or null.
    • setDateStamp

      @Deprecated public void setDateStamp(Date newValue)
      Deprecated.
      As of ISO 19115:2014, replaced by setDateInfo(Collection).
      Sets the date that the metadata was created.
      Parameters:
      newValue - the new date stamp.
    • getMetadataStandards

      @UML(identifier="metadataStandard", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Citation> getMetadataStandards()
      Returns the citation(s) for the standard(s) to which the metadata conform. The collection returned by this method typically contains elements from the Citations.ISO_19115 list.
      Returns:
      the standard(s) to which the metadata conform.
      Since:
      0.5
      See Also:
    • setMetadataStandards

      public void setMetadataStandards(Collection<? extends org.opengis.metadata.citation.Citation> newValues)
      Sets the citation(s) for the standard(s) to which the metadata conform. Metadata standard citations should include an identifier.
      Parameters:
      newValues - the new standard(s) to which the metadata conform.
      Since:
      0.5
    • getMetadataProfiles

      @UML(identifier="metadataProfile", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Citation> getMetadataProfiles()
      Returns the citation(s) for the profile(s) of the metadata standard to which the metadata conform.
      Returns:
      the profile(s) to which the metadata conform.
      Since:
      0.5
      See Also:
    • setMetadataProfiles

      public void setMetadataProfiles(Collection<? extends org.opengis.metadata.citation.Citation> newValues)
      Set the citation(s) for the profile(s) of the metadata standard to which the metadata conform. Metadata profile standard citations should include an identifier.
      Parameters:
      newValues - the new profile(s) to which the metadata conform.
      Since:
      0.5
    • getAlternativeMetadataReferences

      @UML(identifier="alternativeMetadataReference", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Citation> getAlternativeMetadataReferences()
      Returns reference(s) to alternative metadata or metadata in a non-ISO standard for the same resource.
      Returns:
      reference(s) to alternative metadata (e.g. Dublin core, FGDC).
      Since:
      0.5
    • setAlternativeMetadataReferences

      public void setAlternativeMetadataReferences(Collection<? extends org.opengis.metadata.citation.Citation> newValues)
      Set reference(s) to alternative metadata or metadata in a non-ISO standard for the same resource.
      Parameters:
      newValues - the new reference(s) to alternative metadata (e.g. Dublin core, FGDC).
      Since:
      0.5
    • getMetadataStandard

      private String getMetadataStandard(boolean version)
      Implementation of legacy getMetadataStandardName() and getMetadataStandardVersion() methods.
    • setMetadataStandard

      private void setMetadataStandard(boolean version, String newValue)
    • getMetadataStandardName

      @Deprecated public String getMetadataStandardName()
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataStandards() followed by DefaultCitation.getTitle().
      Returns the name of the metadata standard (including profile name) used.
      Specified by:
      getMetadataStandardName in interface org.opengis.metadata.Metadata
      Returns:
      name of the metadata standard used, or null.
    • setMetadataStandardName

      @Deprecated public void setMetadataStandardName(String newValue)
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataStandards() followed by DefaultCitation.setTitle(InternationalString).
      Name of the metadata standard (including profile name) used.
      Parameters:
      newValue - the new metadata standard name.
    • getMetadataStandardVersion

      @Deprecated public String getMetadataStandardVersion()
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataStandards() followed by DefaultCitation.getEdition().
      Returns the version (profile) of the metadata standard used.
      Specified by:
      getMetadataStandardVersion in interface org.opengis.metadata.Metadata
      Returns:
      version of the metadata standard used, or null.
    • setMetadataStandardVersion

      @Deprecated public void setMetadataStandardVersion(String newValue)
      Deprecated.
      As of ISO 19115:2014, replaced by getMetadataStandards() followed by DefaultCitation.setEdition(InternationalString).
      Sets the version (profile) of the metadata standard used.
      Parameters:
      newValue - the new metadata standard version.
    • getMetadataLinkages

      @UML(identifier="metadataLinkage", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.OnlineResource> getMetadataLinkages()
      Returns the online location(s) where the metadata is available.
      Returns:
      online location(s) where the metadata is available.
      Since:
      0.5
    • setMetadataLinkages

      public void setMetadataLinkages(Collection<? extends org.opengis.metadata.citation.OnlineResource> newValues)
      Sets the online location(s) where the metadata is available.
      Parameters:
      newValues - the new online location(s).
      Since:
      0.5
    • getDataSetUri

      @Deprecated public String getDataSetUri()
      Deprecated.
      Provides the URI of the dataset to which the metadata applies.
      Specified by:
      getDataSetUri in interface org.opengis.metadata.Metadata
      Returns:
      Uniform Resource Identifier of the dataset, or null.
    • setDataSetUri

      @Deprecated public void setDataSetUri(String newValue) throws URISyntaxException
      Deprecated.
      Sets the URI of the dataset to which the metadata applies. This method sets the linkage of the first online resource in the citation of the first identification info.
      Parameters:
      newValue - the new data set URI.
      Throws:
      URISyntaxException - if the given value cannot be parsed as a URI.
    • getSpatialRepresentationInfo

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

      public void setSpatialRepresentationInfo(Collection<? extends org.opengis.metadata.spatial.SpatialRepresentation> newValues)
      Sets the digital representation of spatial information in the dataset.
      Parameters:
      newValues - the new spatial representation info.
    • getReferenceSystemInfo

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

      public void setReferenceSystemInfo(Collection<? extends org.opengis.referencing.ReferenceSystem> newValues)
      Sets the description of the spatial and temporal reference systems used in the dataset.
      Parameters:
      newValues - the new reference system info.
    • getMetadataExtensionInfo

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

      public void setMetadataExtensionInfo(Collection<? extends org.opengis.metadata.MetadataExtensionInformation> newValues)
      Sets information describing metadata extensions.
      Parameters:
      newValues - the new metadata extension info.
    • getIdentificationInfo

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

      public void setIdentificationInfo(Collection<? extends org.opengis.metadata.identification.Identification> newValues)
      Sets basic information about the resource(s) to which the metadata applies.
      Parameters:
      newValues - the new identification info.
    • getContentInfo

      public Collection<org.opengis.metadata.content.ContentInformation> getContentInfo()
      Returns information about the feature catalogue and describes the coverage and image data characteristics.
      Specified by:
      getContentInfo in interface org.opengis.metadata.Metadata
      Returns:
      the feature catalogue, coverage descriptions and image data characteristics.
    • setContentInfo

      public void setContentInfo(Collection<? extends org.opengis.metadata.content.ContentInformation> newValues)
      Sets information about the feature catalogue and describes the coverage and image data characteristics.
      Parameters:
      newValues - the new content info.
    • getDistributionInfo

      public org.opengis.metadata.distribution.Distribution getDistributionInfo()
      Returns information about the distributor of and options for obtaining the resource(s).
      Upcoming API change — multiplicity
      As of ISO 19115:2014, this singleton has been replaced by a collection. This change will tentatively be applied in GeoAPI 4.0.
      Specified by:
      getDistributionInfo in interface org.opengis.metadata.Metadata
      Returns:
      the distributor of and options for obtaining the resource(s).
    • setDistributionInfo

      public void setDistributionInfo(org.opengis.metadata.distribution.Distribution newValue)
      Sets information about the distributor of and options for obtaining the resource(s).
      Upcoming API change — multiplicity
      As of ISO 19115:2014, this singleton has been replaced by a collection. This change will tentatively be applied in GeoAPI 4.0.
      Parameters:
      newValue - the new distribution info.
    • getDataQualityInfo

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

      public void setDataQualityInfo(Collection<? extends org.opengis.metadata.quality.DataQuality> newValues)
      Sets overall assessment of quality of a resource(s).
      Parameters:
      newValues - the new data quality info.
    • getPortrayalCatalogueInfo

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

      public void setPortrayalCatalogueInfo(Collection<? extends org.opengis.metadata.PortrayalCatalogueReference> newValues)
      Sets information about the catalogue of rules defined for the portrayal of a resource(s).
      Parameters:
      newValues - the new portrayal catalog info.
    • getMetadataConstraints

      public Collection<org.opengis.metadata.constraint.Constraints> getMetadataConstraints()
      Returns restrictions on the access and use of metadata.
      Specified by:
      getMetadataConstraints in interface org.opengis.metadata.Metadata
      Returns:
      restrictions on the access and use of metadata.
      See Also:
    • setMetadataConstraints

      public void setMetadataConstraints(Collection<? extends org.opengis.metadata.constraint.Constraints> newValues)
      Sets restrictions on the access and use of metadata.
      Parameters:
      newValues - the new metadata constraints.
      See Also:
    • getApplicationSchemaInfo

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

      public void setApplicationSchemaInfo(Collection<? extends org.opengis.metadata.ApplicationSchemaInformation> newValues)
      Returns information about the conceptual schema of a dataset.
      Parameters:
      newValues - the new application schema info.
    • getAcquisitionInformation

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

      public void setAcquisitionInformation(Collection<? extends org.opengis.metadata.acquisition.AcquisitionInformation> newValues)
      Sets information about the acquisition of the data.
      Parameters:
      newValues - the new acquisition information.
    • getMetadataMaintenance

      public org.opengis.metadata.maintenance.MaintenanceInformation getMetadataMaintenance()
      Returns information about the frequency of metadata updates, and the scope of those updates.
      Specified by:
      getMetadataMaintenance in interface org.opengis.metadata.Metadata
      Returns:
      the frequency of metadata updates and their scope, or null.
      See Also:
    • setMetadataMaintenance

      public void setMetadataMaintenance(org.opengis.metadata.maintenance.MaintenanceInformation newValue)
      Sets information about the frequency of metadata updates, and the scope of those updates.
      Parameters:
      newValue - the new metadata maintenance.
      See Also:
    • getResourceLineages

      @UML(identifier="resourceLineage", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.lineage.Lineage> getResourceLineages()
      Returns information about the provenance, sources and/or the production processes applied to the resource.
      Returns:
      information about the provenance, sources and/or the production processes.
      Since:
      0.5
    • setResourceLineages

      public void setResourceLineages(Collection<? extends org.opengis.metadata.lineage.Lineage> newValues)
      Sets information about the provenance, sources and/or the production processes applied to the resource.
      Parameters:
      newValues - new information about the provenance, sources and/or the production processes.
      Since:
      0.5
    • beforeMarshal

      private void beforeMarshal(Marshaller marshaller)
      Invoked by JAXB Marshaller before this object is marshalled to XML. This method sets the locale to be used for XML marshalling to the metadata language.
    • afterMarshal

      private void afterMarshal(Marshaller marshaller)
      Invoked by JAXB Marshaller after this object has been marshalled to XML. This method restores the locale to be used for XML marshalling to its previous value.
    • getDefaultLocale

      private PT_Locale getDefaultLocale()
      Gets the default locale for this record (used in ISO 19115-3:2016 format).
    • setDefaultLocale

      private void setDefaultLocale(PT_Locale newValue)
      Sets the default locale for this record (used in ISO 19115-3:2016 format).
    • getOtherLocales

      private Collection<PT_Locale> getOtherLocales()
      Gets the other locales for this record (used in ISO 19115-3:2016 format).
    • getCharset

      private Charset getCharset()
      Returns the character coding for the metadata set (used in legacy ISO 19157 format).
    • setCharset

      private void setCharset(Charset newValue)
      Sets the character coding standard for the metadata set (used in legacy ISO 19157 format).
    • getDates

      private Collection<org.opengis.metadata.citation.CitationDate> getDates()
      Invoked by JAXB at both marshalling and unmarshalling time. This attribute has been added by ISO 19115:2014 standard. If (and only if) marshalling an older standard version, we omit this attribute.
    • getMetadataStandard

      private Collection<org.opengis.metadata.citation.Citation> getMetadataStandard()
    • getMetadataProfile

      private Collection<org.opengis.metadata.citation.Citation> getMetadataProfile()
    • getAlternativeMetadataReference

      private Collection<org.opengis.metadata.citation.Citation> getAlternativeMetadataReference()
    • getMetadataLinkage

      private Collection<org.opengis.metadata.citation.OnlineResource> getMetadataLinkage()
    • getResourceLineage

      private Collection<org.opengis.metadata.lineage.Lineage> getResourceLineage()
    • getMetadataScope

      private Collection<DefaultMetadataScope> getMetadataScope()