xpointer
Class StartPoint

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

public class StartPoint
extends java.lang.Object


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

Constructor Detail

StartPoint

public StartPoint()
Creates new StartPoint
Method Detail

getStartPoint

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

getStartPoint

public org.w3c.dom.ranges.Range getStartPoint(org.w3c.dom.Node node)
                                       throws javax.xml.transform.TransformerException
Creates the start point of the given node. If the given node is of type attribute, the method returns null. For any other kind of node, the container node of resulting point is the given node and the index is zero.
Parameters:
node - a node
Returns:
the collapsed range corresponding to the start point of the given node, null if the given node is of type attribute