Class DocumentationTemplate
- java.lang.Object
-
- com.structurizr.documentation.template.DocumentationTemplate
-
- Direct Known Subclasses:
Arc42DocumentationTemplate,StructurizrDocumentationTemplate,ViewpointsAndPerspectivesDocumentationTemplate
public abstract class DocumentationTemplate extends java.lang.ObjectA superclass for documentation templates.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.structurizr.documentation.Documentationdocumentation
-
Constructor Summary
Constructors Constructor Description DocumentationTemplate(com.structurizr.documentation.Documentable documentable)Creates a new documentation template for the given workspace or software system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.structurizr.documentation.SectionaddSection(java.lang.String title, com.structurizr.documentation.Format format, java.lang.String content)Adds a documentation section.com.structurizr.documentation.SectionaddSection(java.lang.String title, java.io.File... files)Adds a custom section from one or more files, that isn't related to any element in the model.protected com.structurizr.documentation.template.FormattedContentreadFiles(java.io.File... files)
-
-
-
Method Detail
-
addSection
public com.structurizr.documentation.Section addSection(java.lang.String title, java.io.File... files) throws java.io.IOExceptionAdds a custom section from one or more files, that isn't related to any element in the model.- Parameters:
title- the section titlefiles- 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
-
addSection
public com.structurizr.documentation.Section addSection(java.lang.String title, com.structurizr.documentation.Format format, java.lang.String content)Adds a documentation section.- Parameters:
title- the section titleformat- theFormatof the documentation contentcontent- a String containing the documentation content- Returns:
- a documentation
Section
-
readFiles
protected com.structurizr.documentation.template.FormattedContent readFiles(java.io.File... files) throws java.io.IOException- Throws:
java.io.IOException
-
-