|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.llrp.ltk.types.LLRPType org.llrp.ltk.types.SignedShortArray
public class SignedShortArray
Array of 16 bit signed shorts - length encoded in first 16 bits of binary encoding
Field Summary | |
---|---|
protected SignedShort[] |
shorts
|
Constructor Summary | |
---|---|
SignedShortArray()
Creates an empty SignedShortArray. |
|
SignedShortArray(org.jdom.Element element)
Creates a new SignedShortArray object from jdom element - used for xml decoding |
|
SignedShortArray(int length)
Creates a new SignedShortArray object. |
|
SignedShortArray(LLRPBitList bits)
first 16 bits of LLRPBitlist must indicate number of entries that follow |
|
SignedShortArray(short[] data)
|
|
SignedShortArray(SignedShort[] shorts)
Creates a new SignedShortArray object. |
|
SignedShortArray(java.lang.String shortString)
Creates a new SignedShortArray object. |
Method Summary | |
---|---|
void |
add(SignedShort 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 |
SignedShort |
get(int i)
get SignedShort 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,
SignedShort b)
set SignedShort 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 SignedShort[] shorts
Constructor Detail |
---|
public SignedShortArray(SignedShort[] shorts)
shorts
- to create array frompublic SignedShortArray(java.lang.String shortString)
shortString
- of shortspublic SignedShortArray(short[] data)
public SignedShortArray(org.jdom.Element element)
element
- to be decodedpublic SignedShortArray(int length)
length
- of arraypublic SignedShortArray(LLRPBitList bits)
bits
- to be decodedpublic SignedShortArray()
Method Detail |
---|
public void decodeBinary(LLRPBitList list)
decodeBinary
in class LLRPType
list
- to be decodedpublic LLRPBitList encodeBinary()
encodeBinary
in class LLRPType
public boolean equals(LLRPType other)
other
- to compare
public SignedShort get(int i)
i
- position
public int getBitLength()
public int getByteLength()
public static int length()
public void set(int i, SignedShort b)
i
- positionb
- SignedShort to be setpublic int size()
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
LLRPType
encodeXML
in class LLRPType
name
- returned content should havens
- Namespace of elementspublic void decodeXML(org.jdom.Element element)
LLRPType
decodeXML
in class LLRPType
element
- to be decodedpublic void add(SignedShort aShort)
public int hashCode()
hashCode
in class java.lang.Object
public short[] toShortArray()
public java.lang.String toString(int radix)
toString
in class LLRPType
public java.lang.String toString()
LLRPType
toString
in class LLRPType
public 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 |