public class ObjectDeserializationHandler extends AbstractDeserializationHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.Object> |
args |
protected java.lang.Class |
clazz |
protected java.lang.String |
methodName |
protected java.lang.Class[] |
methodSig |
object, refId| Constructor and Description |
|---|
ObjectDeserializationHandler() |
| Modifier and Type | Method and Description |
|---|---|
DeserializationHandler |
clone()
Clones this handler.
|
void |
endElement(DeserializationContext context)
Notifies the handler that their element has ended.
|
void |
endObject(java.lang.Object obj)
Notifies the handler that an object tag was found and deserialized within their scope
|
void |
endSubElement(java.lang.String name,
DeserializationContext context)
Notifies the handler that a sub-element has ended
|
Decoder<?> |
getBodyDecoder()
Called when body data is encountered in this tag or a sub-tag.
|
java.lang.String |
getElementName()
Returns the name of the element type that this handler ...
|
void |
onBody(java.lang.Object body)
Called when body data is encountered in this tag or a sub-tag.
|
void |
startElement(java.lang.String name,
AttributesMap attr,
DeserializationContext context)
Notifies the handler that their element has started.
|
void |
startSubElement(java.lang.String name,
AttributesMap attributes,
DeserializationContext context)
Notifies the handler that a sub-element has started.
|
boolean |
supportsNestedElements()
Return true if the element type that you're parsing can have nested elements, or false if you're a singleton
element.
|
getObject, getRefId, setObject, setRefIdprotected java.lang.Class clazz
protected java.util.List<java.lang.Object> args
protected java.lang.String methodName
protected java.lang.Class[] methodSig
public void startElement(java.lang.String name,
AttributesMap attr,
DeserializationContext context)
throws java.lang.Exception
DeserializationHandlerjava.lang.Exceptionpublic void onBody(java.lang.Object body)
DeserializationHandlerDeserializationHandler.getBodyDecoder()), and then this function will be called.public Decoder<?> getBodyDecoder()
DeserializationHandlerDeserializationHandler.onBody(Object)public void endElement(DeserializationContext context) throws java.lang.Exception
DeserializationHandlerjava.lang.Exceptionpublic void endObject(java.lang.Object obj)
DeserializationHandlerendObject in interface DeserializationHandlerendObject in class AbstractDeserializationHandlerpublic void endSubElement(java.lang.String name,
DeserializationContext context)
throws java.lang.Exception
DeserializationHandlerendSubElement in interface DeserializationHandlerendSubElement in class AbstractDeserializationHandlerjava.lang.Exceptionpublic void startSubElement(java.lang.String name,
AttributesMap attributes,
DeserializationContext context)
throws java.lang.Exception
DeserializationHandlerstartSubElement in interface DeserializationHandlerstartSubElement in class AbstractDeserializationHandlerjava.lang.Exceptionpublic java.lang.String getElementName()
DeserializationHandlerpublic DeserializationHandler clone()
DeserializationHandlerclone in interface DeserializationHandlerclone in class AbstractDeserializationHandlerpublic boolean supportsNestedElements()
DeserializationHandlerReturn true if the element type that you're parsing can have nested elements, or false if you're a singleton element. If you return true, you need to implement clone().
Note As of Ignition 7.6.5 with support for multi-deserialization, you should also return true from this and implement clone() if your return object is mutable, otherwise instances may be shared amongst multi-deserialized objects.