Class SectionBlock

java.lang.Object
org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
org.apache.maven.doxia.module.twiki.parser.SectionBlock
All Implemented Interfaces:
Block

public class SectionBlock extends AbstractFatherBlock
Block that represents a section
  • Field Details

    • title

      private final String title
    • level

      private final int level
  • Constructor Details

    • SectionBlock

      public SectionBlock(String title, int level, Block[] blocks)
      Creates the SectionBlock.
      Parameters:
      title - the section title, cannot be null
      level - the section level: 0 < level < 6
      blocks - child blocks, cannot be null
  • Method Details

    • before

      final void before(Sink sink)
      method called before traversing the childs
      Specified by:
      before in class AbstractFatherBlock
      Parameters:
      sink - a sink to fill
    • after

      final void after(Sink sink)
      method called after traversing the childs
      Specified by:
      after in class AbstractFatherBlock
      Parameters:
      sink - a sink to fill
    • sectionStart

      private void sectionStart(Sink sink)
      call to sink.section()
      Parameters:
      sink - sink
    • sectionEnd

      private void sectionEnd(Sink sink)
      call to sink.section_()
      Parameters:
      sink - sink
    • invokeVoidVoid

      private void invokeVoidVoid(Sink sink, String name)
      Let you call sink's methods that returns null and have no parameters.
      Parameters:
      sink - the Sink
      name - the name of the method to call
    • getLevel

      public final int getLevel()
      Returns the level.
      Returns:
      int with the level.
    • getTitle

      public final String getTitle()
      Returns the title.
      Returns:
      String with the title.
    • toString

      public final String toString()
      Overrides:
      toString in class Object
      Returns:
      a String object.
    • sectionTitle

      private void sectionTitle(Sink sink)
      Parameters:
      sink -
    • sectionTitle_

      private void sectionTitle_(Sink sink)
      Parameters:
      sink -