java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.CoverageFacetImpl
All Implemented Interfaces:
Serializable, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.entities.EntityElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, org.gcube.informationsystem.model.reference.entities.Entity, org.gcube.informationsystem.model.reference.entities.Facet, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.model.reference.ModelElement, CoverageFacet

public class CoverageFacetImpl extends org.gcube.informationsystem.model.impl.entities.FacetImpl implements CoverageFacet
Implementation of CoverageFacet.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The coverage which value indicates the 'area' covered by the dataset according to the schema

    Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

    additionalProperties, allowedAdditionalKeys

    Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

    contexts, expectedtype, supertypes

    Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

    metadata, uuid

    Fields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.CoverageFacet

    NAME, VERSION

    Fields inherited from interface org.gcube.informationsystem.base.reference.Element

    DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USER

    Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity

    NAME

    Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

    NAME

    Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement

    CONTEXTS_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

    NAME

    Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement

    ID_PROPERTY, METADATA_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

    EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The value indicates the temporal validity or other non-geospatial "coverage" aspect of the dataset (see this Facet's own description — geospatial extent is LocationFacet's concern, not this one's).
    void
    setCoverage(String coverage)
    Sets the value indicating the 'area' covered by the dataset.
    protected void
    Setter for backward compatibility with ValueSchema payloads.

    Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

    addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty

    Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

    getContexts, getExpectedtype, getSupertypes, setContexts

    Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

    getID, getMetadata, setID, setMetadata

    Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl

    getTypeName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.gcube.informationsystem.base.reference.Element

    getTypeName

    Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

    getID, getMetadata, setID, setMetadata

    Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement

    getContexts

    Methods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

    getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty

    Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

    getExpectedtype, getSupertypes
  • Field Details

    • coverage

      protected String coverage
      The coverage which value indicates the 'area' covered by the dataset according to the schema
  • Constructor Details

    • CoverageFacetImpl

      public CoverageFacetImpl()
  • Method Details

    • getCoverage

      public String getCoverage()
      The value indicates the temporal validity or other non-geospatial "coverage" aspect of the dataset (see this Facet's own description — geospatial extent is LocationFacet's concern, not this one's). Deliberately unconstrained: accepts any JSON-compatible value (string, number, object, array, ...) since the concrete shape of "coverage" is not known in advance. The Java API always exposes it as a String; clients needing the original submitted shape should read the instance via the REST API directly.
      Specified by:
      getCoverage in interface CoverageFacet
      Returns:
      the coverage
    • setCoverage

      public void setCoverage(String coverage)
      Sets the value indicating the 'area' covered by the dataset.
      Specified by:
      setCoverage in interface CoverageFacet
      Parameters:
      coverage - the coverage
    • setGenericCoverage

      protected void setGenericCoverage(Object cov)
      Setter for backward compatibility with ValueSchema payloads.
      Parameters:
      cov - the coverage payload to deserialize