com.groupdocs.parser.data

Class TocItem



  • public final class TocItem
    extends Object
    Represents the item which is used in the table of contents extraction functionality.

    An instance of TocItem class is used as return value of Parser.getToc() method. See the usage examples there.

    • Constructor Detail

      • TocItem

        public TocItem(int depth,
               String text,
               Integer pageIndex)
        Initializes a new instance of the TocItem class.
        Parameters:
        depth - The depth level of the item.
        text - The text of the item.
        pageIndex - The index of the page referenced by the item
    • Method Detail

      • getDepth

        public int getDepth()
        Gets the depth level.
        Returns:
        An integer value that represents the depth level of the item.
      • getText

        public String getText()
        Gets the text.
        Returns:
        A string value that represents the text of the item.
      • getPageIndex

        public Integer getPageIndex()
        Gets the page index.
        Returns:
        An integer value that represents the index of the page referenced by the item; null if it isn't set.