org.jaxen.javabean
public class JavaBeanXPath extends BaseXPath
This is the main entry point for matching an XPath against a JavaBean tree. You create a compiled XPath object, then match it against one or more context nodes using the JavaBeanXPath method, as in the following example:
Node node = ...; XPath path = new JavaBeanXPath("a/b/c"); List results = path.selectNodes(node);
Version: $Revision: 1.6 $
Field Summary | |
---|---|
static long | serialVersionUID |
Constructor Summary | |
---|---|
JavaBeanXPath(String xpathExpr) Construct given an XPath expression string.
|
Method Summary | |
---|---|
Object | evaluate(Object node) |
protected Context | getContext(Object node) |
Parameters: xpathExpr The XPath expression.
Throws: JaxenException if there is a syntax error while parsing the expression