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 java.lang.Object implements DeserializationHandler 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractDeserializationHandler()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DeserializationHandlerclone()Clones this handler.voidendObject(java.lang.Object obj)Notifies the handler that an object tag was found and deserialized within their scopevoidendSubElement(java.lang.String name, DeserializationContext context)Notifies the handler that a sub-element has endedjava.lang.ObjectgetObject()Returns 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 voidsetObject(java.lang.Object object)voidsetRefId(int id)Sets the ref-id that was found at the start of this element, if any.voidstartSubElement(java.lang.String name, AttributesMap attributes, DeserializationContext context)Notifies the handler that a sub-element has started.- 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.xmlserialization.deserialization.DeserializationHandlerendElement, getBodyDecoder, getElementName, onBody, startElement, supportsNestedElements
 
- 
 
- 
- 
- 
Method Detail- 
startSubElementpublic void startSubElement(java.lang.String name, AttributesMap attributes, DeserializationContext context) throws java.lang.ExceptionDescription copied from interface:DeserializationHandlerNotifies the handler that a sub-element has started.- Specified by:
- startSubElementin interface- DeserializationHandler
- Throws:
- java.lang.Exception
 
 - 
endSubElementpublic void endSubElement(java.lang.String name, DeserializationContext context) throws java.lang.ExceptionDescription copied from interface:DeserializationHandlerNotifies the handler that a sub-element has ended- Specified by:
- endSubElementin interface- DeserializationHandler
- Throws:
- java.lang.Exception
 
 - 
endObjectpublic void endObject(java.lang.Object obj) Description copied from interface:DeserializationHandlerNotifies the handler that an object tag was found and deserialized within their scope- Specified by:
- endObjectin interface- DeserializationHandler
 
 - 
getObjectpublic java.lang.Object 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 interface- DeserializationHandler
 
 - 
setObjectprotected void setObject(java.lang.Object object) 
 - 
clonepublic abstract DeserializationHandler 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 interface- DeserializationHandler
- Overrides:
- clonein class- java.lang.Object
 
 - 
getRefIdpublic 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 interface- DeserializationHandler
 
 - 
setRefIdpublic 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 interface- DeserializationHandler
 
 
- 
 
-