|
||||||||||
| 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.TwoBitField
public class TwoBitField
TwoBitField - a field consisting of two bits
| Constructor Summary | |
|---|---|
TwoBitField()
Creates a new TwoBitField object. |
|
TwoBitField(Bit[] bits)
Generate a list of bits |
|
TwoBitField(org.jdom.Element element)
Creates a new TwoBitField object. |
|
TwoBitField(LLRPBitList list)
Creates a new TwoBitField object. |
|
TwoBitField(java.lang.String string)
|
|
| Method Summary | |
|---|---|
void |
clear(java.lang.Integer i)
set Bit at specified position to 0 |
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(java.lang.Integer i)
get bit at I |
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML |
int |
intValue()
two bit field interpreted as two bit number |
static int |
length()
number of bits used to represent this type |
void |
set(java.lang.Integer i)
set Bit at specified position to 1 |
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 TwoBitField(Bit[] bits)
bits - to be decodedpublic TwoBitField(LLRPBitList list)
list - to be decodedpublic TwoBitField(java.lang.String string)
string - public TwoBitField()
public TwoBitField(org.jdom.Element element)
element - to be decoded| Method Detail |
|---|
public void clear(java.lang.Integer i)
i - position to be set to 0public LLRPBitList encodeBinary()
encodeBinary in class LLRPTypepublic static int length()
public void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic Bit get(java.lang.Integer i)
i - position to be returned
public int intValue()
public void set(java.lang.Integer i)
i - position to be set to 1
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPType
encodeXML in class LLRPTypename - returned content should havens - Namespace of elementspublic void decodeXML(org.jdom.Element element)
LLRPType
decodeXML in class LLRPTypeelement - to be decodedpublic java.lang.String toString()
LLRPType
toString in class LLRPTypepublic java.lang.String toString(int radix)
toString in class LLRPTypepublic 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 | |||||||||