Class AbstractDeserializationHandler
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
- All Implemented Interfaces:
 DeserializationHandler
- Direct Known Subclasses:
 AbstractReentrantDeserializationHandler,ArrayHandler,ArrayListHandler,EnumSetHandler,ObjectDeserializationHandler
public abstract class AbstractDeserializationHandler
extends Object
implements DeserializationHandler
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract DeserializationHandlerclone()Clones this handler.voidNotifies the handler that an object tag was found and deserialized within their scopevoidendSubElement(String name, DeserializationContext context) Notifies the handler that a sub-element has endedReturns the most recent object that this handler created.intgetRefId()Returns the reference id that was in the start of this element, or -1 if there was noneprotected voidvoidsetRefId(int id) Sets the ref-id that was found at the start of this element, if any.voidstartSubElement(String name, AttributesMap attributes, DeserializationContext context) Notifies the handler that a sub-element has started.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.xmlserialization.deserialization.DeserializationHandler
endElement, getBodyDecoder, getElementName, onBody, startElement, supportsNestedElements 
- 
Field Details
- 
object
 - 
refId
protected int refId 
 - 
 - 
Constructor Details
- 
AbstractDeserializationHandler
public AbstractDeserializationHandler() 
 - 
 - 
Method Details
- 
startSubElement
public void startSubElement(String name, AttributesMap attributes, DeserializationContext context) throws Exception Description copied from interface:DeserializationHandlerNotifies the handler that a sub-element has started.- Specified by:
 startSubElementin interfaceDeserializationHandler- Throws:
 Exception
 - 
endSubElement
Description copied from interface:DeserializationHandlerNotifies the handler that a sub-element has ended- Specified by:
 endSubElementin interfaceDeserializationHandler- Throws:
 Exception
 - 
endObject
Description copied from interface:DeserializationHandlerNotifies the handler that an object tag was found and deserialized within their scope- Specified by:
 endObjectin interfaceDeserializationHandler
 - 
getObject
Description copied from interface:DeserializationHandlerReturns the most recent object that this handler created. Note that a handler needs to have this function return its object as early as possible, not just after endElement() has been called. This is used for populating the reference map.- Specified by:
 getObjectin interfaceDeserializationHandler
 - 
setObject
 - 
clone
Description copied from interface:DeserializationHandlerClones this handler. Only handlers that support nested elements will be cloned, all others can throw an unsupported operation exception instead.- Specified by:
 clonein interfaceDeserializationHandler- Overrides:
 clonein classObject
 - 
getRefId
public int getRefId()Description copied from interface:DeserializationHandlerReturns the reference id that was in the start of this element, or -1 if there was none- Specified by:
 getRefIdin interfaceDeserializationHandler
 - 
setRefId
public void setRefId(int id) Description copied from interface:DeserializationHandlerSets the ref-id that was found at the start of this element, if any.- Specified by:
 setRefIdin interfaceDeserializationHandler
 
 -