Class MermaidGraphBuilderBase
java.lang.Object
org.odpi.openmetadata.commonservices.mermaid.MermaidGraphBuilderBase
- Direct Known Subclasses:
AssetGraphMermaidGraphBuilder,AssetLineageGraphMermaidGraphBuilder,HierarchyMermaidGraphBuilder,OpenMetadataMermaidGraphBuilder
Provides the basic functions for building flowchart based graph visualizations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendMermaidLine(String end1Id, String label, String end2Id) Append a line to the graph.voidappendMermaidNode(String currentNodeName, String currentDisplayName, String currentType) Create a node in the mermaid graph.getListLabel(List<String> labelValues) Convert an array into a comma separated string.Return the built mermaid graph.
-
Constructor Details
-
MermaidGraphBuilderBase
public MermaidGraphBuilderBase()
-
-
Method Details
-
getListLabel
Convert an array into a comma separated string.- Parameters:
labelValues- array of labels- Returns:
- string value
-
appendMermaidNode
public void appendMermaidNode(String currentNodeName, String currentDisplayName, String currentType) Create a node in the mermaid graph.- Parameters:
currentNodeName- unique name/identifiercurrentDisplayName- display namecurrentType- type of element
-
appendMermaidLine
Append a line to the graph.- Parameters:
end1Id- identifier of the starting endlabel- label for the lineend2Id- identifier of the ending end
-
getMermaidGraph
Return the built mermaid graph.- Returns:
- string markdown
-