public abstract class AbstractBodyDecoderHandler extends AbstractReentrantDeserializationHandler
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
elementName |
objectTL, refTL
object, refId
Modifier | Constructor and Description |
---|---|
protected |
AbstractBodyDecoderHandler(java.lang.String elementName) |
Modifier and Type | Method and Description |
---|---|
DeserializationHandler |
clone()
Clones this handler.
|
protected java.lang.Object |
createNoBodyObject() |
void |
endElement(DeserializationContext context)
Notifies the handler that their element has ended.
|
java.lang.String |
getElementName()
Returns the name of the element type that this handler ...
|
void |
onBody(java.lang.Object bodyObject)
Called when body data is encountered in this tag or a sub-tag.
|
void |
startElement(java.lang.String name,
AttributesMap attributes,
DeserializationContext context)
Notifies the handler that their 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, setRefId
endObject, endSubElement, startSubElement
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBodyDecoder
protected AbstractBodyDecoderHandler(java.lang.String elementName)
public void startElement(java.lang.String name, AttributesMap attributes, DeserializationContext context) throws java.lang.Exception
DeserializationHandler
java.lang.Exception
public void endElement(DeserializationContext context) throws java.lang.Exception
DeserializationHandler
java.lang.Exception
public void onBody(java.lang.Object bodyObject)
DeserializationHandler
DeserializationHandler.getBodyDecoder()
), and then this function will be called.protected java.lang.Object createNoBodyObject()
public java.lang.String getElementName()
DeserializationHandler
public boolean supportsNestedElements()
DeserializationHandler
Return 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.
public DeserializationHandler clone()
DeserializationHandler
clone
in interface DeserializationHandler
clone
in class AbstractDeserializationHandler