Class ResourceLineage

java.lang.Object
org.apache.sis.internal.storage.ResourceLineage

final class ResourceLineage extends Object
Metadata about a resource which is a single source of another resource. This is an experimental class which may be revisited in any future version.
Since:
1.3
Version:
1.3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.opengis.util.InternationalString
    Description of the level of the source data, or null if none.
    private org.opengis.referencing.ReferenceSystem
    She spatial reference system used by the source data, or null if none.
    private org.opengis.metadata.identification.Resolution
    Spatial resolution expressed as a scale factor, an angle or a level of detail.
    private DefaultScope
    The type and extent of the source, or null if none.
    private org.opengis.metadata.citation.Citation
    Recommended reference to be used for the source data, or null.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResourceLineage(org.opengis.metadata.Metadata source)
    Collects information about a source of the derived resource for which to provide lineage.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) final DefaultSource
    Creates an ISO 19115 metadata object from the information collected in this class.
    private static org.opengis.metadata.maintenance.ScopeCode
    getScopeLevel(org.opengis.metadata.Metadata source)
    Returns the type (coverage, feature, …) of the source to be stored in the "level" attribute of the scope.
    (package private) final boolean
    Returns false if this object has at least one non-null value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • description

      private org.opengis.util.InternationalString description
      Description of the level of the source data, or null if none. Current implementation uses the first non-null title of a citation.
    • sourceCitation

      private org.opengis.metadata.citation.Citation sourceCitation
      Recommended reference to be used for the source data, or null. Current implementation uses the first citation provided by Metadata.getIdentificationInfo().
    • scope

      private DefaultScope scope
      The type and extent of the source, or null if none. Current implementation uses the resource scope declared in source metadata, together with the source extents.
    • referenceSystem

      private org.opengis.referencing.ReferenceSystem referenceSystem
      She spatial reference system used by the source data, or null if none. Current implementation uses the first reference system declared by metadata.
    • resolution

      private org.opengis.metadata.identification.Resolution resolution
      Spatial resolution expressed as a scale factor, an angle or a level of detail. Current implementation uses the first resolution found in identification information.
  • Constructor Details

    • ResourceLineage

      ResourceLineage(org.opengis.metadata.Metadata source)
      Collects information about a source of the derived resource for which to provide lineage.
      Parameters:
      source - metadata of a source of the derived resource for which to provide lineage.
  • Method Details

    • isEmpty

      final boolean isEmpty()
      Returns false if this object has at least one non-null value.
    • getScopeLevel

      private static org.opengis.metadata.maintenance.ScopeCode getScopeLevel(org.opengis.metadata.Metadata source)
      Returns the type (coverage, feature, …) of the source to be stored in the "level" attribute of the scope.
      Returns:
      scope level (coverage, feature, …), or null if none.
    • build

      final DefaultSource build()
      Creates an ISO 19115 metadata object from the information collected in this class.