|
||||||||||
| 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.SignedByte
public class SignedByte
8 Bit Integer
| Field Summary | |
|---|---|
protected java.lang.Integer |
value
|
| Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
signed |
| Constructor Summary | |
|---|---|
SignedByte()
Creates a new SignedByte object. |
|
SignedByte(byte value)
Creates a new SignedByte object. |
|
SignedByte(org.jdom.Element element)
Creates a new SignedByte object. |
|
SignedByte(int value)
|
|
SignedByte(java.lang.Integer value)
Creates a new SignedByte object from Integer. |
|
SignedByte(LLRPBitList bitList)
Creates a new SignedByte object. |
|
SignedByte(java.lang.String stringValue)
Creates a new SignedByte object. |
|
SignedByte(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)
|
int |
intValue()
|
static int |
length()
number of bits used to represent this type. |
byte |
toByte()
this represented as byte - no loss of precision. |
java.lang.Integer |
toInteger()
this represented as Integereger - no loss of precision. |
java.lang.String |
toString()
String representation |
java.lang.String |
toString(int radix)
|
| Methods inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
equals, hashCode |
| 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 java.lang.Integer value
| Constructor Detail |
|---|
public SignedByte(byte value)
value - to setpublic SignedByte(java.lang.String stringValue)
stringValue - value as stringpublic SignedByte(java.lang.Integer value)
value - to setpublic SignedByte(int value)
public SignedByte(java.lang.String valueString,
int radix)
public SignedByte(LLRPBitList bitList)
bitList - to be decodedpublic SignedByte(org.jdom.Element element)
element - to be decodedpublic SignedByte()
| Method Detail |
|---|
public static int length()
public byte toByte()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic int intValue()
intValue in class LLRPNumberTypepublic void decodeXML(org.jdom.Element element)
LLRPType
decodeXML in class LLRPTypeelement - to be decoded
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 decodeBinary(LLRPBitList list)
LLRPType
decodeBinary in class LLRPTypelist - to be decodedpublic LLRPBitList encodeBinary()
LLRPType
encodeBinary in class LLRPTypepublic java.lang.String toString()
LLRPType
toString in class LLRPNumberTypepublic java.lang.String toString(int radix)
toString in class LLRPTypepublic boolean inRange(long value)
inRange in class LLRPNumberTypepublic 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 | |||||||||