|
||||||||||
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.BitList
public class BitList
List of Bits - length not encoded!
Constructor Summary | |
---|---|
BitList()
Creates a new BitList object. |
|
BitList(Bit[] bits)
Generate a list of bits - bit[0] is the least significant bit. |
|
BitList(int l)
Generate a list of bits. |
|
BitList(java.lang.Integer... integers)
|
|
BitList(java.lang.Integer l)
|
|
BitList(LLRPBitList list)
Creates a new BitList object. |
|
BitList(java.lang.String bitString)
create BitList - String must consist of numbers only. |
Method Summary | |
---|---|
void |
clear(int i)
set Bit at specified position to 0. |
void |
clear(java.lang.Integer i)
|
void |
decodeBinary(LLRPBitList list)
decode bits from BitList. |
void |
decodeXML(org.jdom.Element element)
create objects from xml. |
LLRPBitList |
encodeBinary()
just like BitArray but does not encode length before 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. |
Bit |
get(java.lang.Integer i)
|
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML |
int |
intValue()
|
int |
length()
length of the list. |
void |
set(int i)
set Bit at specified position to 1. |
void |
set(java.lang.Integer i)
|
void |
setValue(int value)
|
java.lang.Integer |
toInteger()
|
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 BitList(Bit[] bits)
bits
- to be decodedpublic BitList(java.lang.String bitString)
bitString
- to be decodedpublic BitList(LLRPBitList list)
list
- to be decodedpublic BitList(java.lang.Integer... integers)
public BitList(int l)
l
- lengthpublic BitList(java.lang.Integer l)
public BitList()
Method Detail |
---|
public void setValue(int value)
public void clear(int i)
i
- position to clearpublic void clear(java.lang.Integer i)
public LLRPBitList encodeBinary()
encodeBinary
in class LLRPType
public int length()
public void decodeBinary(LLRPBitList list)
decodeBinary
in class LLRPType
list
- to be decodedpublic Bit get(int i)
i
- position to get
public Bit get(java.lang.Integer i)
public void set(int i)
i
- position to be setpublic void set(java.lang.Integer i)
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 java.lang.Integer toInteger()
public int intValue()
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 |