xpointer
Class TaxDomHelper

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

public class TaxDomHelper
extends java.lang.Object

The DOMHelper of the xpath package provides some useful operations that act on nodes. The purpose of this class is providing the same operations for locations. A better name of this class should be ExtDomHelper.


Constructor Summary
TaxDomHelper(org.apache.xpath.DOMHelper domHelper)
          Creates new TaxDomHelper
 
Method Summary
 boolean isLocationAfter(Location loc1, Location loc2)
          Figures out whether loc2 should be considered as being later in the document than loc1, in Document Order ad defined in XPointer CR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxDomHelper

public TaxDomHelper(org.apache.xpath.DOMHelper domHelper)
Creates new TaxDomHelper
Parameters:
domHelper - the standard DOMHelper
Method Detail

isLocationAfter

public boolean isLocationAfter(Location loc1,
                               Location loc2)
Figures out whether loc2 should be considered as being later in the document than loc1, in Document Order ad defined in XPointer CR.
Parameters:
loc1 - the location to perform position comparison on
loc2 - the location to perform position comparison on
Returns:
false if loc2 comes before loc1,otherwise returns true