|
||||||||||
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.UnsignedInteger96
public class UnsignedInteger96
Unsigned 96bit Integer
Field Summary | |
---|---|
protected static int |
LENGTH
|
protected java.math.BigInteger |
value
|
Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
---|
signed |
Constructor Summary | |
---|---|
UnsignedInteger96()
Creates a new Integer96 object. |
|
UnsignedInteger96(java.math.BigInteger value)
Creates a new Integer96 object. |
|
UnsignedInteger96(org.jdom.Element element)
Creates a new Integer96 object. |
|
UnsignedInteger96(LLRPBitList bitList)
Creates a new Integer96 object. |
|
UnsignedInteger96(long value)
|
|
UnsignedInteger96(java.lang.String string)
Creates a new Integer96 object. |
Method Summary | |
---|---|
void |
decodeBinary(LLRPBitList bitList)
overwrite decodeBinary as it ha to work differently. |
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 value)
|
static int |
length()
length in number of bits used to represent this type. |
protected void |
setBits(java.lang.Number value)
set bits. |
java.lang.Integer |
toInteger()
this Integer converted to java Integerer - miht cause 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, intValue |
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 static final int LENGTH
protected java.math.BigInteger value
Constructor Detail |
---|
public UnsignedInteger96(java.math.BigInteger value)
value
- to setpublic UnsignedInteger96(long value)
public UnsignedInteger96()
public UnsignedInteger96(LLRPBitList bitList)
bitList
- to be decodedpublic UnsignedInteger96(org.jdom.Element element)
element
- to be decodedpublic UnsignedInteger96(java.lang.String string)
string
- in decimal representationMethod Detail |
---|
public void decodeBinary(LLRPBitList bitList)
decodeBinary
in class LLRPType
bitList
- to be decodedpublic LLRPBitList encodeBinary()
LLRPType
encodeBinary
in class LLRPType
public static int length()
public java.lang.Integer toInteger()
toInteger
in class LLRPNumberType
protected void setBits(java.lang.Number value)
value
- to setpublic void decodeXML(org.jdom.Element element)
LLRPType
decodeXML
in class LLRPType
element
- to be decodedpublic 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(int radix)
toString
in class LLRPType
public java.lang.String toString()
LLRPType
toString
in class LLRPNumberType
public boolean inRange(long value)
inRange
in class LLRPNumberType
public boolean inRange(java.lang.String value)
inRange
in class LLRPType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |