Class AssetLineageGraphNode
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetLineageGraphNode
- All Implemented Interfaces:
MetadataElement
- Direct Known Subclasses:
AssetLineageGraph
AssetLineageGraphNode is used to return an asset that is part of a lineage graph and the relationships
that are the evidence that this asset belongs in the graph.
-
Constructor Summary
ConstructorDescriptionDefault constructorAssetLineageGraphNode
(AssetElement template) Copy/clone constructor.AssetLineageGraphNode
(AssetLineageGraphNode template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the downstream relationships that provide the evidence that this asset is part of the resulting lineage graph.Return the internal relationships that provide the evidence that this asset is part of the resulting lineage graph.Return the upstream relationships that provide the evidence that this asset is part of the resulting lineage graph.int
hashCode()
Return hash code based on properties.void
setDownstreamRelationships
(List<MetadataRelationship> downstreamRelationships) Set up the downstream relationships that provide the evidence that this asset is part of the resulting lineage graph.void
setInternalRelationships
(List<MetadataRelationship> internalRelationships) Set up the internal relationships that provide the evidence that this asset is part of the resulting lineage graph.void
setUpstreamRelationships
(List<MetadataRelationship> upstreamRelationships) Set up the upstream relationships that provide the evidence that this asset is part of the resulting lineage graph.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
getElementHeader, getProperties, setElementHeader, setProperties
-
Constructor Details
-
AssetLineageGraphNode
public AssetLineageGraphNode()Default constructor -
AssetLineageGraphNode
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset
-
AssetLineageGraphNode
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset graph
-
-
Method Details
-
getUpstreamRelationships
Return the upstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (An upstream relationship is one where an anchored element is at end 2 only.)- Returns:
- relationships
-
setUpstreamRelationships
Set up the upstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (An upstream relationship is one where an anchored element is at end 2 only.)- Parameters:
upstreamRelationships
- relationships
-
getDownstreamRelationships
Return the downstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (A downstream relationship is one where an anchored element is at end 1 only.)- Returns:
- relationships
-
setDownstreamRelationships
Set up the downstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (A downstream relationship is one where an anchored element is at end 1 only.)- Parameters:
downstreamRelationships
- relationships
-
getInternalRelationships
Return the internal relationships that provide the evidence that this asset is part of the resulting lineage graph. (An internal relationship is one where an anchored element is at both ends.)- Returns:
- relationships
-
setInternalRelationships
Set up the internal relationships that provide the evidence that this asset is part of the resulting lineage graph. (An internal relationship is one where an anchored element is at both ends.)- Parameters:
internalRelationships
- relationships
-
toString
Standard toString method.- Overrides:
toString
in classAssetElement
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classAssetElement
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classAssetElement
- Returns:
- int
-