public class UnsignedShortArray extends LLRPType
| Modifier and Type | Field and Description |
|---|---|
protected UnsignedShort[] |
shorts |
| Constructor and Description |
|---|
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(LLRPBitList bitList,
int bitIndex,
int length) |
UnsignedShortArray(short[] data) |
UnsignedShortArray(java.lang.String shortString)
Creates a new UnsignedShortArray object.
|
UnsignedShortArray(UnsignedShort[] shorts)
Creates a new UnsignedShortArray object.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
toXMLStringprotected UnsignedShort[] shorts
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(LLRPBitList bitList, int bitIndex, int length)
public UnsignedShortArray()
public void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic LLRPBitList encodeBinary()
encodeBinary in class LLRPTypepublic boolean equals(LLRPType other)
other - to comparepublic UnsignedShort get(int i)
i - positionpublic 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)
LLRPTypepublic void decodeXML(org.jdom.Element element)
LLRPTypepublic void add(UnsignedShort aShort)
public int hashCode()
hashCode in class java.lang.Objectpublic short[] toShortArray()
public java.lang.String toString()
LLRPTypeCopyright © 2007 ETH Zurich.