Skip navigation links
oracle.javatools.xml.esax
Class DynamicElementHandler
java.lang.Object
oracle.javatools.xml.esax.ElementHandler
oracle.javatools.xml.esax.DynamicElementHandler
-
public class DynamicElementHandler
- extends ElementHandler
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sApplicationObjectKey
public final Key sApplicationObjectKey
DynamicElementHandler
public DynamicElementHandler(java.lang.Object rootObject)
DynamicElementHandler
public DynamicElementHandler(java.lang.Object rootObject,
java.lang.ClassLoader classLoader)
DynamicElementHandler
public DynamicElementHandler(java.lang.Object rootObject,
java.lang.ClassLoader classLoader,
ElementTypeResolver resolver)
registerElementTypeResolver
public void registerElementTypeResolver(ElementTypeResolver resolver)
handleStart
public void handleStart(ElementStartContext context)
throws HandlerException
- Description copied from class:
ElementHandler
- Handle the start of an XML element.
-
- Overrides:
handleStart
in class ElementHandler
-
- Parameters:
context
- a context object.
- Throws:
HandlerException
- if an error occurred parsing the context.
handleEnd
public void handleEnd(ElementEndContext context)
throws HandlerException
- Description copied from class:
ElementHandler
- Handle the end of an XML element.
-
- Overrides:
handleEnd
in class ElementHandler
-
- Parameters:
context
- a context object.
- Throws:
HandlerException
- if an error occurred parsing the context.
handleComplexElementStart
protected void handleComplexElementStart(java.lang.Object applicationObject,
ElementStartContext context)
throws HandlerException
-
- Throws:
HandlerException
handleComplexElementEnd
protected void handleComplexElementEnd(ElementEndContext context)
throws HandlerException
-
- Throws:
HandlerException
handleSimpleElementStart
protected void handleSimpleElementStart(ElementStartContext context)
throws HandlerException
-
- Throws:
HandlerException
handleSimpleElementEnd
protected void handleSimpleElementEnd(ElementEndContext context)
throws HandlerException
-
- Throws:
HandlerException
getRuntimeType
protected java.lang.Class getRuntimeType(ElementStartContext context)
throws HandlerException
-
- Throws:
HandlerException
getApplicationObject
protected java.lang.Object getApplicationObject(java.lang.Class runtimeType,
ElementStartContext context)
throws HandlerException
-
- Throws:
HandlerException
attachObject
protected void attachObject(java.lang.Object parent,
java.lang.Object child,
ElementEndContext context)
throws HandlerException
-
- Throws:
HandlerException
attachData
protected void attachData(java.lang.Object parent,
java.lang.String data,
ElementEndContext context)
throws HandlerException
-
- Throws:
HandlerException
invokePreInitialize
protected void invokePreInitialize(java.lang.Object child,
java.lang.Object parent)
throws HandlerException
-
- Throws:
HandlerException
invokePostInitialize
protected void invokePostInitialize(java.lang.Object o)
throws HandlerException
-
- Throws:
HandlerException
findMethod
protected java.lang.reflect.Method findMethod(java.lang.Object o,
java.lang.String elementName,
java.lang.Class[] paramTypes)
throws HandlerException
-
- Throws:
HandlerException
getMethodName
protected java.lang.String getMethodName(java.lang.String prefix,
java.lang.String elementName)
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.