|
||||||||||
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.LLRPNumberType
org.llrp.ltk.types.UnsignedByte
public class UnsignedByte
unsigned 16 bit short
Field Summary | |
---|---|
protected int |
value
|
Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
---|
signed |
Constructor Summary | |
---|---|
UnsignedByte()
Creates a new UnsignedByte object. |
|
UnsignedByte(byte value)
Creates a new UnsignedByte object from byte |
|
UnsignedByte(org.jdom.Element element)
|
|
UnsignedByte(int value)
Creates a new UnsignedByte object. |
|
UnsignedByte(LLRPBitList bitList)
Creates a new UnsignedByte object. |
|
UnsignedByte(java.lang.String valueString)
Creates a new UnsignedByte object. |
|
UnsignedByte(java.lang.String valueString,
int radix)
String representation in specified radix. |
Method Summary | |
---|---|
void |
decodeBinary(LLRPBitList list)
decode |
void |
decodeXML(org.jdom.Element element)
create objects from xml. |
LLRPBitList |
encodeBinary()
encode this value |
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter. |
boolean |
inRange(long value)
|
boolean |
inRange(java.lang.String valueString)
|
static int |
length()
number of bits used to represent this type |
byte |
toByte()
to java byte - might loose precision |
java.lang.Integer |
toInteger()
to java Integer |
java.lang.String |
toString()
String representation |
java.lang.String |
toString(int radix)
|
Methods inherited from class org.llrp.ltk.types.LLRPNumberType |
---|
equals, hashCode, intValue |
Methods inherited from class org.llrp.ltk.types.LLRPType |
---|
toXMLString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int value
Constructor Detail |
---|
public UnsignedByte(int value)
value
- to setpublic UnsignedByte(byte value)
value
- interpreted as unsigned bytepublic UnsignedByte(java.lang.String valueString)
valueString
- value as stringpublic UnsignedByte(LLRPBitList bitList)
bitList
- to be decodedpublic UnsignedByte()
public UnsignedByte(java.lang.String valueString, int radix)
public UnsignedByte(org.jdom.Element element)
Method Detail |
---|
public static int length()
public byte toByte()
public java.lang.Integer toInteger()
toInteger
in class LLRPNumberType
public void decodeBinary(LLRPBitList list)
LLRPType
decodeBinary
in class LLRPType
list
- to be decodedpublic void decodeXML(org.jdom.Element element)
LLRPType
decodeXML
in class LLRPType
element
- to be decodedpublic LLRPBitList encodeBinary()
LLRPType
encodeBinary
in class LLRPType
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 java.lang.String toString(int radix)
toString
in class LLRPType
public java.lang.String toString()
LLRPType
toString
in class LLRPNumberType
public boolean inRange(long value)
inRange
in class LLRPNumberType
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 |