Structured Text Toolkit

com.saelist.stx.xpath
Class FileXPath

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

public class FileXPath
extends BaseXPath

An XPath implementation for the File model.

This is the main entry point for matching an XPath against an File 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 File = ...;
 XPath path = new FileXPath("a/b/c");
 List results = path.selectNodes(File);
 

See Also:
BaseXPath, Serialized Form

Constructor Summary
FileXPath(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

FileXPath

public FileXPath(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