net.sf.vex.dom
Class Node

java.lang.Object
  |
  +--net.sf.vex.dom.Node
Direct Known Subclasses:
Element, Text

public class Node
extends java.lang.Object

Node represents a component of an XML document. .


Constructor Summary
Node()
          Class constructor.
 
Method Summary
 Content getContent()
          Returns the document associated with this node.
 int getEndOffset()
          Returns the character offset corresponding to the end of the node.
 Position getEndPosition()
          Returns the Position corresponding to the end of the node.
 int getStartOffset()
          Returns the character offset corresponding to the start of the node.
 Position getStartPosition()
          Returns the Position corresponding to the start of the node.
 java.lang.String getText()
          Returns the text contained by this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()
Class constructor.

Method Detail

getContent

public Content getContent()
Returns the document associated with this node. Null if the node has not yet been inserted into a document.


getEndOffset

public int getEndOffset()
Returns the character offset corresponding to the end of the node.


getEndPosition

public Position getEndPosition()
Returns the Position corresponding to the end of the node.


getStartOffset

public int getStartOffset()
Returns the character offset corresponding to the start of the node.


getStartPosition

public Position getStartPosition()
Returns the Position corresponding to the start of the node.


getText

public java.lang.String getText()
Returns the text contained by this node. If this node is an Element, the text will contain null characters.