|
||||||||||
| 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.UnsignedShortArray
public class UnsignedShortArray
Array of UnsignedShorts - length encoded with first 16 bits in binary encoding
| Field Summary | |
|---|---|
protected UnsignedShort[] |
shorts
|
| Constructor Summary | |
|---|---|
UnsignedShortArray()
Creates an empty UnsignedShortArray. |
|
UnsignedShortArray(org.jdom.Element element)
Creates a new UnsignedShortArray object from jdom element - used for xml decoding |
|
UnsignedShortArray(int length)
Creates a new UnsignedShortArray object. |
|
UnsignedShortArray(LLRPBitList bits)
first 16 bits of LLRPBitlist must indicate number of entries that follow |
|
UnsignedShortArray(short[] data)
|
|
UnsignedShortArray(java.lang.String shortString)
Creates a new UnsignedShortArray object. |
|
UnsignedShortArray(UnsignedShort[] shorts)
Creates a new UnsignedShortArray object. |
|
| Method Summary | |
|---|---|
void |
add(UnsignedShort aShort)
|
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 |
UnsignedShort |
get(int i)
get UnsignedShort at specified position |
int |
getBitLength()
lenght in bits |
int |
getByteLength()
length in bytes |
int |
hashCode()
|
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,
UnsignedShort b)
set UnsignedShort at given location |
int |
size()
number of elements in array |
short[] |
toShortArray()
|
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, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected UnsignedShort[] shorts
| Constructor Detail |
|---|
public UnsignedShortArray(UnsignedShort[] shorts)
shorts - to create array frompublic UnsignedShortArray(java.lang.String shortString)
shortString - string of shortspublic UnsignedShortArray(short[] data)
public UnsignedShortArray(org.jdom.Element element)
element - to be decodedpublic UnsignedShortArray(int length)
length - of arraypublic UnsignedShortArray(LLRPBitList bits)
bits - to be decodedpublic UnsignedShortArray()
| Method Detail |
|---|
public void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic LLRPBitList encodeBinary()
encodeBinary in class LLRPTypepublic boolean equals(LLRPType other)
other - to compare
public UnsignedShort get(int i)
i - position
public int getBitLength()
public int getByteLength()
public static int length()
public void set(int i,
UnsignedShort b)
i - positionb - UnsignedShort 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(UnsignedShort aShort)
public int hashCode()
hashCode in class java.lang.Objectpublic short[] toShortArray()
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 LLRPType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||