Class AssetLineageGraph
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetLineageGraphNode
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetLineageGraph
- All Implemented Interfaces:
MetadataElement
AssetLineageGraph is used to return an asset along with all of its lineage relationships.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAssetLineageGraph(AssetLineageGraph template) Copy/clone constructor.AssetLineageGraph(AssetLineageGraphNode template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the relationships that connect the assets together in the lineage graph.Return the list of elements that are linked to the asset by lineage relationships.Return the mermaid string used to render a graph.inthashCode()Return hash code based on properties.voidsetLineageRelationships(List<AssetLineageGraphRelationship> lineageRelationships) Set up the relationships that connect the assets together in the lineage graph.voidsetLinkedAssets(List<AssetLineageGraphNode> linkedAssets) Set up the list of elements that are linked to the asset by lineage relationships.voidsetMermaidGraph(String mermaidGraph) Set up mermaid string used to render a graph.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetLineageGraphNode
getDownstreamRelationships, getInternalRelationships, getUpstreamRelationships, setDownstreamRelationships, setInternalRelationships, setUpstreamRelationshipsMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
getElementHeader, getProperties, setElementHeader, setProperties
-
Constructor Details
-
AssetLineageGraph
public AssetLineageGraph()Default constructor -
AssetLineageGraph
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- template values for asset
-
AssetLineageGraph
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- template values for asset graph
-
-
Method Details
-
getLinkedAssets
Return the list of elements that are linked to the asset by lineage relationships.- Returns:
- linked elements
-
setLinkedAssets
Set up the list of elements that are linked to the asset by lineage relationships.- Parameters:
linkedAssets- linked elements
-
getLineageRelationships
Return the relationships that connect the assets together in the lineage graph.- Returns:
- relationships
-
setLineageRelationships
Set up the relationships that connect the assets together in the lineage graph.- Parameters:
lineageRelationships- relationships
-
getMermaidGraph
Return the mermaid string used to render a graph.- Returns:
- string in Mermaid markdown
-
setMermaidGraph
Set up mermaid string used to render a graph.- Parameters:
mermaidGraph- string in Mermaid markdown
-
toString
Standard toString method.- Overrides:
toStringin classAssetLineageGraphNode- 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:
equalsin classAssetLineageGraphNode- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classAssetLineageGraphNode- Returns:
- int
-