|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.xineo.xml.handler.ObjectHandler
|
+--net.xineo.xml.handler.ObjectHandlerAdapter
|
+--net.xineo.xml.handler.VirtualHandler
This special handler is able to dynamically instantiate a delegate, and is usefull when a recursion in the schema would produce an infinite recursion during static instantiation of sub handlers. Note that this feature replaces the old "child handler" system.
HandlerFactory| Constructor Summary | |
VirtualHandler(ElementName handledElementName,
java.lang.Class handlerClass)
Creates a new virtual handler given the handled element name and the class of the associated object handler. |
|
VirtualHandler(ElementName handledElementName,
HandlerFactory handlerFactory)
Creates a new virtual handler given the handled element name and the class of the associated object handler. |
|
| Method Summary | |
protected ObjectHandler |
findHandlerByElementName(ElementName elementName)
For internal use |
java.lang.String |
getName()
|
void |
initialize(org.xml.sax.Attributes attributes)
Called when a handled element starts. |
| Methods inherited from class net.xineo.xml.handler.ObjectHandlerAdapter |
endElement, getDelegate, getHandledElement, handlesElement, setDelegate, startElement, subHandlerInitialized, subHandlerTerminated, terminate, text |
| Methods inherited from class net.xineo.xml.handler.ObjectHandler |
addSubHandler, getAsContentHandler, getContext, getParents, getUserContext, setUserContext, toString, transmitContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VirtualHandler(ElementName handledElementName,
java.lang.Class handlerClass)
handledElementName - The handled element namehandlerClass - The class of the object handler, that will be instanciated to handle elements of the given name
public VirtualHandler(ElementName handledElementName,
HandlerFactory handlerFactory)
handledElementName - The handled element name| Method Detail |
public java.lang.String getName()
getName in class ObjectHandler
public void initialize(org.xml.sax.Attributes attributes)
throws HandlerException
ObjectHandlerInterface
initialize in interface ObjectHandlerInterfaceinitialize in class ObjectHandlerAdapterattributes - The attributes of the element that starts
HandlerException - If any error occursprotected ObjectHandler findHandlerByElementName(ElementName elementName)
ObjectHandler
findHandlerByElementName in class ObjectHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||