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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendMermaidLine
(String end1Id, String label, String end2Id) Append a line to the graph.void
appendMermaidNode
(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.
-
Field Details
-
mermaidGraph
-
-
Constructor Details
-
MermaidGraphBuilderBase
public MermaidGraphBuilderBase()
-
-
Method Details
-
getListLabel
Convert an array into a comma separated string.- Parameters:
labelValues
- array of labels- Returns:
- string value without square brackets (Mermaid does not allow them)
-
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
-