Structured Text Toolkit

com.saelist.stx.xpath
Class PairXPath

java.lang.Object
  extended byBaseXPath
      extended bycom.saelist.stx.xpath.PairXPath

public class PairXPath
extends BaseXPath

An XPath implementation for the Stx model.

This is the main entry point for matching an XPath against an Stx tree. You create a compiled XPath object, then match it against one or more context nodes using the #selectNodes method, as in the following example:

 Object stxElement = ...;
 XPath path = new JDOMXPath("a/b/c");
 List results = path.selectNodes(stxElement);
 

See Also:
BaseXPath, Serialized Form

Constructor Summary
PairXPath(java.lang.String xpathExpr)
          Construct given an XPath expression string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairXPath

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

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

Structured Text Toolkit