public abstract class AbstractDeserializationHandler extends java.lang.Object implements DeserializationHandler
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
object |
protected int |
refId |
Constructor and Description |
---|
AbstractDeserializationHandler() |
Modifier and Type | Method and Description |
---|---|
abstract DeserializationHandler |
clone()
Clones this handler.
|
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
|
java.lang.Object |
getObject()
Returns the most recent object that this handler created.
|
int |
getRefId()
Returns the reference id that was in the start of this element, or -1 if there was none
|
protected void |
setObject(java.lang.Object object) |
void |
setRefId(int id)
Sets the ref-id that was found at the start of this element, if any.
|
void |
startSubElement(java.lang.String name,
AttributesMap attributes,
DeserializationContext context)
Notifies the handler that a sub-element has started.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endElement, getBodyDecoder, getElementName, onBody, startElement, supportsNestedElements
public void startSubElement(java.lang.String name, AttributesMap attributes, DeserializationContext context) throws java.lang.Exception
DeserializationHandler
startSubElement
in interface DeserializationHandler
java.lang.Exception
public void endSubElement(java.lang.String name, DeserializationContext context) throws java.lang.Exception
DeserializationHandler
endSubElement
in interface DeserializationHandler
java.lang.Exception
public void endObject(java.lang.Object obj)
DeserializationHandler
endObject
in interface DeserializationHandler
public java.lang.Object getObject()
DeserializationHandler
getObject
in interface DeserializationHandler
protected void setObject(java.lang.Object object)
public abstract DeserializationHandler clone()
DeserializationHandler
clone
in interface DeserializationHandler
clone
in class java.lang.Object
public int getRefId()
DeserializationHandler
getRefId
in interface DeserializationHandler
public void setRefId(int id)
DeserializationHandler
setRefId
in interface DeserializationHandler