com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class TextItem



  • public final class TextItem
    extends Object

    Provides a text item.

    • Constructor Detail

      • TextItem

        public TextItem(String text)

        Initializes a new instance of the TextItem class.

        Parameters:
        text - A text of the item.
      • TextItem

        public TextItem(String text,
                String hyperlink)

        Initializes a new instance of the TextItem class.

        Parameters:
        text - A text of the item.
        hyperlink - A hyperlink.
      • TextItem

        public TextItem(String text,
                TextItemOptions options)

        Initializes a new instance of the TextItem class.

        Parameters:
        text - A text of the item.
        options - A options of the item.
      • TextItem

        public TextItem(String text,
                String hyperlink,
                TextItemOptions options)

        Initializes a new instance of the TextItem class.

        Parameters:
        text - A text of the item.
        hyperlink - A hyperlink.
        options - A options of the item.
    • Method Detail

      • getText

        public String getText()

        Gets a text of the item.

        Returns:
        A text of the item.
      • getHyperlink

        public String getHyperlink()

        Gets a hyperlink of the item.

        Returns:
        A hyperlink of the item.
      • isHyperlink

        public boolean isHyperlink()

        Gets a value indicating whether the item is hyperlink.

        Returns:
        A boolean true if the item is hyperlink; otherwise, false.
      • getNextItem

        public TextItem getNextItem()

        Gets a next item.

        Returns:
        A next item in the sequence; null if is the last item of the sequence.
      • isLast

        public boolean isLast()

        Gets a value indicating whether item is the last item of the sequence.

        Returns:
        A boolean if item is the last item of the sequence; otherwise, false.
      • getOptions

        public TextItemOptions getOptions()

        Gets a options of the item.

        Returns:
        A options of the item.
      • addText

        public TextItem addText(String itemText)

        Adds a text to the item.

        Parameters:
        itemText - A text to add.
        Returns:
        An instance of the TextItem in which a text was added.
      • addText

        public TextItem addText(String itemText,
                       String itemHyperlink)

        Adds a text to the item.

        Parameters:
        itemText - A text to add.
        itemHyperlink - A hyperlink.
        Returns:
        An instance of the TextItem in which a text was added.
      • addText

        public TextItem addText(String itemText,
                       TextItemOptions itemOptions)

        Adds a text to the item.

        Parameters:
        itemText - A text to add.
        itemOptions - A options of the text.
        Returns:
        An instance of the TextItem in which a text was added.
      • addText

        public TextItem addText(String itemText,
                       String itemHyperlink,
                       TextItemOptions itemOptions)

        Adds a text to the item.

        Parameters:
        itemText - A text to add.
        itemHyperlink - A hyperlink.
        itemOptions - A options of the text.
        Returns:
        An instance of the TextItem in which a text was added.