Class Arc42DocumentationTemplate
- java.lang.Object
-
- com.structurizr.documentation.template.DocumentationTemplate
-
- com.structurizr.documentation.template.Arc42DocumentationTemplate
-
public class Arc42DocumentationTemplate extends DocumentationTemplate
An implementation of the arc42 documentation template, consisting of the following sections:
- Introduction and Goals
- Constraints
- Context and Scope
- Solution Strategy
- Building Block View
- Runtime View
- Deployment View
- Crosscutting Concepts
- Architectural Decisions
- Quality Requirements
- Risks and Technical Debt
- Glossary
-
-
Field Summary
-
Fields inherited from class com.structurizr.documentation.template.DocumentationTemplate
documentation
-
-
Constructor Summary
Constructors Constructor Description Arc42DocumentationTemplate(com.structurizr.documentation.Documentable documentable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.structurizr.documentation.SectionaddArchitecturalDecisionsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds an "Architectural Decisions" section.com.structurizr.documentation.SectionaddArchitecturalDecisionsSection(java.io.File... files)Adds an "Architectural Decisions" section from one or more files.com.structurizr.documentation.SectionaddBuildingBlockViewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Building Block View" section.com.structurizr.documentation.SectionaddBuildingBlockViewSection(java.io.File... files)Adds a "Building Block View" section from one or more files.com.structurizr.documentation.SectionaddConstraintsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Constraints" section.com.structurizr.documentation.SectionaddConstraintsSection(java.io.File... files)Adds a "Constraints" section from one or more files.com.structurizr.documentation.SectionaddContextAndScopeSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Context and Scope" section.com.structurizr.documentation.SectionaddContextAndScopeSection(java.io.File... files)Adds a "Context and Scope" section from one or more files.com.structurizr.documentation.SectionaddCrosscuttingConceptsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Crosscutting Concepts" section.com.structurizr.documentation.SectionaddCrosscuttingConceptsSection(java.io.File... files)Adds a "Crosscutting Concepts" section from one or more files.com.structurizr.documentation.SectionaddDeploymentViewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Deployment View" section.com.structurizr.documentation.SectionaddDeploymentViewSection(java.io.File... files)Adds a "Deployment View" section from one or more files.com.structurizr.documentation.SectionaddGlossarySection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Glossary" section.com.structurizr.documentation.SectionaddGlossarySection(java.io.File... files)Adds a "Glossary" section from one or more files.com.structurizr.documentation.SectionaddIntroductionAndGoalsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds an "Introduction and Goals" section.com.structurizr.documentation.SectionaddIntroductionAndGoalsSection(java.io.File... files)Adds an "Introduction and Goals" section from one or more files.com.structurizr.documentation.SectionaddQualityRequirementsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Quality Requirements" section.com.structurizr.documentation.SectionaddQualityRequirementsSection(java.io.File... files)Adds a "Quality Requirements" section from one or more files.com.structurizr.documentation.SectionaddRisksAndTechnicalDebtSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Risks and Technical Debt" section.com.structurizr.documentation.SectionaddRisksAndTechnicalDebtSection(java.io.File... files)Adds a "Risks and Technical Debt" section from one or more files.com.structurizr.documentation.SectionaddRuntimeViewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Runtime View" section.com.structurizr.documentation.SectionaddRuntimeViewSection(java.io.File... files)Adds a "Runtime View" section from one or more files.com.structurizr.documentation.SectionaddSolutionStrategySection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Solution Strategy" section.com.structurizr.documentation.SectionaddSolutionStrategySection(java.io.File... files)Adds a "Solution Strategy" section from one or more files.-
Methods inherited from class com.structurizr.documentation.template.DocumentationTemplate
addSection, addSection, readFiles
-
-
-
-
Method Detail
-
addIntroductionAndGoalsSection
public com.structurizr.documentation.Section addIntroductionAndGoalsSection(java.io.File... files) throws java.io.IOExceptionAdds an "Introduction and Goals" section from 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
-
addIntroductionAndGoalsSection
public com.structurizr.documentation.Section addIntroductionAndGoalsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds an "Introduction and Goals" section.- 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 from 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.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addContextAndScopeSection
public com.structurizr.documentation.Section addContextAndScopeSection(java.io.File... files) throws java.io.IOExceptionAdds a "Context and Scope" section from 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
-
addContextAndScopeSection
public com.structurizr.documentation.Section addContextAndScopeSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Context and Scope" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addSolutionStrategySection
public com.structurizr.documentation.Section addSolutionStrategySection(java.io.File... files) throws java.io.IOExceptionAdds a "Solution Strategy" section from 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
-
addSolutionStrategySection
public com.structurizr.documentation.Section addSolutionStrategySection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Solution Strategy" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addBuildingBlockViewSection
public com.structurizr.documentation.Section addBuildingBlockViewSection(java.io.File... files) throws java.io.IOExceptionAdds a "Building Block View" section from 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
-
addBuildingBlockViewSection
public com.structurizr.documentation.Section addBuildingBlockViewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Building Block View" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addRuntimeViewSection
public com.structurizr.documentation.Section addRuntimeViewSection(java.io.File... files) throws java.io.IOExceptionAdds a "Runtime View" section from 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
-
addRuntimeViewSection
public com.structurizr.documentation.Section addRuntimeViewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Runtime View" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addDeploymentViewSection
public com.structurizr.documentation.Section addDeploymentViewSection(java.io.File... files) throws java.io.IOExceptionAdds a "Deployment View" section from 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
-
addDeploymentViewSection
public com.structurizr.documentation.Section addDeploymentViewSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Deployment View" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addCrosscuttingConceptsSection
public com.structurizr.documentation.Section addCrosscuttingConceptsSection(java.io.File... files) throws java.io.IOExceptionAdds a "Crosscutting Concepts" section from 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
-
addCrosscuttingConceptsSection
public com.structurizr.documentation.Section addCrosscuttingConceptsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Crosscutting Concepts" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addArchitecturalDecisionsSection
public com.structurizr.documentation.Section addArchitecturalDecisionsSection(java.io.File... files) throws java.io.IOExceptionAdds an "Architectural Decisions" section from 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
-
addArchitecturalDecisionsSection
public com.structurizr.documentation.Section addArchitecturalDecisionsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds an "Architectural Decisions" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addQualityRequirementsSection
public com.structurizr.documentation.Section addQualityRequirementsSection(java.io.File... files) throws java.io.IOExceptionAdds a "Quality Requirements" section from 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
-
addQualityRequirementsSection
public com.structurizr.documentation.Section addQualityRequirementsSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Quality Requirements" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addRisksAndTechnicalDebtSection
public com.structurizr.documentation.Section addRisksAndTechnicalDebtSection(java.io.File... files) throws java.io.IOExceptionAdds a "Risks and Technical Debt" section from 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
-
addRisksAndTechnicalDebtSection
public com.structurizr.documentation.Section addRisksAndTechnicalDebtSection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Risks and Technical Debt" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
addGlossarySection
public com.structurizr.documentation.Section addGlossarySection(java.io.File... files) throws java.io.IOExceptionAdds a "Glossary" section from 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
-
addGlossarySection
public com.structurizr.documentation.Section addGlossarySection(com.structurizr.documentation.Format format, java.lang.String content)Adds a "Glossary" section.- Parameters:
format- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
-