|
||||||||||
| 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.UnsignedShort
public class UnsignedShort
unsigned 16bit short
| Field Summary | |
|---|---|
protected java.lang.Integer |
value
|
| Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
signed |
| Constructor Summary | |
|---|---|
UnsignedShort()
Creates a new UnsignedShort object. |
|
UnsignedShort(org.jdom.Element element)
Creates a new UnsignedShort object from jdom element - used for xml decoding |
|
UnsignedShort(int value)
|
|
UnsignedShort(java.lang.Integer value)
Creates a new UnsignedShort object. |
|
UnsignedShort(LLRPBitList bitList)
Creates a new UnsignedShort object. |
|
UnsignedShort(java.lang.Short value)
Creates a new UnsignedShort object - might loose precision |
|
UnsignedShort(java.lang.String valueString)
Creates a new UnsignedShort object. |
|
UnsignedShort(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()
|
java.lang.Integer |
toInteger()
wrap UnsignedShort Integero Integer |
short |
toShort()
this might return a false value. |
java.lang.String |
toString(int radix)
|
| Methods inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
equals, hashCode, toString |
| 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 UnsignedShort(java.lang.Short value)
value - to setpublic UnsignedShort(int value)
public UnsignedShort(org.jdom.Element element)
element - to be decodedpublic UnsignedShort()
public UnsignedShort(java.lang.String valueString,
int radix)
public UnsignedShort(java.lang.Integer value)
value - to setpublic UnsignedShort(java.lang.String valueString)
valueString - value as stringpublic UnsignedShort(LLRPBitList bitList)
bitList - to be decoded| Method Detail |
|---|
public LLRPBitList encodeBinary()
LLRPType
encodeBinary in class LLRPTypepublic static int length()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic int intValue()
intValue in class LLRPNumberTypepublic short toShort()
public void decodeBinary(LLRPBitList list)
LLRPType
decodeBinary in class LLRPTypelist - to be decodedpublic 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 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 | |||||||||