|
||||||||||
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.UnsignedShort org.llrp.ltk.generated.enumerations.StatusCode
public class StatusCode
StatusCode is Enumeration of Type UnsignedShort
Field Summary | |
---|---|
static int |
A_Invalid
|
static int |
A_OutOfRange
|
static int |
M_DuplicateParameter
|
static int |
M_FieldError
|
static int |
M_MissingParameter
|
static int |
M_OverflowField
|
static int |
M_OverflowParameter
|
static int |
M_ParameterError
|
static int |
M_Success
|
static int |
M_UnexpectedParameter
|
static int |
M_UnknownField
|
static int |
M_UnknownParameter
|
static int |
M_UnsupportedMessage
|
static int |
M_UnsupportedParameter
|
static int |
M_UnsupportedVersion
|
static int |
P_DuplicateParameter
|
static int |
P_FieldError
|
static int |
P_MissingParameter
|
static int |
P_OverflowField
|
static int |
P_OverflowParameter
|
static int |
P_ParameterError
|
static int |
P_UnexpectedParameter
|
static int |
P_UnknownField
|
static int |
P_UnknownParameter
|
static int |
P_UnsupportedParameter
|
static int |
R_DeviceError
|
Fields inherited from class org.llrp.ltk.types.UnsignedShort |
---|
value |
Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
---|
signed |
Constructor Summary | |
---|---|
StatusCode()
|
|
StatusCode(org.jdom.Element element)
Create new StatusCode by passing jdom element. |
|
StatusCode(int value)
Create new StatusCode by passing integer value. |
|
StatusCode(LLRPBitList list)
Create new StatusCode by passing LLRPBitList. |
|
StatusCode(java.lang.String name)
Create new StatusCode by passing a string. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.llrp.ltk.types.UnsignedShort |
---|
decodeBinary, decodeXML, encodeBinary, inRange, inRange, intValue, toInteger, toShort, toString |
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 |
Methods inherited from interface org.llrp.ltk.types.LLRPEnumeration |
---|
intValue |
Field Detail |
---|
public static final int M_Success
public static final int M_ParameterError
public static final int M_FieldError
public static final int M_UnexpectedParameter
public static final int M_MissingParameter
public static final int M_DuplicateParameter
public static final int M_OverflowParameter
public static final int M_OverflowField
public static final int M_UnknownParameter
public static final int M_UnknownField
public static final int M_UnsupportedMessage
public static final int M_UnsupportedVersion
public static final int M_UnsupportedParameter
public static final int P_ParameterError
public static final int P_FieldError
public static final int P_UnexpectedParameter
public static final int P_MissingParameter
public static final int P_DuplicateParameter
public static final int P_OverflowParameter
public static final int P_OverflowField
public static final int P_UnknownParameter
public static final int P_UnknownField
public static final int P_UnsupportedParameter
public static final int A_Invalid
public static final int A_OutOfRange
public static final int R_DeviceError
Constructor Detail |
---|
public StatusCode()
public StatusCode(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 StatusCode(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 StatusCode(java.lang.String name)
java.lang.IllegalArgumentException
- if the string does not stand for a valid value.public StatusCode(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)
set
in interface LLRPEnumeration
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(int value)
set
in interface LLRPEnumeration
value
- to be set
java.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 UnsignedShort
name
- returned content should havens
- Namespace of elementspublic java.lang.String toString()
toString
in interface LLRPEnumeration
toString
in class LLRPNumberType
public boolean isValidValue(int value)
isValidValue
in interface LLRPEnumeration
value
- to set
public final int getValue(java.lang.String name)
getValue
in interface LLRPEnumeration
name
- for value
public final java.lang.String getName(int value)
getName
in interface LLRPEnumeration
value
- of name
public boolean isValidName(java.lang.String name)
isValidName
in interface LLRPEnumeration
name
- to check
public static int length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |