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) booleanisEmpty()resolveSubSections(List<Section> sections) Resolve the sections to render based on the current registered sections.voidwrite(PrintWriter writer) Write the content of the section to the specifiedwriter.
-
Constructor Details
-
PreDefinedSection
-
-
Method Details
-
addSection
-
write
Description copied from interface:SectionWrite the content of the section to the specifiedwriter.- Specified by:
writein 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
-