Package com.structurizr.export.mermaid
Class MermaidDiagramExporter
java.lang.Object
com.structurizr.export.AbstractExporter
com.structurizr.export.AbstractDiagramExporter
com.structurizr.export.mermaid.MermaidDiagramExporter
- All Implemented Interfaces:
DiagramExporter,Exporter
Exports diagram definitions that can be used to create diagrams
using mermaid (https://mermaidjs.github.io).
System landscape, system context, container, component, dynamic and deployment diagrams are supported.
Deployment node -> deployment node relationships are not rendered.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DiagramcreateDiagram(com.structurizr.view.View view, String definition) protected voidendContainerBoundary(com.structurizr.view.View view, IndentingWriter writer) protected voidendDeploymentNodeBoundary(com.structurizr.view.View view, IndentingWriter writer) protected voidendEnterpriseBoundary(com.structurizr.view.View view, IndentingWriter writer) protected voidendGroupBoundary(com.structurizr.view.View view, IndentingWriter writer) protected voidendSoftwareSystemBoundary(com.structurizr.view.View view, IndentingWriter writer) export(com.structurizr.view.DynamicView view) protected booleanincludeTitle(com.structurizr.view.View view) protected booleanrenderAsSequenceDiagram(com.structurizr.view.View view) protected voidstartContainerBoundary(com.structurizr.view.View view, com.structurizr.model.Container container, IndentingWriter writer) protected voidstartDeploymentNodeBoundary(com.structurizr.view.DeploymentView view, com.structurizr.model.DeploymentNode deploymentNode, IndentingWriter writer) protected voidstartEnterpriseBoundary(com.structurizr.view.View view, String enterpriseName, IndentingWriter writer) protected voidstartGroupBoundary(com.structurizr.view.View view, String group, IndentingWriter writer) protected voidstartSoftwareSystemBoundary(com.structurizr.view.View view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) protected voidwriteElement(com.structurizr.view.View view, com.structurizr.model.Element element, IndentingWriter writer) protected voidwriteFooter(com.structurizr.view.View view, IndentingWriter writer) protected voidwriteHeader(com.structurizr.view.View view, IndentingWriter writer) protected voidwriteRelationship(com.structurizr.view.View view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) Methods inherited from class com.structurizr.export.AbstractDiagramExporter
createLegend, export, export, export, export, export, export, export, export, export, export, export, getBoundaryContainers, getBoundarySoftwareSystems, getViewOrViewSetProperty, isAnimationSupported, isVisible, isVisible, writeElements, writeRelationshipsMethods inherited from class com.structurizr.export.AbstractExporter
breakText, findElementStyle, findRelationshipStyle, hasValue, typeOf, typeOf
-
Field Details
-
MERMAID_TITLE_PROPERTY
- See Also:
-
MERMAID_SEQUENCE_DIAGRAM_PROPERTY
- See Also:
-
-
Constructor Details
-
MermaidDiagramExporter
public MermaidDiagramExporter()
-
-
Method Details
-
writeHeader
- Specified by:
writeHeaderin classAbstractDiagramExporter
-
startEnterpriseBoundary
protected void startEnterpriseBoundary(com.structurizr.view.View view, String enterpriseName, IndentingWriter writer) - Specified by:
startEnterpriseBoundaryin classAbstractDiagramExporter
-
endEnterpriseBoundary
- Specified by:
endEnterpriseBoundaryin classAbstractDiagramExporter
-
startGroupBoundary
protected void startGroupBoundary(com.structurizr.view.View view, String group, IndentingWriter writer) - Specified by:
startGroupBoundaryin classAbstractDiagramExporter
-
endGroupBoundary
- Specified by:
endGroupBoundaryin classAbstractDiagramExporter
-
startSoftwareSystemBoundary
protected void startSoftwareSystemBoundary(com.structurizr.view.View view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) - Specified by:
startSoftwareSystemBoundaryin classAbstractDiagramExporter
-
endSoftwareSystemBoundary
- Specified by:
endSoftwareSystemBoundaryin classAbstractDiagramExporter
-
startContainerBoundary
protected void startContainerBoundary(com.structurizr.view.View view, com.structurizr.model.Container container, IndentingWriter writer) - Specified by:
startContainerBoundaryin classAbstractDiagramExporter
-
endContainerBoundary
- Specified by:
endContainerBoundaryin classAbstractDiagramExporter
-
startDeploymentNodeBoundary
protected void startDeploymentNodeBoundary(com.structurizr.view.DeploymentView view, com.structurizr.model.DeploymentNode deploymentNode, IndentingWriter writer) - Specified by:
startDeploymentNodeBoundaryin classAbstractDiagramExporter
-
endDeploymentNodeBoundary
- Specified by:
endDeploymentNodeBoundaryin classAbstractDiagramExporter
-
export
- Overrides:
exportin classAbstractDiagramExporter
-
writeElement
protected void writeElement(com.structurizr.view.View view, com.structurizr.model.Element element, IndentingWriter writer) - Specified by:
writeElementin classAbstractDiagramExporter
-
writeRelationship
protected void writeRelationship(com.structurizr.view.View view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) - Specified by:
writeRelationshipin classAbstractDiagramExporter
-
createDiagram
- Specified by:
createDiagramin classAbstractDiagramExporter
-
includeTitle
protected boolean includeTitle(com.structurizr.view.View view) -
renderAsSequenceDiagram
protected boolean renderAsSequenceDiagram(com.structurizr.view.View view)
-