Class ProvenanceFacetImpl

  • 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, ProvenanceFacet

    public class ProvenanceFacetImpl
    extends org.gcube.informationsystem.model.impl.entities.FacetImpl
    implements ProvenanceFacet
    Author:
    Luca Frosini (ISTI - CNR)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ValueSchema document
      The document describing the provenance
      protected String reference
      The reference to the provenance entity
      protected String relationship
      The relationship describing the provenance
      • 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.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • 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
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.ProvenanceFacet

        NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ValueSchema getDocument()
      Provenance Document, e.g., an XML according to the reference schema.
      String getReference()
      The ID of the referenced resource.
      String getRelationship()
      Relationship with the resource indicated by ID.
      void setDocument​(ValueSchema document)
      Sets the Provenance Document, e.g., an XML according to the reference schema.
      void setReference​(String reference)
      Sets the ID of the referenced resource.
      void setRelationship​(String relationship)
      Sets the Relationship with the resource indicated by ID.
      • 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 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 Detail

      • relationship

        protected String relationship
        The relationship describing the provenance
      • reference

        protected String reference
        The reference to the provenance entity
      • document

        protected ValueSchema document
        The document describing the provenance
    • Constructor Detail

      • ProvenanceFacetImpl

        public ProvenanceFacetImpl()
    • Method Detail

      • getRelationship

        public String getRelationship()
        Relationship with the resource indicated by ID.
        Specified by:
        getRelationship in interface ProvenanceFacet
        Returns:
        the relationship
      • setRelationship

        public void setRelationship​(String relationship)
        Sets the Relationship with the resource indicated by ID.
        Specified by:
        setRelationship in interface ProvenanceFacet
        Parameters:
        relationship - the relationship
      • setReference

        public void setReference​(String reference)
        Sets the ID of the referenced resource.
        Specified by:
        setReference in interface ProvenanceFacet
        Parameters:
        reference - the reference
      • getDocument

        public ValueSchema getDocument()
        Provenance Document, e.g., an XML according to the reference schema.
        Specified by:
        getDocument in interface ProvenanceFacet
        Returns:
        the document
      • setDocument

        public void setDocument​(ValueSchema document)
        Sets the Provenance Document, e.g., an XML according to the reference schema.
        Specified by:
        setDocument in interface ProvenanceFacet
        Parameters:
        document - the document