org.translet.processor
Class XPathProcessorImpl
java.lang.Object
|
+--org.translet.processor.XPathProcessorImpl
- All Implemented Interfaces:
- XPathProcessor
- public class XPathProcessorImpl
- extends Object
- implements XPathProcessor
Default implementation of the XPathProcessor.
- Author:
- Karthikeyan Mariappan.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathProcessorImpl
public XPathProcessorImpl(String name)
processXPath
public void processXPath(XPathExpr xpath)
throws ProcessException
- Description copied from interface:
XPathProcessor
- Processes the specified XPath and calls the
registered call back methods.
- Specified by:
processXPath
in interface XPathProcessor
- Following copied from interface:
org.translet.processor.XPathProcessor
- Parameters:
xpath
- The xpath to be processed.
setHandler
public void setHandler(LocationPathHandler handler)
- Description copied from interface:
XPathProcessor
- Registers the handler that processes the
events generated while parsing the xpath.
- Specified by:
setHandler
in interface XPathProcessor
- Following copied from interface:
org.translet.processor.XPathProcessor
- Parameters:
handler
- to processes the xpath events.
getHandler
public LocationPathHandler getHandler()
- Description copied from interface:
XPathProcessor
- Returns the current instance of handler that
is registered to handle events.
- Specified by:
getHandler
in interface XPathProcessor
- Following copied from interface:
org.translet.processor.XPathProcessor
- Returns:
- handler to processes the xpath events.