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.

Constructor Summary
XPathProcessorImpl(String name)
           
 
Method Summary
 LocationPathHandler getHandler()
          Returns the current instance of handler that is registered to handle events.
 void processXPath(XPathExpr xpath)
          Processes the specified XPath and calls the registered call back methods.
 void setHandler(LocationPathHandler handler)
          Registers the handler that processes the events generated while parsing the xpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathProcessorImpl

public XPathProcessorImpl(String name)
Method Detail

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.