org.llrp.ltk.types
Class UnsignedShortArray_HEX

java.lang.Object
  extended by org.llrp.ltk.types.LLRPType
      extended by org.llrp.ltk.types.UnsignedShortArray
          extended by org.llrp.ltk.types.UnsignedShortArray_HEX

public class UnsignedShortArray_HEX
extends UnsignedShortArray

Array of unsigned shorts encoded in HEX Format. Length encoded in first 16 bits of binary encoding


Field Summary
 
Fields inherited from class org.llrp.ltk.types.UnsignedShortArray
shorts
 
Constructor Summary
UnsignedShortArray_HEX()
          Creates a new UnsignedShortArray_HEX object.
UnsignedShortArray_HEX(org.jdom.Element element)
           
UnsignedShortArray_HEX(int length)
          Creates a new UnsignedShortArray object.
UnsignedShortArray_HEX(LLRPBitList bits)
          first 16 bits of LLRPBitlist must indicate number of entries that follow
UnsignedShortArray_HEX(short[] data)
           
UnsignedShortArray_HEX(java.lang.String string)
           
 
Method Summary
 void decodeXML(org.jdom.Element element)
          create objects from xml.
 org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
          create xml representation of this parameter.
 java.lang.String toString()
          String representation
 
Methods inherited from class org.llrp.ltk.types.UnsignedShortArray
add, decodeBinary, encodeBinary, equals, get, getBitLength, getByteLength, hashCode, inRange, length, set, size, toShortArray, toString
 
Methods inherited from class org.llrp.ltk.types.LLRPType
toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsignedShortArray_HEX

public UnsignedShortArray_HEX(org.jdom.Element element)

UnsignedShortArray_HEX

public UnsignedShortArray_HEX(int length)
Creates a new UnsignedShortArray object.

Parameters:
length - of array

UnsignedShortArray_HEX

public UnsignedShortArray_HEX(short[] data)

UnsignedShortArray_HEX

public UnsignedShortArray_HEX(java.lang.String string)
Parameters:
string -

UnsignedShortArray_HEX

public UnsignedShortArray_HEX(LLRPBitList bits)
first 16 bits of LLRPBitlist must indicate number of entries that follow

Parameters:
bits - to be decoded

UnsignedShortArray_HEX

public UnsignedShortArray_HEX()
Creates a new UnsignedShortArray_HEX object.

Method Detail

encodeXML

public org.jdom.Content encodeXML(java.lang.String name,
                                  org.jdom.Namespace ns)
Description copied from class: LLRPType
create xml representation of this parameter.

Overrides:
encodeXML in class UnsignedShortArray
Parameters:
name - returned content should have
ns - Namespace of elements

decodeXML

public void decodeXML(org.jdom.Element element)
Description copied from class: LLRPType
create objects from xml.

Overrides:
decodeXML in class UnsignedShortArray
Parameters:
element - to be decoded

toString

public java.lang.String toString()
Description copied from class: LLRPType
String representation

Overrides:
toString in class UnsignedShortArray
Returns:
String


Copyright © 2007 ETH Zurich.