|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xpath.XPath
public class XPath
Represents an XPath expression. See package description for
information about what is supported and what is not, as well
as a brief overview of the design.
A simple usage example:
Navigator nav = new XMLStoreNavigator();
DocNode node = new DocNode(...get node from XML Store...);
XPath xpath = new XPath("child::node()", nav);
XObject result = xpath.evaluate(node);
| Constructor Summary | |
|---|---|
XPath(String expr,
Navigator nav)
Construct a new XPath from the given string expression and set it to use the specified navigator. |
|
| Method Summary | |
|---|---|
XObject |
evaluate(Context ctxt,
Environment env)
Evaluate this XPath expression using the specified context and environment. |
XObject |
evaluate(Object ctxtNode)
Evaluate this XPath expression using the specified context node. |
XObject |
evaluate(Object ctxtNode,
Environment env)
Evaluate this XPath expression using the specified context node and environment. |
String |
toString()
Returns the expression as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XPath(String expr,
Navigator nav)
throws XPathException
XPathException| Method Detail |
|---|
public XObject evaluate(Context ctxt,
Environment env)
throws XPathException
XPathException
public XObject evaluate(Object ctxtNode,
Environment env)
throws XPathException
XPathException
public XObject evaluate(Object ctxtNode)
throws XPathException
XPathExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||