|
||||||||||
| 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.LLRPNumberType
org.llrp.ltk.types.UnsignedShort
org.llrp.ltk.generated.enumerations.CommunicationsStandard
public class CommunicationsStandard
CommunicationsStandard is Enumeration of Type UnsignedShort
| Field Summary | |
|---|---|
static int |
Australia_LIPD_1W
|
static int |
Australia_LIPD_4W
|
static int |
ETSI_300_220
|
static int |
ETSI_302_208
|
static int |
Hong_Kong_OFTA_1049
|
static int |
Japan_ARIB_STD_T89
|
static int |
Korea_MIC_Article_5_2
|
static int |
Taiwan_DGT_LP0002
|
static int |
Unspecified
|
static int |
US_FCC_Part_15
|
| Fields inherited from class org.llrp.ltk.types.UnsignedShort |
|---|
value |
| Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
signed |
| Constructor Summary | |
|---|---|
CommunicationsStandard()
|
|
CommunicationsStandard(org.jdom.Element element)
Create new CommunicationsStandard by passing jdom element. |
|
CommunicationsStandard(int value)
Create new CommunicationsStandard by passing integer value. |
|
CommunicationsStandard(LLRPBitList list)
Create new CommunicationsStandard by passing LLRPBitList. |
|
CommunicationsStandard(java.lang.String name)
Create new CommunicationsStandard 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 Unspecified
public static final int US_FCC_Part_15
public static final int ETSI_302_208
public static final int ETSI_300_220
public static final int Australia_LIPD_1W
public static final int Australia_LIPD_4W
public static final int Japan_ARIB_STD_T89
public static final int Hong_Kong_OFTA_1049
public static final int Taiwan_DGT_LP0002
public static final int Korea_MIC_Article_5_2
| Constructor Detail |
|---|
public CommunicationsStandard()
public CommunicationsStandard(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 CommunicationsStandard(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 CommunicationsStandard(java.lang.String name)
java.lang.IllegalArgumentException - if the string does not stand for a valid value.public CommunicationsStandard(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 LLRPEnumerationname - 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 LLRPEnumerationvalue - 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 UnsignedShortname - returned content should havens - Namespace of elementspublic java.lang.String toString()
toString in interface LLRPEnumerationtoString in class LLRPNumberTypepublic 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 | |||||||||