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 ArrayDecoder
decoder
protected int
type
static int
TYPE_BOOL
static int
TYPE_BYTE
static int
TYPE_COLOR
static int
TYPE_DATE
static int
TYPE_DOUBLE
static int
TYPE_FIRST
static int
TYPE_FLOAT
static int
TYPE_INT
static int
TYPE_LAST
static int
TYPE_LONG
static int
TYPE_PBOOL
static int
TYPE_PBYTE
static int
TYPE_PDOUBLE
static int
TYPE_PFLOAT
static int
TYPE_PINT
static int
TYPE_PLONG
static int
TYPE_PSHORT
static int
TYPE_QUALITY_CODE
static int
TYPE_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 DeserializationHandler
clone()
Clones this handler.Decoder<?>
getBodyDecoder()
Called when body data is encountered in this tag or a sub-tag.void
startElement(java.lang.String name, AttributesMap attributes, DeserializationContext context)
Notifies the handler that their element has started.boolean
supportsNestedElements()
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:DeserializationHandler
Return 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:
supportsNestedElements
in interfaceDeserializationHandler
- Overrides:
supportsNestedElements
in classAbstractBodyDecoderHandler
-
clone
public DeserializationHandler clone()
Description copied from interface:DeserializationHandler
Clones this handler. Only handlers that support nested elements will be cloned, all others can throw an unsupported operation exception instead.- Specified by:
clone
in interfaceDeserializationHandler
- Overrides:
clone
in classAbstractBodyDecoderHandler
-
startElement
public void startElement(java.lang.String name, AttributesMap attributes, DeserializationContext context) throws java.lang.Exception
Description copied from interface:DeserializationHandler
Notifies the handler that their element has started.- Specified by:
startElement
in interfaceDeserializationHandler
- Overrides:
startElement
in classAbstractBodyDecoderHandler
- Throws:
java.lang.Exception
-
getBodyDecoder
public Decoder<?> getBodyDecoder()
Description copied from interface:DeserializationHandler
Called 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)
-
-