ca.umontreal.iro.rali
Class XPath

java.lang.Object
  extended by ca.umontreal.iro.rali.XPath

public class XPath
extends java.lang.Object

Encapsulates the compilation and matching of an XPath expression Deals internally with exceptions that can be raised at compilation and evaluation


Method Summary
static java.lang.String getXPathProvider()
          Return the name of the XPath processor
static void main(java.lang.String[] args)
          For Unit Testing
 org.w3c.dom.NodeList matches(org.w3c.dom.Node node)
          Check if the XPath matches the node and returns the NodeList of the matching
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getXPathProvider

public static java.lang.String getXPathProvider()
Return the name of the XPath processor

Returns:
string giving the name

matches

public org.w3c.dom.NodeList matches(org.w3c.dom.Node node)
Check if the XPath matches the node and returns the NodeList of the matching

Parameters:
node - starting node
Returns:
list of nodes matching the current XPath

main

public static void main(java.lang.String[] args)
For Unit Testing

Parameters:
args -