Package org.jaxen.saxpath.base
Class XPathReader
java.lang.Object
org.jaxen.saxpath.base.XPathReader
- All Implemented Interfaces:
SAXPathEventSource
,XPathReader
Implementation of SAXPath's
XPathReader
which
generates callbacks to an XPathHandler
.- Author:
- bob mcwhirter (bob@werken.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the currentXPathHandler
which receives the event callbacks.void
Parse an XPath expression, and send event callbacks to anXPathHandler
.void
setXPathHandler
(XPathHandler handler) Set theXPathHandler
to receive event callbacks during the parse.
-
Constructor Details
-
XPathReader
public XPathReader()Create a newXPathReader
with a do-nothingXPathHandler
.
-
-
Method Details
-
setXPathHandler
Description copied from interface:SAXPathEventSource
Set theXPathHandler
to receive event callbacks during the parse.- Specified by:
setXPathHandler
in interfaceSAXPathEventSource
- Parameters:
handler
- the handler to receive callbacks
-
getXPathHandler
Description copied from interface:SAXPathEventSource
Retrieve the currentXPathHandler
which receives the event callbacks.- Specified by:
getXPathHandler
in interfaceSAXPathEventSource
- Returns:
- the currently installed
XPathHandler
-
parse
Description copied from interface:XPathReader
Parse an XPath expression, and send event callbacks to anXPathHandler
.- Specified by:
parse
in interfaceXPathReader
- Parameters:
xpath
- the textual XPath expression to parse- Throws:
SAXPathException
- if the expression is syntactically incorrect
-