xpointer
Class TextPoint

java.lang.Object
  |
  +--xpointer.TextPoint

public class TextPoint
extends java.lang.Object

This class represents a character point according to the XPointer CR. It has a container text node and an index.


Constructor Summary
TextPoint(TextTree textTree)
          Creates new TextPoint
 
Method Summary
 org.w3c.dom.Node getContainer()
          Getter for property container.
 int getIndex()
          Getter for property index.
protected  TextTree getTextTree()
          Returns the tree which the point belongs to.
 int retrievePrecedingCharacters()
          Returns the number of characters preceding the point inside its tree.
 void setContainer(org.w3c.dom.Node container)
          Setter for property container.
 void setIndex(int index)
          Setter for property index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPoint

public TextPoint(TextTree textTree)
Creates new TextPoint
Parameters:
the - tree which the point belongs to.
Method Detail

getContainer

public org.w3c.dom.Node getContainer()
Getter for property container.
Returns:
Value of property container.

setContainer

public void setContainer(org.w3c.dom.Node container)
Setter for property container.
Parameters:
container - New value of property container.

getIndex

public int getIndex()
Getter for property index.
Returns:
Value of property index.

setIndex

public void setIndex(int index)
Setter for property index.
Parameters:
index - New value of property index.

retrievePrecedingCharacters

public int retrievePrecedingCharacters()
Returns the number of characters preceding the point inside its tree.

getTextTree

protected TextTree getTextTree()
Returns the tree which the point belongs to.