xpointer
Class RangeInside

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

public class RangeInside
extends java.lang.Object


Constructor Summary
RangeInside()
          Creates new RangeInside
 
Method Summary
 org.w3c.dom.ranges.Range getRangeInside(Location location)
          Creates a range that covers the contents of a generic location.
 org.w3c.dom.ranges.Range getRangeInside(org.w3c.dom.Node node)
          Creates a range tha covers the contents of a given node.
 org.w3c.dom.ranges.Range getRangeInside(org.w3c.dom.ranges.Range range)
          Creates a range tha covers the contents of a given range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeInside

public RangeInside()
Creates new RangeInside
Method Detail

getRangeInside

public org.w3c.dom.ranges.Range getRangeInside(Location location)
                                        throws javax.xml.transform.TransformerException
Creates a range that covers the contents of a generic location.
Parameters:
location - a location
Returns:
a range covering the contents of the location

getRangeInside

public org.w3c.dom.ranges.Range getRangeInside(org.w3c.dom.ranges.Range range)
Creates a range tha covers the contents of a given range.
Parameters:
range - a range
Returns:
the same range

getRangeInside

public org.w3c.dom.ranges.Range getRangeInside(org.w3c.dom.Node node)
Creates a range tha covers the contents of a given node. The container node of the start point and of the end point of the resulting range is the node passed as an argument. The index of the start point is zero. If the end point is a character point then its index is the length if the string-value of the node passed as an argument; otherwise its index is is the number of children of the given node.
Returns:
a range covering the contents of the node