Class ObjectDeserializationHandler
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.ObjectDeserializationHandler
- All Implemented Interfaces:
- DeserializationHandler
- Direct Known Subclasses:
- ComponentDeserializationHandler,- ShapeDeserializationHandler
- 
Field SummaryFieldsFields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandlerobject, refId
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Clones this handler.voidendElement(DeserializationContext context) Notifies the handler that their element has ended.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 endedDecoder<?>Called when body data is encountered in this tag or a sub-tag.Returns the name of the element type that this handler ...voidCalled when body data is encountered in this tag or a sub-tag.voidstartElement(String name, AttributesMap attr, DeserializationContext context) Notifies the handler that their element has started.voidstartSubElement(String name, AttributesMap attributes, DeserializationContext context) Notifies the handler that a sub-element has started.booleanReturn true if the element type that you're parsing can have nested elements, or false if you're a singleton element.Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandlergetObject, getRefId, setObject, setRefId
- 
Field Details- 
clazz
- 
args
- 
methodName
- 
methodSig
 
- 
- 
Constructor Details- 
ObjectDeserializationHandlerpublic ObjectDeserializationHandler()
 
- 
- 
Method Details- 
startElementpublic void startElement(String name, AttributesMap attr, DeserializationContext context) throws Exception Description copied from interface:DeserializationHandlerNotifies the handler that their element has started.- Throws:
- Exception
 
- 
onBodyDescription copied from interface:DeserializationHandlerCalled when body data is encountered in this tag or a sub-tag. This data is first interpreted by the handler-provided decoder (seeDeserializationHandler.getBodyDecoder()), and then this function will be called.
- 
getBodyDecoderDescription copied from interface:DeserializationHandlerCalled when body data is encountered in this tag or a sub-tag. Used to decode the body into an object, which is then passed toDeserializationHandler.onBody(Object)
- 
endElementDescription copied from interface:DeserializationHandlerNotifies the handler that their element has ended.- Throws:
- Exception
 
- 
endObjectDescription copied from interface:DeserializationHandlerNotifies the handler that an object tag was found and deserialized within their scope- Specified by:
- endObjectin interface- DeserializationHandler
- Overrides:
- endObjectin class- AbstractDeserializationHandler
 
- 
endSubElementDescription copied from interface:DeserializationHandlerNotifies the handler that a sub-element has ended- Specified by:
- endSubElementin interface- DeserializationHandler
- Overrides:
- endSubElementin class- AbstractDeserializationHandler
- Throws:
- Exception
 
- 
startSubElementpublic 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 interface- DeserializationHandler
- Overrides:
- startSubElementin class- AbstractDeserializationHandler
- Throws:
- Exception
 
- 
getElementNameDescription copied from interface:DeserializationHandlerReturns the name of the element type that this handler ... handles.
- 
cloneDescription 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
- Specified by:
- clonein class- AbstractDeserializationHandler
 
- 
supportsNestedElementspublic boolean supportsNestedElements()Description copied from interface: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. 
 
-