|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.typedictionary.DynamicEnumeration
public class DynamicEnumeration
A class to represent (any) custom Enumeration. Used when reading custom Structures with
TypeDictionary.
| Constructor Summary | |
|---|---|
DynamicEnumeration(String valueAsString,
int valueAsInt)
Creates new DynamicEnumeration from the given values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getValue()
Returns the Enumeration value as integer. |
String |
getValueAsString()
Returns the Enumeration value as String. |
int |
hashCode()
|
String |
toString()
|
static DynamicEnumeration |
valueOf(int value)
Creates a DynamicEnumeration with the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicEnumeration(String valueAsString,
int valueAsInt)
DynamicEnumeration from the given values. NOTE! this constructor does not
validate that the given parameters match to an actual Enumeration. If possible,
DynamicEnumerations should be constructed from EnumerationSpecification
instead.
valueAsString - String value for the given integer valuevalueAsInt - value of the Enumeration| Method Detail |
|---|
public static DynamicEnumeration valueOf(int value)
DynamicEnumeration with the given value. String value will be null. NOTE!
this method exists for serialization purposes and should not be called manually. Instead the
DynamicEnumeration should be obtained from EnumerationSpecification.
public boolean equals(Object obj)
equals in class Objectpublic int getValue()
getValue in interface org.opcfoundation.ua.builtintypes.Enumerationpublic String getValueAsString()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||