|
||||||||||
| 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.UnsignedByteArray
org.llrp.ltk.generated.enumerations.AirProtocolsArray
public class AirProtocolsArray
AirProtocolsArray is Enumeration of Type UnsignedByteArray
| Field Summary | |
|---|---|
static int |
EPCGlobalClass1Gen2
|
static int |
Unspecified
|
| Fields inherited from class org.llrp.ltk.types.UnsignedByteArray |
|---|
bytes, signed, value |
| Constructor Summary | |
|---|---|
AirProtocolsArray()
|
|
AirProtocolsArray(org.jdom.Element element)
Create new AirProtocolsArray by passing jdom element. |
|
AirProtocolsArray(int value)
Create new AirProtocolsArray by passing integer value. |
|
AirProtocolsArray(LLRPBitList list)
Create new AirProtocolsArray by passing LLRPBitList. |
|
AirProtocolsArray(java.lang.String element)
Create new AirProtocolsArray by passing a string |
|
| Method Summary | |
|---|---|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encode to XML |
java.lang.String |
getName(int value)
get name of a value if no name can be found for given value return empty string. |
int |
getValue(java.lang.String name)
get value of a name representing a value if no value can be found, return -1. |
int |
intValue()
There is no reasonable representation as int return 0 |
boolean |
isValidName(java.lang.String name)
check if the name stands for an allowed value of this enumeration. |
boolean |
isValidValue(int value)
check if a value is allowed for an enumeration. |
static int |
length()
number of bits used to represent this type. |
void |
set(int value)
if no position is provided, the first element is set |
void |
set(int value,
int position)
set a value of this enumeration to the value identified by given string. |
void |
set(java.lang.String name)
if no position is provided, the first element is set |
void |
set(java.lang.String name,
int position)
set a value of this enumeration to the value identified by given string. |
java.lang.String |
toString()
String representation |
| Methods inherited from class org.llrp.ltk.types.UnsignedByteArray |
|---|
add, decodeBinary, decodeXML, encodeBinary, get, getByteLength, inRange, set, size, toInteger, toString |
| Methods inherited from class org.llrp.ltk.types.LLRPType |
|---|
toXMLString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int Unspecified
public static final int EPCGlobalClass1Gen2
| Constructor Detail |
|---|
public AirProtocolsArray()
public AirProtocolsArray(int value)
value - an Integer value allowed - might check first
with isValidValue it it is an allowed value
java.lang.IllegalArgumentException - if the value is not allowed for this enumerationpublic AirProtocolsArray(org.jdom.Element element)
element - - jdom element where the child is a string
that contains several names for values of the enumeration.
java.lang.IllegalArgumentException - String must be a concatenation of several enumeration strings seperated by whitespacepublic AirProtocolsArray(java.lang.String element)
element - - string that contains several names for values of the enumeration.
java.lang.IllegalArgumentException - String must be a concatenation of several enumeration strings seperated by whitespacepublic AirProtocolsArray(LLRPBitList list)
list - - LLRPBitList
java.lang.IllegalArgumentException - if the value found in the BitList is not allowed
for this enumeration.| Method Detail |
|---|
public final void set(java.lang.String name,
int position)
name - set this enumeration to hold one of the allowed values
java.lang.IllegalArgumentException - if the value found for given String is not allowed
for this enumeration.public final void set(java.lang.String name)
set in interface LLRPEnumerationname - set this enumeration to hold one of the allowed values
public final void set(int value,
int position)
value - to be set at position
java.lang.IllegalArgumentException - if the value found for given String is not allowed
for this enumeration.public final void set(int value)
set in interface LLRPEnumerationvalue - to be set
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encodeXML in class UnsignedByteArrayname - of elementns - Namespacepublic java.lang.String toString()
toString in interface LLRPEnumerationtoString in class UnsignedByteArraypublic int intValue()
intValue in interface LLRPEnumerationpublic boolean isValidValue(int value)
isValidValue in interface LLRPEnumerationvalue - to set
public final int getValue(java.lang.String name)
getValue in interface LLRPEnumerationname - for value
public final java.lang.String getName(int value)
getName in interface LLRPEnumerationvalue - of name
public boolean isValidName(java.lang.String name)
isValidName in interface LLRPEnumerationname - to check
public static int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||