|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.llrp.ltk.types.LLRPType org.llrp.ltk.types.LLRPNumberType org.llrp.ltk.types.SignedShort
public class SignedShort
16bit signed Short
Field Summary | |
---|---|
protected java.lang.Integer |
value
|
Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
---|
signed |
Constructor Summary | |
---|---|
SignedShort()
Creates a new SignedShort object. |
|
SignedShort(org.jdom.Element element)
Creates a new SignedShort object from jdom element - used for xml decoding. |
|
SignedShort(int value)
|
|
SignedShort(java.lang.Integer value)
Creates a new SignedShort object - might loose precision. |
|
SignedShort(LLRPBitList bitList)
Creates a new SignedShort object. |
|
SignedShort(java.lang.Short value)
Creates a new SignedShort object. |
|
SignedShort(java.lang.String valueString)
String representation in radix 10. |
|
SignedShort(java.lang.String valueString,
int radix)
String representation in specified radix. |
Method Summary | |
---|---|
void |
decodeBinary(LLRPBitList bitList)
decode from binary |
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()
get number of bits used to represent this type |
java.lang.Integer |
toInteger()
Integereger representation - no loss in precision |
short |
toShort()
short representation - no loss in 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 SignedShort(java.lang.Short value)
value
- to setpublic SignedShort(org.jdom.Element element)
element
- to be decodedpublic SignedShort(java.lang.Integer value)
value
- to setpublic SignedShort(java.lang.String valueString, int radix)
public SignedShort(int value)
public SignedShort()
public SignedShort(LLRPBitList bitList)
bitList
- to be decodedpublic SignedShort(java.lang.String valueString)
Method Detail |
---|
public void decodeBinary(LLRPBitList bitList)
decodeBinary
in class LLRPType
bitList
- to be decodedpublic static int length()
public java.lang.Integer toInteger()
toInteger
in class LLRPNumberType
public int intValue()
intValue
in class LLRPNumberType
public short toShort()
public 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()
LLRPType
toString
in class LLRPNumberType
public java.lang.String toString(int radix)
toString
in class LLRPType
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 |