Class NullHandler
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.NullHandler
- All Implemented Interfaces:
- DeserializationHandler
- 
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 ...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 nonevoidCalled when body data is encountered in this tag or a sub-tag.voidsetRefId(int id) Sets the ref-id that was found at the start of this element, if any.voidstartElement(String name, AttributesMap attributes, 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.
- 
Constructor Details- 
NullHandlerpublic NullHandler()
 
- 
- 
Method Details- 
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.- Specified by:
- onBodyin interface- DeserializationHandler
 
- 
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)- Specified by:
- getBodyDecoderin interface- DeserializationHandler
 
- 
endElementDescription copied from interface:DeserializationHandlerNotifies the handler that their element has ended.- Specified by:
- endElementin interface- DeserializationHandler
- 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
 
- 
endSubElementDescription copied from interface:DeserializationHandlerNotifies the handler that a sub-element has ended- Specified by:
- endSubElementin interface- DeserializationHandler
- Throws:
- Exception
 
- 
getElementNameDescription copied from interface:DeserializationHandlerReturns the name of the element type that this handler ... handles.- Specified by:
- getElementNamein interface- DeserializationHandler
 
- 
startElementpublic void startElement(String name, AttributesMap attributes, DeserializationContext context) throws Exception Description copied from interface:DeserializationHandlerNotifies the handler that their element has started.- Specified by:
- startElementin interface- DeserializationHandler
- 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
- Throws:
- Exception
 
- 
getObjectDescription 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
 
- 
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. - Specified by:
- supportsNestedElementsin interface- DeserializationHandler
 
- 
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
- Overrides:
- clonein class- 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
 
 
-