|
||||||||||
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.SignedIntegerArray
public class SignedIntegerArray
Array of 32 bit integers - length encoded as first 16 bits in binary encoding
Constructor Summary | |
---|---|
SignedIntegerArray()
Creates an empty SignedIntegerArray. |
|
SignedIntegerArray(org.jdom.Element element)
Creates a new SignedIntegerArray object from jdom element - used for xml decoding |
|
SignedIntegerArray(int length)
Creates a new SignedIntegerArray object. |
|
SignedIntegerArray(int[] data)
|
|
SignedIntegerArray(LLRPBitList bits)
first 16 bits of LLRPBitlist must indicate number of entries that follow |
|
SignedIntegerArray(SignedInteger[] ints)
Creates a new SignedIntegerArray object. |
|
SignedIntegerArray(java.lang.String string)
|
Method Summary | |
---|---|
void |
add(SignedInteger 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 |
SignedInteger |
get(int i)
get SignedInteger 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,
SignedInteger b)
set SignedInteger 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 SignedIntegerArray(SignedInteger[] ints)
ints
- to create UsnignedIntegerArray frompublic SignedIntegerArray(org.jdom.Element element)
element
- to be decodedpublic SignedIntegerArray(int length)
length
- of arraypublic SignedIntegerArray(int[] data)
public SignedIntegerArray(LLRPBitList bits)
bits
- to be decodedpublic SignedIntegerArray(java.lang.String string)
string
- public SignedIntegerArray()
Method Detail |
---|
public LLRPBitList encodeBinary()
encodeBinary
in class LLRPType
public int getByteLength()
public static int length()
public void decodeBinary(LLRPBitList list)
decodeBinary
in class LLRPType
list
- to be decodedpublic SignedInteger get(int i)
i
- position
public void set(int i, SignedInteger b)
i
- positionb
- SignedInteger 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(SignedInteger aInteger)
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
public boolean equals(LLRPType other)
other
- to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |