public class DynamicElementHandler extends ElementHandler
Modifier and Type | Field and Description |
---|---|
Key |
sApplicationObjectKey |
Constructor and Description |
---|
DynamicElementHandler(java.lang.Object rootObject) |
DynamicElementHandler(java.lang.Object rootObject,
java.lang.ClassLoader classLoader) |
DynamicElementHandler(java.lang.Object rootObject,
java.lang.ClassLoader classLoader,
ElementTypeResolver resolver) |
Modifier and Type | Method and Description |
---|---|
protected void |
attachData(java.lang.Object parent,
java.lang.String data,
ElementEndContext context) |
protected void |
attachObject(java.lang.Object parent,
java.lang.Object child,
ElementEndContext context) |
protected java.lang.reflect.Method |
findMethod(java.lang.Object o,
java.lang.String elementName,
java.lang.Class[] paramTypes) |
protected java.lang.Object |
getApplicationObject(java.lang.Class runtimeType,
ElementStartContext context) |
protected java.lang.String |
getMethodName(java.lang.String prefix,
java.lang.String elementName) |
protected java.lang.Class |
getRuntimeType(ElementStartContext context) |
protected void |
handleComplexElementEnd(ElementEndContext context) |
protected void |
handleComplexElementStart(java.lang.Object applicationObject,
ElementStartContext context) |
void |
handleEnd(ElementEndContext context)
Handle the end of an XML element.
|
protected void |
handleSimpleElementEnd(ElementEndContext context) |
protected void |
handleSimpleElementStart(ElementStartContext context) |
void |
handleStart(ElementStartContext context)
Handle the start of an XML element.
|
protected void |
invokePostInitialize(java.lang.Object o) |
protected void |
invokePreInitialize(java.lang.Object child,
java.lang.Object parent) |
void |
registerElementTypeResolver(ElementTypeResolver resolver) |
public final Key sApplicationObjectKey
public DynamicElementHandler(java.lang.Object rootObject)
public DynamicElementHandler(java.lang.Object rootObject, java.lang.ClassLoader classLoader)
public DynamicElementHandler(java.lang.Object rootObject, java.lang.ClassLoader classLoader, ElementTypeResolver resolver)
public void registerElementTypeResolver(ElementTypeResolver resolver)
public void handleStart(ElementStartContext context) throws HandlerException
ElementHandler
handleStart
in class ElementHandler
context
- a context object.HandlerException
- if an error occurred parsing the context.public void handleEnd(ElementEndContext context) throws HandlerException
ElementHandler
handleEnd
in class ElementHandler
context
- a context object.HandlerException
- if an error occurred parsing the context.protected void handleComplexElementStart(java.lang.Object applicationObject, ElementStartContext context) throws HandlerException
HandlerException
protected void handleComplexElementEnd(ElementEndContext context) throws HandlerException
HandlerException
protected void handleSimpleElementStart(ElementStartContext context) throws HandlerException
HandlerException
protected void handleSimpleElementEnd(ElementEndContext context) throws HandlerException
HandlerException
protected java.lang.Class getRuntimeType(ElementStartContext context) throws HandlerException
HandlerException
protected java.lang.Object getApplicationObject(java.lang.Class runtimeType, ElementStartContext context) throws HandlerException
HandlerException
protected void attachObject(java.lang.Object parent, java.lang.Object child, ElementEndContext context) throws HandlerException
HandlerException
protected void attachData(java.lang.Object parent, java.lang.String data, ElementEndContext context) throws HandlerException
HandlerException
protected void invokePreInitialize(java.lang.Object child, java.lang.Object parent) throws HandlerException
HandlerException
protected void invokePostInitialize(java.lang.Object o) throws HandlerException
HandlerException
protected java.lang.reflect.Method findMethod(java.lang.Object o, java.lang.String elementName, java.lang.Class[] paramTypes) throws HandlerException
HandlerException
protected java.lang.String getMethodName(java.lang.String prefix, java.lang.String elementName)