public class UnsignedByte extends LLRPNumberType
| Modifier and Type | Field and Description |
|---|---|
protected int |
value |
signed| Constructor and Description |
|---|
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(LLRPBitList bitList,
int bitIndex,
int length) |
UnsignedByte(java.lang.String valueString)
Creates a new UnsignedByte object.
|
UnsignedByte(java.lang.String valueString,
int radix)
String representation in specified radix.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
int |
intValue() |
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) |
equals, hashCodetoXMLStringpublic UnsignedByte(LLRPBitList bitList, int bitIndex, int length)
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)
public static int length()
public byte toByte()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic int intValue()
intValue in class LLRPNumberTypepublic void decodeBinary(LLRPBitList list)
LLRPTypedecodeBinary in class LLRPTypelist - to be decodedpublic void decodeXML(org.jdom.Element element)
LLRPTypepublic LLRPBitList encodeBinary()
LLRPTypeencodeBinary in class LLRPTypepublic org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPTypepublic java.lang.String toString()
LLRPTypetoString in class LLRPNumberTypepublic boolean inRange(long value)
inRange in class LLRPNumberTypeCopyright © 2007 ETH Zurich.