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 currentXPathHandlerwhich receives the event callbacks.voidParse an XPath expression, and send event callbacks to anXPathHandler.voidsetXPathHandler(XPathHandler handler) Set theXPathHandlerto receive event callbacks during the parse.
-
Constructor Details
-
XPathReader
public XPathReader()Create a newXPathReaderwith a do-nothingXPathHandler.
-
-
Method Details
-
setXPathHandler
Description copied from interface:SAXPathEventSourceSet theXPathHandlerto receive event callbacks during the parse.- Specified by:
setXPathHandlerin interfaceSAXPathEventSource- Parameters:
handler- the handler to receive callbacks
-
getXPathHandler
Description copied from interface:SAXPathEventSourceRetrieve the currentXPathHandlerwhich receives the event callbacks.- Specified by:
getXPathHandlerin interfaceSAXPathEventSource- Returns:
- the currently installed
XPathHandler
-
parse
Description copied from interface:XPathReaderParse an XPath expression, and send event callbacks to anXPathHandler.- Specified by:
parsein interfaceXPathReader- Parameters:
xpath- the textual XPath expression to parse- Throws:
SAXPathException- if the expression is syntactically incorrect
-