Class PreDefinedSection

java.lang.Object
io.spring.initializr.generator.spring.documentation.PreDefinedSection
All Implemented Interfaces:
Section
Direct Known Subclasses:
GettingStartedSection

public class PreDefinedSection extends Object implements Section
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 Details

    • PreDefinedSection

      public PreDefinedSection(String title)
  • Method Details

    • addSection

      public PreDefinedSection addSection(Section section)
    • write

      public void write(PrintWriter writer) throws IOException
      Description copied from interface: Section
      Write the content of the section to the specified writer.
      Specified by:
      write in interface Section
      Parameters:
      writer - the writer to use
      Throws:
      IOException - if writing the section failed
    • isEmpty

      public boolean isEmpty()
    • resolveSubSections

      protected List<Section> resolveSubSections(List<Section> sections)
      Resolve the sections to render based on the current registered sections.
      Parameters:
      sections - the registered sections
      Returns:
      the sections to render