Class SectionImpl

All Implemented Interfaces:
ContentNode, Section, StructuralNode

public class SectionImpl extends StructuralNodeImpl implements Section
  • Constructor Details

    • SectionImpl

      public SectionImpl(org.jruby.runtime.builtin.IRubyObject blockDelegate)
  • Method Details

    • index

      @Deprecated public int index()
      Deprecated.
      Specified by:
      index in interface Section
      Returns:
      the 0-based index order of this section within the parent block
    • getIndex

      public int getIndex()
      Specified by:
      getIndex in interface Section
      Returns:
      the 0-based index order of this section within the parent block
    • number

      @Deprecated public int number()
      Deprecated.
      Specified by:
      number in interface Section
      Returns:
      the number of this section within the parent block
    • getNumber

      @Deprecated public int getNumber()
      Deprecated.
      Specified by:
      getNumber in interface Section
      Returns:
      the number of this section within the parent block
    • getNumeral

      public String getNumeral()
      Description copied from interface: Section
      Section numeral. This is a roman numeral for book parts, arabic numeral for regular sections, and a letter for special sections.
      Specified by:
      getNumeral in interface Section
      Returns:
      the section numeral
    • sectname

      @Deprecated public String sectname()
      Deprecated.
      Specified by:
      sectname in interface Section
      Returns:
      the section name of this section
    • getSectionName

      public String getSectionName()
      Specified by:
      getSectionName in interface Section
      Returns:
      the section name of this section
    • special

      @Deprecated public boolean special()
      Deprecated.
      Specified by:
      special in interface Section
      Returns:
      Get the flag to indicate whether this is a special section or a child of one
    • isSpecial

      public boolean isSpecial()
      Specified by:
      isSpecial in interface Section
      Returns:
      Get the flag to indicate whether this is a special section or a child of one
    • numbered

      @Deprecated public boolean numbered()
      Deprecated.
      Specified by:
      numbered in interface Section
      Returns:
      the state of the numbered attribute at this section (need to preserve for creating TOC)
    • isNumbered

      public boolean isNumbered()
      Specified by:
      isNumbered in interface Section
      Returns:
      the state of the numbered attribute at this section (need to preserve for creating TOC)