|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.llrp.ltk.types.LLRPType
org.llrp.ltk.types.UnsignedIntegerArray
public class UnsignedIntegerArray
Array of unsigned 32bit integers. Length encoded in first 16 bits of binary encoding
| Constructor Summary | |
|---|---|
UnsignedIntegerArray()
Creates an empty UnsignedIntegerArray. |
|
UnsignedIntegerArray(org.jdom.Element element)
Creates a new UnsignedIntegerArray object from jdom element - used for xml decoding |
|
UnsignedIntegerArray(int length)
Creates a new UnsignedIntegerArray object. |
|
UnsignedIntegerArray(LLRPBitList bits)
first 16 bits of LLRPBitlist must indicate number of entries that follow |
|
UnsignedIntegerArray(java.lang.String string)
|
|
UnsignedIntegerArray(UnsignedInteger[] ints)
Creates a new UnsignedIntegerArray object. |
|
| Method Summary | |
|---|---|
void |
add(UnsignedInteger aInteger)
|
void |
decodeBinary(LLRPBitList list)
first 16 bits of LLRPBitlist must indicate number of entries that follow |
void |
decodeXML(org.jdom.Element element)
create objects from xml. |
LLRPBitList |
encodeBinary()
encodes length before encoding containing values |
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter. |
boolean |
equals(LLRPType other)
compare each element |
UnsignedInteger |
get(int i)
get UnsignedInteger at specified position |
int |
getByteLength()
number of bytes used to represent this type |
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML |
static int |
length()
length of BaseType not array - for array length call size() |
void |
set(int i,
UnsignedInteger b)
set UnsignedInteger at i to b |
int |
size()
number of elements in array |
java.lang.String |
toString()
String representation |
java.lang.String |
toString(int radix)
|
| Methods inherited from class org.llrp.ltk.types.LLRPType |
|---|
toXMLString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnsignedIntegerArray(UnsignedInteger[] ints)
ints - to create UsnignedIntegerArray frompublic UnsignedIntegerArray(org.jdom.Element element)
element - to be decodedpublic UnsignedIntegerArray(int length)
length - of arraypublic UnsignedIntegerArray(LLRPBitList bits)
bits - to be decodedpublic UnsignedIntegerArray(java.lang.String string)
string - public UnsignedIntegerArray()
| Method Detail |
|---|
public LLRPBitList encodeBinary()
encodeBinary in class LLRPTypepublic int getByteLength()
public static int length()
public void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic UnsignedInteger get(int i)
i - position
public void set(int i,
UnsignedInteger b)
i - positionb - unsignedInteger to be setpublic int size()
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPType
encodeXML in class LLRPTypename - returned content should havens - Namespace of elementspublic void decodeXML(org.jdom.Element element)
LLRPType
decodeXML in class LLRPTypeelement - to be decodedpublic void add(UnsignedInteger aInteger)
public java.lang.String toString(int radix)
toString in class LLRPTypepublic java.lang.String toString()
LLRPType
toString in class LLRPTypepublic boolean inRange(java.lang.String valueString)
inRange in class LLRPTypepublic boolean equals(LLRPType other)
other - to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||