Class StructurizrDocumentationTemplate
- java.lang.Object
-
- com.structurizr.documentation.template.DocumentationTemplate
-
- com.structurizr.documentation.template.StructurizrDocumentationTemplate
-
public class StructurizrDocumentationTemplate extends DocumentationTemplate
A simple documentation template, based upon the "software guidebook" concept in Simon Brown's Software Architecture for Developers book, with the following sections:
- Context
- Functional Overview
- Quality Attributes
- Constraints
- Principles
- Software Architecture
- Containers
- Components
- Code
- Data
- Infrastructure Architecture
- Deployment
- Development Environment
- Operation and Support
- Decision Log
-
-
Field Summary
-
Fields inherited from class com.structurizr.documentation.template.DocumentationTemplate
documentation
-
-
Constructor Summary
Constructors Constructor Description StructurizrDocumentationTemplate(com.structurizr.documentation.Documentable documentable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.structurizr.documentation.SectionaddCodeSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Code" section relating to aComponent.com.structurizr.documentation.SectionaddCodeSection(java.io.File... files)Adds a "Code" section relating to aComponentfrom one or more files.com.structurizr.documentation.SectionaddComponentsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Components" section relating to aContainer.com.structurizr.documentation.SectionaddComponentsSection(java.io.File... files)Adds a "Components" section relating to aContainerfrom one or more files.com.structurizr.documentation.SectionaddConstraintsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Constraints" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddConstraintsSection(java.io.File... files)Adds a "Constraints" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddContainersSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Containers" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddContainersSection(java.io.File... files)Adds a "Containers" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddContextSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Context" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddContextSection(java.io.File... files)Adds a "Context" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddDataSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Data" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddDataSection(java.io.File... files)Adds a "Data" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddDecisionLogSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Decision Log" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddDecisionLogSection(java.io.File... files)Adds a "Decision Log" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddDeploymentSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Deployment" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddDeploymentSection(java.io.File... files)Adds a "Deployment" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddDevelopmentEnvironmentSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Development Environment" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddDevelopmentEnvironmentSection(java.io.File... files)Adds a "Development Environment" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddFunctionalOverviewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Functional Overview" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddFunctionalOverviewSection(java.io.File... files)Adds a "Functional Overview" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddInfrastructureArchitectureSection(com.structurizr.documentation.Format format, java.lang.String content)Adds an "Infrastructure Architecture" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddInfrastructureArchitectureSection(java.io.File... files)Adds an "Infrastructure Architecture" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddOperationAndSupportSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Operation and Support" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddOperationAndSupportSection(java.io.File... files)Adds an "Operation and Support" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddPrinciplesSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Principles" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddPrinciplesSection(java.io.File... files)Adds a "Principles" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddQualityAttributesSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Quality Attributes" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddQualityAttributesSection(java.io.File... files)Adds a "Quality Attributes" section relating to aSoftwareSystemfrom one or more files.com.structurizr.documentation.SectionaddSoftwareArchitectureSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Software Architecture" section relating to aSoftwareSystem.com.structurizr.documentation.SectionaddSoftwareArchitectureSection(java.io.File... files)Adds a "Software Architecture" section relating to aSoftwareSystemfrom one or more files.-
Methods inherited from class com.structurizr.documentation.template.DocumentationTemplate
addSection, addSection, readFiles
-
-
-
-
Method Detail
-
addContextSection
public com.structurizr.documentation.Section addContextSection(java.io.File... files) throws java.io.IOExceptionAdds a "Context" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addContextSection
public com.structurizr.documentation.Section addContextSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Context" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addFunctionalOverviewSection
public com.structurizr.documentation.Section addFunctionalOverviewSection(java.io.File... files) throws java.io.IOExceptionAdds a "Functional Overview" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addFunctionalOverviewSection
public com.structurizr.documentation.Section addFunctionalOverviewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Functional Overview" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addQualityAttributesSection
public com.structurizr.documentation.Section addQualityAttributesSection(java.io.File... files) throws java.io.IOExceptionAdds a "Quality Attributes" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addQualityAttributesSection
public com.structurizr.documentation.Section addQualityAttributesSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Quality Attributes" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addConstraintsSection
public com.structurizr.documentation.Section addConstraintsSection(java.io.File... files) throws java.io.IOExceptionAdds a "Constraints" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addConstraintsSection
public com.structurizr.documentation.Section addConstraintsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Constraints" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addPrinciplesSection
public com.structurizr.documentation.Section addPrinciplesSection(java.io.File... files) throws java.io.IOExceptionAdds a "Principles" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addPrinciplesSection
public com.structurizr.documentation.Section addPrinciplesSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Principles" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addSoftwareArchitectureSection
public com.structurizr.documentation.Section addSoftwareArchitectureSection(java.io.File... files) throws java.io.IOExceptionAdds a "Software Architecture" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addSoftwareArchitectureSection
public com.structurizr.documentation.Section addSoftwareArchitectureSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Software Architecture" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addContainersSection
public com.structurizr.documentation.Section addContainersSection(java.io.File... files) throws java.io.IOExceptionAdds a "Containers" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addContainersSection
public com.structurizr.documentation.Section addContainersSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Containers" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addComponentsSection
public com.structurizr.documentation.Section addComponentsSection(java.io.File... files) throws java.io.IOExceptionAdds a "Components" section relating to aContainerfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addComponentsSection
public com.structurizr.documentation.Section addComponentsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Components" section relating to aContainer.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addCodeSection
public com.structurizr.documentation.Section addCodeSection(java.io.File... files) throws java.io.IOExceptionAdds a "Code" section relating to aComponentfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addCodeSection
public com.structurizr.documentation.Section addCodeSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Code" section relating to aComponent.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addDataSection
public com.structurizr.documentation.Section addDataSection(java.io.File... files) throws java.io.IOExceptionAdds a "Data" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addDataSection
public com.structurizr.documentation.Section addDataSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Data" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addInfrastructureArchitectureSection
public com.structurizr.documentation.Section addInfrastructureArchitectureSection(java.io.File... files) throws java.io.IOExceptionAdds an "Infrastructure Architecture" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addInfrastructureArchitectureSection
public com.structurizr.documentation.Section addInfrastructureArchitectureSection(com.structurizr.documentation.Format format, java.lang.String content)Adds an "Infrastructure Architecture" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addDeploymentSection
public com.structurizr.documentation.Section addDeploymentSection(java.io.File... files) throws java.io.IOExceptionAdds a "Deployment" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addDeploymentSection
public com.structurizr.documentation.Section addDeploymentSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Deployment" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addDevelopmentEnvironmentSection
public com.structurizr.documentation.Section addDevelopmentEnvironmentSection(java.io.File... files) throws java.io.IOExceptionAdds a "Development Environment" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addDevelopmentEnvironmentSection
public com.structurizr.documentation.Section addDevelopmentEnvironmentSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Development Environment" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addOperationAndSupportSection
public com.structurizr.documentation.Section addOperationAndSupportSection(java.io.File... files) throws java.io.IOExceptionAdds an "Operation and Support" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addOperationAndSupportSection
public com.structurizr.documentation.Section addOperationAndSupportSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Operation and Support" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addDecisionLogSection
public com.structurizr.documentation.Section addDecisionLogSection(java.io.File... files) throws java.io.IOExceptionAdds a "Decision Log" section relating to aSoftwareSystemfrom one or more files.- Parameters:
files- one or more File objects that point to the documentation content- Returns:
- a documentation
Section - Throws:
java.io.IOException- if there is an error reading the files
-
addDecisionLogSection
public com.structurizr.documentation.Section addDecisionLogSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Decision Log" section relating to aSoftwareSystem.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
-