com.jaxfront.core.xpath
Class TypeXPath

java.lang.Object
  extended by org.jaxen.BaseXPath
      extended by com.jaxfront.core.xpath.TypeXPath
All Implemented Interfaces:
java.io.Serializable, org.jaxen.XPath

public class TypeXPath
extends org.jaxen.BaseXPath

An XPath implementation for the W3C DOM model

This is the main entry point for matching an XPath against a DOM tree. You create a compiled XPath object, then match it against one or more context nodes using the BaseXPath.selectNodes(java.lang.Object) method, as in the following example:

 XPath path = new DOMXPath("a/b/c");
 List results = path.selectNodes(domNode);
 

Author:
James Strachan, bob mcwhirter
See Also:
BaseXPath, Serialized Form

Constructor Summary
TypeXPath(java.lang.String xpathExpr)
          Construct given an XPath expression string.
TypeXPath(java.lang.String xpathExpr, org.jaxen.DefaultNavigator navigator)
           
 
Method Summary
 
Methods inherited from class org.jaxen.BaseXPath
addNamespace, booleanValueOf, debug, evaluate, getFunctionContext, getNamespaceContext, getNavigator, getRootExpr, getVariableContext, numberValueOf, selectNodes, selectSingleNode, setFunctionContext, setNamespaceContext, setVariableContext, stringValueOf, toString, valueOf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeXPath

public TypeXPath(java.lang.String xpathExpr)
          throws org.jaxen.JaxenException
Construct given an XPath expression string.

Parameters:
xpathExpr - The XPath expression.
Throws:
org.jaxen.JaxenException - if there is a syntax error while parsing the expression.

TypeXPath

public TypeXPath(java.lang.String xpathExpr,
                 org.jaxen.DefaultNavigator navigator)
          throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException