Class BooleanHandler
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.BooleanHandler
- All Implemented Interfaces:
 DeserializationHandler
- 
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
objectTL, refTLFields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
object, refId - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this handler.voidendElement(DeserializationContext context) Notifies the handler that their element has ended.Decoder<?>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.voidCalled when body data is encountered in this tag or a sub-tag.voidstartElement(String name, AttributesMap attributes, DeserializationContext context) Notifies the handler that their 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.AbstractReentrantDeserializationHandler
getRefId, setObject, setRefIdMethods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
endObject, endSubElement, startSubElement 
- 
Constructor Details
- 
BooleanHandler
public BooleanHandler(boolean booleanToHandle)  
 - 
 - 
Method Details
- 
onBody
Description 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. - 
getBodyDecoder
Description 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) - 
endElement
Description copied from interface:DeserializationHandlerNotifies the handler that their element has ended.- Throws:
 Exception
 - 
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- Overrides:
 getObjectin classAbstractReentrantDeserializationHandler
 - 
getElementName
Description copied from interface:DeserializationHandlerReturns the name of the element type that this handler ... handles. - 
startElement
public void startElement(String name, AttributesMap attributes, DeserializationContext context) throws Exception Description copied from interface:DeserializationHandlerNotifies the handler that their element has started.- Throws:
 Exception
 - 
supportsNestedElements
public 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.
 - 
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- Specified by:
 clonein classAbstractDeserializationHandler
 
 -