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 |
elementName
objectTL, refTL
object, 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, onBody
getObject, getRefId, setObject, setRefId
endObject, endSubElement, startSubElement
public 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()
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.
supportsNestedElements
in interface DeserializationHandler
supportsNestedElements
in class AbstractBodyDecoderHandler
public DeserializationHandler clone()
DeserializationHandler
clone
in interface DeserializationHandler
clone
in class AbstractBodyDecoderHandler
public void startElement(java.lang.String name, AttributesMap attributes, DeserializationContext context) throws java.lang.Exception
DeserializationHandler
startElement
in interface DeserializationHandler
startElement
in class AbstractBodyDecoderHandler
java.lang.Exception
public Decoder<?> getBodyDecoder()
DeserializationHandler
DeserializationHandler.onBody(Object)