Class ProvenanceFacetImpl
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.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
Implementation of
ProvenanceFacet.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe document describing the provenanceprotected StringThe reference to the provenance entityprotected StringThe relationship describing the provenanceFields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.ProvenanceFacet
NAME, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe provenance document itself.The ID of the referenced resource.Relationship with the resource indicated by ID.voidsetDocument(String document) Sets the provenance document itself.protected voidsetGenericDocument(Object doc) Setter for backward compatibility with ValueSchema payloads.voidsetReference(String reference) Sets the ID of the referenced resource.voidsetRelationship(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, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
relationship
The relationship describing the provenance -
reference
The reference to the provenance entity -
document
The document describing the provenance
-
-
Constructor Details
-
ProvenanceFacetImpl
public ProvenanceFacetImpl()
-
-
Method Details
-
getRelationship
Relationship with the resource indicated by ID.- Specified by:
getRelationshipin interfaceProvenanceFacet- Returns:
- the relationship
-
setRelationship
Sets the Relationship with the resource indicated by ID.- Specified by:
setRelationshipin interfaceProvenanceFacet- Parameters:
relationship- the relationship
-
getReference
The ID of the referenced resource.- Specified by:
getReferencein interfaceProvenanceFacet- Returns:
- the reference
-
setReference
Sets the ID of the referenced resource.- Specified by:
setReferencein interfaceProvenanceFacet- Parameters:
reference- the reference
-
getDocument
The provenance document itself. Deliberately unconstrained: accepts any JSON-compatible value, since the provenance representation in use (e.g., PROV-XML, PROV-JSON, or plain text) is not known in advance. The Java API always exposes it as aString.- Specified by:
getDocumentin interfaceProvenanceFacet- Returns:
- the document
-
setDocument
Sets the provenance document itself.- Specified by:
setDocumentin interfaceProvenanceFacet- Parameters:
document- the document
-
setGenericDocument
Setter for backward compatibility with ValueSchema payloads.- Parameters:
doc- the provenance document payload to deserialize
-