Class Node

Direct Known Subclasses:
ListItem, Paragraph, Section, Table, TableCell, TableRow

public class Node extends NodeBase
  • Field Details

    • IMPORTANCE_REGULAR

      public static final int IMPORTANCE_REGULAR
      See Also:
    • type

      protected final Node.Type type
    • subnodes

      protected Node[] subnodes
    • extraInfo

      public ExtraInfo extraInfo
    • importance

      protected int importance
    • empty

      protected boolean empty
  • Method Details

    • getType

      public Node.Type getType()
    • getParentNode

      public Node getParentNode()
    • setParentNode

      protected void setParentNode(Node node)
    • getSubnodes

      public final Node[] getSubnodes()
    • setSubnodes

      public void setSubnodes(Node[] subnodes)
    • getSubnode

      public final Node getSubnode(int index)
    • getSubnodeCount

      public final int getSubnodeCount()
    • noSubnodes

      public final boolean noSubnodes()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasNodeInAllParents

      public final boolean hasNodeInAllParents(Node toCheck)
    • isInTable

      public final boolean isInTable(Table table)
    • getCompleteText

      public String getCompleteText()
    • noText

      public boolean noText()
    • getParentType

      public Node.Type getParentType()
      Returns:
      -1 if there is no a parent node or there is a consistency error
    • getIndexInParentSubnodes

      public int getIndexInParentSubnodes()
      Returns:
      -1 if it is impossible to understand;
    • getImportance

      public int getImportance()
    • setImportance

      public void setImportance(int importance)
    • addSubnode

      public void addSubnode(Node subnode)
    • arrangeListItems

      protected void arrangeListItems()
    • allSubnodesSingleLine

      public boolean allSubnodesSingleLine()