public class XPathReader extends java.lang.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(java.lang.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)
SAXPathEventSourceXPathHandler to receive
event callbacks during the parse.setXPathHandler in interface SAXPathEventSourcehandler - the handler to receive callbackspublic XPathHandler getXPathHandler()
SAXPathEventSourceXPathHandler
which receives the event callbacks.getXPathHandler in interface SAXPathEventSourceXPathHandlerpublic void parse(java.lang.String xpath)
throws SAXPathException
XPathReaderXPathHandler.parse in interface XPathReaderxpath - the textual XPath expression to parseSAXPathException - if the expression is syntactically incorrect