com.ricebridge.xmlman.in
Class TreeNode

java.lang.Object
  extended bycom.ricebridge.xmlman.in.TreeNode

public class TreeNode
extends Object

Represents a point in the document node tree.


Constructor Summary
TreeNode(NameInfo pName, int pDepth, String pLang)
          Create a TreeNode representing an XML element.
TreeNode(String pText, boolean pNamespaceAware)
          Create a TreeNode representing a text node.
 
Method Summary
 TreeNode duplicate()
          Copy this TreeNode.
 boolean equals(Object pOther)
          Define node equality, includes value.
 int getChildPosition()
          Get the position of this node relative to its siblings.
 int getDepth()
          Get the document depth at which the element for this node occurs.
 String getLang()
          Get the language code of this node.
 NameInfo getName()
          Get the element name of this node.
 Object getValue()
          Get this value of this node.
 void incrementPosition(NameInfo pName)
          Increment the position of a child element.
 boolean isFixed()
          Return fixed value status.
 void setFixed(boolean pFixed)
          Fix the value of a text field so that following siblings won't alter it (unless they match).
 void setValue(Object pValue)
          Set the value of this node.
 String toDebugString()
          Debugging description.
 String toString()
          String value of node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode(String pText,
                boolean pNamespaceAware)
Create a TreeNode representing a text node.


TreeNode

public TreeNode(NameInfo pName,
                int pDepth,
                String pLang)
Create a TreeNode representing an XML element.

Method Detail

duplicate

public TreeNode duplicate()
Copy this TreeNode.


getName

public NameInfo getName()
Get the element name of this node.


getDepth

public int getDepth()
Get the document depth at which the element for this node occurs.


getChildPosition

public int getChildPosition()
Get the position of this node relative to its siblings.


incrementPosition

public void incrementPosition(NameInfo pName)
Increment the position of a child element.


setValue

public void setValue(Object pValue)
Set the value of this node.


getValue

public Object getValue()
Get this value of this node.


setFixed

public void setFixed(boolean pFixed)
Fix the value of a text field so that following siblings won't alter it (unless they match).


isFixed

public boolean isFixed()
Return fixed value status.


getLang

public String getLang()
Get the language code of this node.


toString

public String toString()
String value of node.


toDebugString

public String toDebugString()
Debugging description.


equals

public boolean equals(Object pOther)
Define node equality, includes value.



Copyright © 2004-2005 Ricebridge