Package com.structurizr.export
Class AbstractDiagramExporter
java.lang.Object
com.structurizr.export.AbstractExporter
com.structurizr.export.AbstractDiagramExporter
- All Implemented Interfaces:
DiagramExporter,Exporter
- Direct Known Subclasses:
AbstractPlantUMLExporter,DOTExporter,MermaidDiagramExporter,WebSequenceDiagramsExporter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DiagramcreateDiagram(com.structurizr.view.ModelView view, String definition) protected LegendcreateLegend(com.structurizr.view.ModelView view) protected abstract voidendContainerBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected abstract voidendDeploymentNodeBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected abstract voidendEnterpriseBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected abstract voidendGroupBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) protected abstract voidendSoftwareSystemBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) export(com.structurizr.view.ComponentView view) export(com.structurizr.view.ContainerView view) export(com.structurizr.view.CustomView view) export(com.structurizr.view.DeploymentView view) export(com.structurizr.view.DynamicView view) export(com.structurizr.view.SystemContextView view) export(com.structurizr.view.SystemLandscapeView view) final Collection<Diagram>export(com.structurizr.Workspace workspace) Exports all views in the workspace.protected List<com.structurizr.model.Container>getBoundaryContainers(com.structurizr.view.ModelView view) protected List<com.structurizr.model.SoftwareSystem>getBoundarySoftwareSystems(com.structurizr.view.ModelView view) protected StringgetViewOrViewSetProperty(com.structurizr.view.ModelView view, String name, String defaultValue) protected booleanisAnimationSupported(com.structurizr.view.ModelView view) protected booleanisVisible(com.structurizr.view.ModelView view, com.structurizr.model.Element element) protected booleanisVisible(com.structurizr.view.ModelView view, com.structurizr.view.RelationshipView relationshipView) protected abstract voidstartContainerBoundary(com.structurizr.view.ModelView view, com.structurizr.model.Container container, IndentingWriter writer) protected abstract voidstartDeploymentNodeBoundary(com.structurizr.view.DeploymentView view, com.structurizr.model.DeploymentNode deploymentNode, IndentingWriter writer) protected abstract voidstartEnterpriseBoundary(com.structurizr.view.ModelView view, String enterpriseName, IndentingWriter writer) protected abstract voidstartGroupBoundary(com.structurizr.view.ModelView view, String group, IndentingWriter writer) protected abstract voidstartSoftwareSystemBoundary(com.structurizr.view.ModelView view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) protected abstract voidwriteElement(com.structurizr.view.ModelView view, com.structurizr.model.Element element, IndentingWriter writer) protected voidwriteElements(com.structurizr.view.ModelView view, List<com.structurizr.model.GroupableElement> elements, IndentingWriter writer) protected abstract voidwriteFooter(com.structurizr.view.ModelView view, IndentingWriter writer) protected abstract voidwriteHeader(com.structurizr.view.ModelView view, IndentingWriter writer) protected abstract voidwriteRelationship(com.structurizr.view.ModelView view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) protected voidwriteRelationships(com.structurizr.view.ModelView view, IndentingWriter writer) Methods inherited from class com.structurizr.export.AbstractExporter
breakText, findElementStyle, findRelationshipStyle, hasValue, typeOf, typeOf
-
Field Details
-
GROUP_SEPARATOR_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
AbstractDiagramExporter
public AbstractDiagramExporter()
-
-
Method Details
-
export
Exports all views in the workspace.- Specified by:
exportin interfaceDiagramExporter- Parameters:
workspace- the workspace containing the views to be written- Returns:
- a collection of diagram definitions, one per view
-
export
-
export
-
export
-
export
-
export
-
getBoundarySoftwareSystems
protected List<com.structurizr.model.SoftwareSystem> getBoundarySoftwareSystems(com.structurizr.view.ModelView view) -
export
-
export
-
getBoundaryContainers
protected List<com.structurizr.model.Container> getBoundaryContainers(com.structurizr.view.ModelView view) -
export
-
export
-
export
-
export
-
writeElements
protected void writeElements(com.structurizr.view.ModelView view, List<com.structurizr.model.GroupableElement> elements, IndentingWriter writer) -
writeRelationships
-
writeHeader
-
startEnterpriseBoundary
protected abstract void startEnterpriseBoundary(com.structurizr.view.ModelView view, String enterpriseName, IndentingWriter writer) -
endEnterpriseBoundary
protected abstract void endEnterpriseBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) -
startGroupBoundary
protected abstract void startGroupBoundary(com.structurizr.view.ModelView view, String group, IndentingWriter writer) -
endGroupBoundary
protected abstract void endGroupBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) -
startSoftwareSystemBoundary
protected abstract void startSoftwareSystemBoundary(com.structurizr.view.ModelView view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) -
endSoftwareSystemBoundary
protected abstract void endSoftwareSystemBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) -
startContainerBoundary
protected abstract void startContainerBoundary(com.structurizr.view.ModelView view, com.structurizr.model.Container container, IndentingWriter writer) -
endContainerBoundary
protected abstract void endContainerBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) -
startDeploymentNodeBoundary
protected abstract void startDeploymentNodeBoundary(com.structurizr.view.DeploymentView view, com.structurizr.model.DeploymentNode deploymentNode, IndentingWriter writer) -
endDeploymentNodeBoundary
protected abstract void endDeploymentNodeBoundary(com.structurizr.view.ModelView view, IndentingWriter writer) -
writeElement
protected abstract void writeElement(com.structurizr.view.ModelView view, com.structurizr.model.Element element, IndentingWriter writer) -
writeRelationship
protected abstract void writeRelationship(com.structurizr.view.ModelView view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) -
isAnimationSupported
protected boolean isAnimationSupported(com.structurizr.view.ModelView view) -
isVisible
protected boolean isVisible(com.structurizr.view.ModelView view, com.structurizr.model.Element element) -
isVisible
protected boolean isVisible(com.structurizr.view.ModelView view, com.structurizr.view.RelationshipView relationshipView) -
createDiagram
-
createLegend
-
getViewOrViewSetProperty
-