Class LineageImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- LineageImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Lineage
public class LineageImpl extends MetadataEntity implements Lineage
Information about the events or source data used in constructing the data specified by the scope or lack of knowledge about lineage.Only one of statement, process steps and
sources
should be provided.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description LineageImpl()
Constructs an initially empty lineage.LineageImpl(Lineage source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ProcessStep>
getProcessSteps()
Returns the information about an event in the creation process for the data specified by the scope.Collection<Source>
getSources()
Information about the source data used in creating the data specified by the scope.InternationalString
getStatement()
Returns the general explanation of the data producers knowledge about the lineage of a dataset.void
setProcessSteps(Collection<? extends ProcessStep> newValues)
Set information about an event in the creation process for the data specified by the scope.void
setSources(Collection<? extends Source> newValues)
Information about the source data used in creating the data specified by the scope.void
setStatement(InternationalString newValue)
Set the general explanation of the data producers knowledge about the lineage of a dataset.-
Methods inherited from class MetadataEntity
ensureNonNull, getStandard
-
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
-
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
-
-
-
Constructor Detail
-
LineageImpl
public LineageImpl()
Constructs an initially empty lineage.
-
LineageImpl
public LineageImpl(Lineage source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
-
Method Detail
-
getStatement
public InternationalString getStatement()
Returns the general explanation of the data producers knowledge about the lineage of a dataset. Should be provided only if scope level is dataset or series.- Specified by:
getStatement
in interfaceLineage
- Returns:
- Explanation of the data producer's knowledge about the lineage, or
null
.
-
setStatement
public void setStatement(InternationalString newValue)
Set the general explanation of the data producers knowledge about the lineage of a dataset.
-
getProcessSteps
public Collection<ProcessStep> getProcessSteps()
Returns the information about an event in the creation process for the data specified by the scope.- Specified by:
getProcessSteps
in interfaceLineage
- Returns:
- Information about an event in the creation process.
-
setProcessSteps
public void setProcessSteps(Collection<? extends ProcessStep> newValues)
Set information about an event in the creation process for the data specified by the scope.
-
getSources
public Collection<Source> getSources()
Information about the source data used in creating the data specified by the scope.- Specified by:
getSources
in interfaceLineage
- Returns:
- Information about the source data.
-
setSources
public void setSources(Collection<? extends Source> newValues)
Information about the source data used in creating the data specified by the scope.
-
-