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, hashCode
toXMLString
public 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 LLRPNumberType
public int intValue()
intValue
in class LLRPNumberType
public void decodeBinary(LLRPBitList list)
LLRPType
decodeBinary
in class LLRPType
list
- to be decodedpublic void decodeXML(org.jdom.Element element)
LLRPType
public LLRPBitList encodeBinary()
LLRPType
encodeBinary
in class LLRPType
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
LLRPType
public java.lang.String toString()
LLRPType
toString
in class LLRPNumberType
public boolean inRange(long value)
inRange
in class LLRPNumberType
Copyright © 2007 ETH Zurich.