Package com.structurizr.documentation
Class Documentation
java.lang.Object
com.structurizr.documentation.Documentation
Represents the documentation within a workspace or software system - a collection of
content in Markdown or AsciiDoc format, optionally with attached images.
See Documentation
on the Structurizr website for more details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDecision(Decision decision) Adds a new decision to this documentation.voidAdds an image to the documentation.voidaddSection(Section section) Adds a section to this documentation.voidclear()Removes all documentation, decisions, and images.Gets the set of decisions associated with this workspace.Gets the set ofImages in this workspace.Gets the set ofSections.booleanisEmpty()
-
Constructor Details
-
Documentation
public Documentation()
-
-
Method Details
-
addSection
Adds a section to this documentation.- Parameters:
section- a Section object
-
getSections
Gets the set ofSections.- Returns:
- a Set of
Sectionobjects
-
getDecisions
Gets the set of decisions associated with this workspace.- Returns:
- a Set of Decision objects
-
addDecision
Adds a new decision to this documentation.- Parameters:
decision- the Decision object
-
addImage
Adds an image to the documentation.- Parameters:
image- an Image object
-
getImages
Gets the set ofImages in this workspace.- Returns:
- a Set of
Imageobjects
-
isEmpty
public boolean isEmpty() -
clear
public void clear()Removes all documentation, decisions, and images.
-