com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class ModelNode



  • public final class ModelNode
    extends Object

    Provides data for a node of the document's model.

    • Constructor Detail

      • ModelNode

        public ModelNode(StructuredElementProperties properties)

        Initializes a new instance of the ModelNode class.

        Parameters:
        properties - Properties of the document's element.
      • ModelNode

        public ModelNode(TextProperties properties,
                 String text)

        Initializes a new instance of the ModelNode class.

        Parameters:
        properties - Properties of the document's element.
        text - A text of the document's element.
    • Method Detail

      • getProperties

        public StructuredElementProperties getProperties()

        Gets an element's properties.

        Returns:
        An instance of the StructuredElementProperties.
      • getParentNode

        public ModelNode getParentNode()

        Gets a parent node.

        Returns:
        An instance of the ModelNode or null if it's top node.
      • getText

        public String getText()

        Gets a text of the document's element.

        Returns:
        A string that represents a text of the document's element.
      • getCount

        public int getCount()

        Gets a total number of the child nodes.

        Returns:
        An integer value that represents a total number of the child nodes.
      • get_Item

        public ModelNode get_Item(int index)

        Gets a child node.

        Parameters:
        index - A index of the child node.
        Returns:
        An instance of the ModelNode.