org.ws4d.java.io.xml
Class ElementHandlerRegistry

java.lang.Object
  extended by org.ws4d.java.io.xml.ElementHandlerRegistry

public final class ElementHandlerRegistry
extends java.lang.Object


Method Summary
 HashMap getAllElementHandler()
          Give all registered handlers
 ElementHandler getElementHandler(QName elementName)
           
static ElementHandlerRegistry getRegistry()
          Returns the singleton registry instance for the current runtime.
 void registerElementHandler(QName elementName, ElementHandler handler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRegistry

public static ElementHandlerRegistry getRegistry()
Returns the singleton registry instance for the current runtime.

Returns:
the one and only element handler registry instance

registerElementHandler

public void registerElementHandler(QName elementName,
                                   ElementHandler handler)

getElementHandler

public ElementHandler getElementHandler(QName elementName)

getAllElementHandler

public HashMap getAllElementHandler()
Give all registered handlers

Returns:
HashMap that contains all registered element handler.