Class PreDefinedSection
java.lang.Object
io.spring.initializr.generator.spring.documentation.PreDefinedSection
- All Implemented Interfaces:
Section
- Direct Known Subclasses:
GettingStartedSection
Section that is pre-defined and always present in the document. You can only add
additional sections to pre-defined sections.
- Author:
- Madhura Bhave
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSection
(Section section) boolean
isEmpty()
resolveSubSections
(List<Section> sections) Resolve the sections to render based on the current registered sections.void
write
(PrintWriter writer) Write the content of the section to the specifiedwriter
.
-
Constructor Details
-
PreDefinedSection
-
-
Method Details
-
addSection
-
write
Description copied from interface:Section
Write the content of the section to the specifiedwriter
.- Specified by:
write
in interfaceSection
- Parameters:
writer
- the writer to use- Throws:
IOException
- if writing the section failed
-
isEmpty
public boolean isEmpty() -
resolveSubSections
Resolve the sections to render based on the current registered sections.- Parameters:
sections
- the registered sections- Returns:
- the sections to render
-