public class XPathReader extends Object implements XPathReader
XPathReader
which
generates callbacks to an XPathHandler
.Constructor and Description |
---|
XPathReader()
Create a new
XPathReader with a do-nothing
XPathHandler . |
Modifier and Type | Method and Description |
---|---|
XPathHandler |
getXPathHandler()
Retrieve the current
XPathHandler
which receives the event callbacks. |
void |
parse(String xpath)
Parse an XPath expression,
and send event callbacks to an
XPathHandler . |
void |
setXPathHandler(XPathHandler handler)
Set the
XPathHandler to receive
event callbacks during the parse. |
public XPathReader()
XPathReader
with a do-nothing
XPathHandler
.public void setXPathHandler(XPathHandler handler)
SAXPathEventSource
XPathHandler
to receive
event callbacks during the parse.setXPathHandler
in interface SAXPathEventSource
handler
- the handler to receive callbackspublic XPathHandler getXPathHandler()
SAXPathEventSource
XPathHandler
which receives the event callbacks.getXPathHandler
in interface SAXPathEventSource
XPathHandler
public void parse(String xpath) throws SAXPathException
XPathReader
XPathHandler
.parse
in interface XPathReader
xpath
- the textual XPath expression to parseSAXPathException
- if the expression is syntactically incorrectCopyright © 2001–2019 The Jaxen Project. All rights reserved.