public class AccessSpecStopTriggerType extends UnsignedByte implements LLRPEnumeration
| Modifier and Type | Field and Description |
|---|---|
static int |
Null |
static int |
Operation_Count |
valuesigned| Constructor and Description |
|---|
AccessSpecStopTriggerType() |
AccessSpecStopTriggerType(org.jdom.Element element)
Create new AccessSpecStopTriggerType by passing jdom element.
|
AccessSpecStopTriggerType(int value)
Create new AccessSpecStopTriggerType by passing integer value.
|
AccessSpecStopTriggerType(LLRPBitList list)
Create new AccessSpecStopTriggerType by passing LLRPBitList.
|
AccessSpecStopTriggerType(LLRPBitList list,
int bitIndex,
int length)
Create new AccessSpecStopTriggerType by passing LLRPBitList.
|
AccessSpecStopTriggerType(java.lang.String name)
Create new AccessSpecStopTriggerType by passing a string.
|
| Modifier and Type | Method and Description |
|---|---|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter.
|
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.
|
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)
set the current value of this enumeration to the
value given.
|
void |
set(java.lang.String name)
set the current value of this enumeration to the
value identified by given string.
|
java.lang.String |
toString()
String representation
|
decodeBinary, decodeXML, encodeBinary, inRange, inRange, intValue, toByte, toInteger, toStringequals, hashCodetoXMLStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitintValuepublic static final int Null
public static final int Operation_Count
public AccessSpecStopTriggerType()
public AccessSpecStopTriggerType(int value)
value - an Integer value allowed - might check first
with isValidValue it it is an allowed valuejava.lang.IllegalArgumentException - if the value is not allowed for this enumerationpublic AccessSpecStopTriggerType(org.jdom.Element element)
element - - jdom element where the child is a string
that is the name for a value of the enumeration.java.lang.IllegalArgumentException - if the value found in element is not allowed
for this enumeration.public AccessSpecStopTriggerType(java.lang.String name)
java.lang.IllegalArgumentException - if the string does not stand for a valid value.public AccessSpecStopTriggerType(LLRPBitList list, int bitIndex, int length)
list - to be decodedbitIndex - the bit at which to start decodinglength - the number of bits to decodepublic AccessSpecStopTriggerType(LLRPBitList list)
list - - LLRPBitListjava.lang.IllegalArgumentException - if the value found in the BitList 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 valuesjava.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 setjava.lang.IllegalArgumentException - if the value is not allowed
for this enumeration.public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encodeXML in class UnsignedBytename - returned content should havens - Namespace of elementspublic java.lang.String toString()
toString in interface LLRPEnumerationtoString in class UnsignedBytepublic boolean isValidValue(int value)
isValidValue in interface LLRPEnumerationvalue - to setpublic final int getValue(java.lang.String name)
getValue in interface LLRPEnumerationname - for valuepublic final java.lang.String getName(int value)
getName in interface LLRPEnumerationvalue - of namepublic boolean isValidName(java.lang.String name)
isValidName in interface LLRPEnumerationname - to checkpublic static int length()
Copyright © 2007 ETH Zurich.