public class ZigBeeUnsignedInteger24 extends Object implements ZCLSimpleTypeDescription
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(ZigBeeDataInput is)
Deserializes a value from the passed
ZigBeeDataInput stream. |
short |
getId()
Returns the data type identifier.
|
static ZigBeeUnsignedInteger24 |
getInstance()
Gets a singleton instance of this class.
|
Class<?> |
getJavaDataType()
Returns the corresponding Java type class.
|
String |
getName()
Returns the associated data type name.
|
boolean |
isAnalog()
Checks if the data type is analog.
|
void |
serialize(ZigBeeDataOutput os,
Object value)
Serializes a ZigBee data type into a
ZigBeeDataOutput stream. |
public static ZigBeeUnsignedInteger24 getInstance()
public String getName()
ZCLDataTypeDescriptiongetName in interface ZCLDataTypeDescriptionpublic boolean isAnalog()
ZCLDataTypeDescriptionisAnalog in interface ZCLDataTypeDescriptionpublic Class<?> getJavaDataType()
ZCLDataTypeDescriptiongetJavaDataType in interface ZCLDataTypeDescriptionpublic short getId()
ZCLDataTypeDescriptiongetId in interface ZCLDataTypeDescriptionZigBeeDataTypes
interface.public void serialize(ZigBeeDataOutput os, Object value) throws IOException
ZCLSimpleTypeDescriptionZigBeeDataOutput stream. An
implementation of this method must throw an
IllegalArgumentException if the passed value does not belong to
the expected class or its value exceeds the possible values allowed (in
terms of range or length).
An implementation of this method must interpret (where it makes sense) a
null value as the request to serialize the so called Invalid
Value.
serialize in interface ZCLSimpleTypeDescriptionos - a ZigBeeDataOutput stream where to the passed value
will be appended. This parameter cannot be null. If
null a NullPointerException must be thrown.value - The value that have to be serialized on the output stream.
If null is passed this method outputs on the stream the ZigBee
invalid value related the specific data type. If the data type do
not allow any invalid value and the passed value is null an
IllegalArgumentException is thrown.IOException - If an I/O error occurs while writing on the
ZigBeeDataOutput. The EOFException may be thrown
if there is no more space on the data output for serializing the
passed value.public Object deserialize(ZigBeeDataInput is) throws IOException
ZCLSimpleTypeDescriptionZigBeeDataInput stream.deserialize in interface ZCLSimpleTypeDescriptionis - the ZigBeeDataInput from where the value of data type
is read from.null if the read value represents the Invalid
Value for the specific ZigBee data type.IOException - If an I/O error occurs while reading the
ZigBeeDataInput. An EOFException is thrown if the
data input stream end is reached while deserializing the data
type.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0