public class SignedIntegerArray extends LLRPType
Constructor and Description |
---|
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(LLRPBitList bitList,
int bitIndex,
int length) |
SignedIntegerArray(SignedInteger[] ints)
Creates a new SignedIntegerArray object.
|
SignedIntegerArray(java.lang.String string) |
Modifier and Type | Method and Description |
---|---|
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) |
toXMLString
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(LLRPBitList bitList, int bitIndex, int length)
public SignedIntegerArray(java.lang.String string)
string
- public SignedIntegerArray()
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
- positionpublic 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
public void decodeXML(org.jdom.Element element)
LLRPType
public void add(SignedInteger aInteger)
public java.lang.String toString()
LLRPType
public boolean inRange(java.lang.String valueString)
public boolean equals(LLRPType other)
other
- to compareCopyright © 2007 ETH Zurich.