public class PrimitiveArrayHandler extends AbstractBodyDecoderHandler
| Modifier and Type | Field and 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_SHORT |
elementNameobjectTL, refTLobject, refId| Constructor and Description |
|---|
PrimitiveArrayHandler(int type) |
| Modifier and Type | Method and 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.
|
createNoBodyObject, endElement, getElementName, onBodygetObject, getRefId, setObject, setRefIdendObject, endSubElement, startSubElementpublic static final int TYPE_FIRST
public static final int TYPE_PBYTE
public static final int TYPE_PSHORT
public static final int TYPE_PINT
public static final int TYPE_PLONG
public static final int TYPE_PFLOAT
public static final int TYPE_PDOUBLE
public static final int TYPE_PBOOL
public static final int TYPE_DATE
public static final int TYPE_COLOR
public static final int TYPE_BYTE
public static final int TYPE_SHORT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public static final int TYPE_BOOL
public static final int TYPE_LAST
protected final int type
protected ArrayDecoder decoder
public boolean supportsNestedElements()
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.
supportsNestedElements in interface DeserializationHandlersupportsNestedElements in class AbstractBodyDecoderHandlerpublic DeserializationHandler clone()
DeserializationHandlerclone in interface DeserializationHandlerclone in class AbstractBodyDecoderHandlerpublic void startElement(java.lang.String name,
AttributesMap attributes,
DeserializationContext context)
throws java.lang.Exception
DeserializationHandlerstartElement in interface DeserializationHandlerstartElement in class AbstractBodyDecoderHandlerjava.lang.Exceptionpublic Decoder<?> getBodyDecoder()
DeserializationHandlerDeserializationHandler.onBody(Object)