com.ricebridge.xmlman.in
Class TreeContext

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

public class TreeContext
extends Object

Represents position of parse state in element tree.


Constructor Summary
TreeContext(boolean pNamespaceAware)
          Create a namespace aware/unaware TreeContext.
 
Method Summary
 void ascend(EndPoint pEndPoint)
          Reverse towards trunk.
 void descend(StartPoint pStartPoint)
          Follow a deeper branch.
 TreeNode getContextNode()
          Get a TreeNode representing current position in tree.
 int getDepth()
          Get tree depth, that is, number of child levels.
 int getPosition()
          Get sibling position.
 String toString()
          Debugging description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeContext

public TreeContext(boolean pNamespaceAware)
Create a namespace aware/unaware TreeContext.

Method Detail

descend

public void descend(StartPoint pStartPoint)
Follow a deeper branch.


ascend

public void ascend(EndPoint pEndPoint)
Reverse towards trunk.


getDepth

public int getDepth()
Get tree depth, that is, number of child levels.


getPosition

public int getPosition()
Get sibling position.


getContextNode

public TreeNode getContextNode()
Get a TreeNode representing current position in tree.


toString

public String toString()
Debugging description.



Copyright © 2004-2005 Ricebridge