Class XmlTreeNode

All Implemented Interfaces:
Serializable, Cloneable, Comparable<SourceTreeNode>, MutableTreeNode, TreeNode

public class XmlTreeNode extends SourceTreeNode
The tree node in XmlOutlineTrees.
Version:
1.0
See Also:
  • Field Details

  • Constructor Details

    • XmlTreeNode

      public XmlTreeNode(String name)
  • Method Details

    • containsOffset

      public boolean containsOffset(int offs)
      Returns whether this tree node contains a specific offset.
      Parameters:
      offs - An offset in the document.
      Returns:
      Whether this node contains that offset.
    • getElement

      public String getElement()
    • getEndOffset

      public int getEndOffset()
    • getMainAttr

      public String getMainAttr()
    • getStartOffset

      public int getStartOffset()
    • setEndOffset

      public void setEndOffset(Position pos)
    • setMainAttribute

      public void setMainAttribute(String attr)
    • setStartOffset

      public void setStartOffset(Position pos)
    • toString

      public String toString()
      Returns a string representation of this tree node.
      Overrides:
      toString in class DefaultMutableTreeNode
      Returns:
      A string representation of this tree node.