Class PrimitiveArrayHandler
- java.lang.Object
-
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
-
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
-
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.AbstractBodyDecoderHandler
-
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.PrimitiveArrayHandler
-
- All Implemented Interfaces:
DeserializationHandler
public class PrimitiveArrayHandler extends AbstractBodyDecoderHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayDecoderdecoderprotected inttypestatic intTYPE_BOOLstatic intTYPE_BYTEstatic intTYPE_COLORstatic intTYPE_DATEstatic intTYPE_DOUBLEstatic intTYPE_FIRSTstatic intTYPE_FLOATstatic intTYPE_INTstatic intTYPE_LASTstatic intTYPE_LONGstatic intTYPE_PBOOLstatic intTYPE_PBYTEstatic intTYPE_PDOUBLEstatic intTYPE_PFLOATstatic intTYPE_PINTstatic intTYPE_PLONGstatic intTYPE_PSHORTstatic intTYPE_QUALITY_CODEstatic intTYPE_SHORT-
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.AbstractBodyDecoderHandler
elementName
-
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
objectTL, refTL
-
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
object, refId
-
-
Constructor Summary
Constructors Constructor Description PrimitiveArrayHandler(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeserializationHandlerclone()Clones this handler.Decoder<?>getBodyDecoder()Called when body data is encountered in this tag or a sub-tag.voidstartElement(java.lang.String name, AttributesMap attributes, DeserializationContext context)Notifies the handler that their element has started.booleansupportsNestedElements()Return 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.handlers.AbstractBodyDecoderHandler
createNoBodyObject, endElement, getElementName, onBody
-
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
getObject, getRefId, setObject, setRefId
-
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
endObject, endSubElement, startSubElement
-
-
-
-
Field Detail
-
TYPE_FIRST
public static final int TYPE_FIRST
- See Also:
- Constant Field Values
-
TYPE_PBYTE
public static final int TYPE_PBYTE
- See Also:
- Constant Field Values
-
TYPE_PSHORT
public static final int TYPE_PSHORT
- See Also:
- Constant Field Values
-
TYPE_PINT
public static final int TYPE_PINT
- See Also:
- Constant Field Values
-
TYPE_PLONG
public static final int TYPE_PLONG
- See Also:
- Constant Field Values
-
TYPE_PFLOAT
public static final int TYPE_PFLOAT
- See Also:
- Constant Field Values
-
TYPE_PDOUBLE
public static final int TYPE_PDOUBLE
- See Also:
- Constant Field Values
-
TYPE_PBOOL
public static final int TYPE_PBOOL
- See Also:
- Constant Field Values
-
TYPE_DATE
public static final int TYPE_DATE
- See Also:
- Constant Field Values
-
TYPE_COLOR
public static final int TYPE_COLOR
- See Also:
- Constant Field Values
-
TYPE_BYTE
public static final int TYPE_BYTE
- See Also:
- Constant Field Values
-
TYPE_SHORT
public static final int TYPE_SHORT
- See Also:
- Constant Field Values
-
TYPE_INT
public static final int TYPE_INT
- See Also:
- Constant Field Values
-
TYPE_LONG
public static final int TYPE_LONG
- See Also:
- Constant Field Values
-
TYPE_FLOAT
public static final int TYPE_FLOAT
- See Also:
- Constant Field Values
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE
- See Also:
- Constant Field Values
-
TYPE_BOOL
public static final int TYPE_BOOL
- See Also:
- Constant Field Values
-
TYPE_QUALITY_CODE
public static final int TYPE_QUALITY_CODE
- See Also:
- Constant Field Values
-
TYPE_LAST
public static final int TYPE_LAST
- See Also:
- Constant Field Values
-
type
protected final int type
-
decoder
protected ArrayDecoder decoder
-
-
Method Detail
-
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.
- Specified by:
supportsNestedElementsin interfaceDeserializationHandler- Overrides:
supportsNestedElementsin classAbstractBodyDecoderHandler
-
clone
public 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 interfaceDeserializationHandler- Overrides:
clonein classAbstractBodyDecoderHandler
-
startElement
public void startElement(java.lang.String name, AttributesMap attributes, DeserializationContext context) throws java.lang.ExceptionDescription copied from interface:DeserializationHandlerNotifies the handler that their element has started.- Specified by:
startElementin interfaceDeserializationHandler- Overrides:
startElementin classAbstractBodyDecoderHandler- Throws:
java.lang.Exception
-
getBodyDecoder
public Decoder<?> 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)
-
-