|
||||||||||
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.BitArray
public class BitArray
Array of bits
Field Summary | |
---|---|
protected Bit[] |
bits
|
protected static int |
LENGTH
|
Constructor Summary | |
---|---|
BitArray()
Creates an empty BitArray. |
|
BitArray(Bit[] bits)
create a new BitArray. |
|
BitArray(org.jdom.Element element)
|
|
BitArray(int length)
create a new BitArray. |
|
BitArray(LLRPBitList list)
create a new BitArray. |
|
BitArray(java.lang.String binaryString)
|
Method Summary | |
---|---|
void |
add(Bit aBit)
|
void |
clear(int i)
set bit at provided positionto 0. |
void |
decodeBinary(LLRPBitList list)
Create BitArray from BitList. |
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. |
Bit |
get(int i)
get bit at specified position. |
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML |
static int |
length()
length of BaseType - not the array - for array length call size(). |
void |
set(int i)
set bit at provided position to 1. |
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 |
Field Detail |
---|
protected static final int LENGTH
protected Bit[] bits
Constructor Detail |
---|
public BitArray(Bit[] bits)
bits
- to be decodedpublic BitArray(LLRPBitList list)
list
- to be decodedpublic BitArray(int length)
length
- of arraypublic BitArray()
public BitArray(org.jdom.Element element)
element
- to be decodedpublic BitArray(java.lang.String binaryString)
binaryString
- Method Detail |
---|
public void clear(int i)
i
- to be clearedpublic LLRPBitList encodeBinary()
encodeBinary
in class LLRPType
public static int length()
public void decodeBinary(LLRPBitList list)
decodeBinary
in class LLRPType
list
- to be decodedpublic Bit get(int i)
i
- to get
public void set(int i)
i
- to be set to 1public 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(Bit aBit)
public java.lang.String toString()
LLRPType
toString
in class LLRPType
public java.lang.String toString(int radix)
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 |