xpointer
Class EndPoint

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

public class EndPoint
extends java.lang.Object

This class represents the endpoint() XPointer function.


Constructor Summary
EndPoint()
          Creates new EndPoint
 
Method Summary
 org.w3c.dom.ranges.Range getEndPoint(Location location)
          Creates the end-point of the given generic location.
 org.w3c.dom.ranges.Range getEndPoint(org.w3c.dom.Node node)
          Creates the end-point of the given node.
 org.w3c.dom.ranges.Range getEndPoint(org.w3c.dom.ranges.Range range)
          Creates the end-point of the given range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndPoint

public EndPoint()
Creates new EndPoint
Method Detail

getEndPoint

public org.w3c.dom.ranges.Range getEndPoint(Location location)
                                     throws javax.xml.transform.TransformerException
Creates the end-point of the given generic location.
Parameters:
location - a generic location
Returns:
a collapsed range corresponding to the end point of the given location

getEndPoint

public org.w3c.dom.ranges.Range getEndPoint(org.w3c.dom.ranges.Range range)
Creates the end-point of the given range.
Parameters:
range - a range
Returns:
the collapsed range corresponding to the end point of the given range

getEndPoint

public org.w3c.dom.ranges.Range getEndPoint(org.w3c.dom.Node node)
                                     throws javax.xml.transform.TransformerException
Creates the end-point of the given node. If the given node is of type root or element, the container node of the resulting point is the given node and the index is the number of children of the given node. If the given node is of type text, comment or processing istruction, the container node of the resulting point is the given node and the index is the length of the string-value of the given node. If the given node is of type attribute or namespace, the method returns null.
Parameters:
node - a node
Returns:
the collapsed range corresponding to the end point of the given node, null if the given node is of type attribute