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
FieldsFields inherited from class com.structurizr.export.AbstractDiagramExporter
GROUP_SEPARATOR_PROPERTY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DiagramcreateDiagram(com.structurizr.view.ModelView view, String definition) protected voidendContainerBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected voidendDeploymentNodeBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected voidendEnterpriseBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected voidendGroupBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected voidendSoftwareSystemBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) export(com.structurizr.view.DynamicView view) protected booleanincludeTitle(com.structurizr.view.ModelView view) protected booleanrenderAsSequenceDiagram(com.structurizr.view.ModelView view) protected voidstartContainerBoundary(com.structurizr.view.ModelView 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.ModelView view, String enterpriseName, IndentingWriter writer) protected voidstartGroupBoundary(com.structurizr.view.ModelView view, String group, IndentingWriter writer) protected voidstartSoftwareSystemBoundary(com.structurizr.view.ModelView view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) protected voidwriteElement(com.structurizr.view.ModelView view, com.structurizr.model.Element element, IndentingWriter writer) protected voidwriteFooter(com.structurizr.view.ModelView view, IndentingWriter writer) protected voidwriteHeader(com.structurizr.view.ModelView view, IndentingWriter writer) protected voidwriteRelationship(com.structurizr.view.ModelView 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:
-
MERMAID_ICONS_PROPERTY
- See Also:
-
-
Constructor Details
-
MermaidDiagramExporter
public MermaidDiagramExporter()
-
-
Method Details
-
writeHeader
- Specified by:
writeHeaderin classAbstractDiagramExporter
-
startEnterpriseBoundary
protected void startEnterpriseBoundary(com.structurizr.view.ModelView view, String enterpriseName, IndentingWriter writer) - Specified by:
startEnterpriseBoundaryin classAbstractDiagramExporter
-
endEnterpriseBoundary
- Specified by:
endEnterpriseBoundaryin classAbstractDiagramExporter
-
startGroupBoundary
protected void startGroupBoundary(com.structurizr.view.ModelView view, String group, IndentingWriter writer) - Specified by:
startGroupBoundaryin classAbstractDiagramExporter
-
endGroupBoundary
- Specified by:
endGroupBoundaryin classAbstractDiagramExporter
-
startSoftwareSystemBoundary
protected void startSoftwareSystemBoundary(com.structurizr.view.ModelView view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) - Specified by:
startSoftwareSystemBoundaryin classAbstractDiagramExporter
-
endSoftwareSystemBoundary
protected void endSoftwareSystemBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) - Specified by:
endSoftwareSystemBoundaryin classAbstractDiagramExporter
-
startContainerBoundary
protected void startContainerBoundary(com.structurizr.view.ModelView 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
protected void endDeploymentNodeBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) - Specified by:
endDeploymentNodeBoundaryin classAbstractDiagramExporter
-
export
- Overrides:
exportin classAbstractDiagramExporter
-
writeElement
protected void writeElement(com.structurizr.view.ModelView view, com.structurizr.model.Element element, IndentingWriter writer) - Specified by:
writeElementin classAbstractDiagramExporter
-
writeRelationship
protected void writeRelationship(com.structurizr.view.ModelView view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) - Specified by:
writeRelationshipin classAbstractDiagramExporter
-
createDiagram
- Specified by:
createDiagramin classAbstractDiagramExporter
-
includeTitle
protected boolean includeTitle(com.structurizr.view.ModelView view) -
renderAsSequenceDiagram
protected boolean renderAsSequenceDiagram(com.structurizr.view.ModelView view)
-