Class DynamicEnumType
java.lang.Object
org.eclipse.milo.opcua.sdk.core.types.DynamicType
org.eclipse.milo.opcua.sdk.core.types.DynamicEnumType
- All Implemented Interfaces:
org.eclipse.milo.opcua.stack.core.types.UaDataType,org.eclipse.milo.opcua.stack.core.types.UaEnumeratedType
public final class DynamicEnumType
extends DynamicType
implements org.eclipse.milo.opcua.stack.core.types.UaEnumeratedType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet theDataTypethat defines this type.org.eclipse.milo.opcua.stack.core.types.structured.EnumDefinitionGet theDataTypeDefinitionthat defines this type.org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedTextGet the description associated with this enum value.org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedTextGet the display name associated with this enum value.getName()Get the name associated with this enum value.org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdintgetValue()inthashCode()static DynamicEnumTypenewInstance(DataType dataType, int value) Create a new DynamicEnumType using the given DataType and value.static Function<Integer,DynamicEnumType> newInstanceFactory(DataType dataType) Create a new instance "factory" that produces new DynamicEnumType instances of the given DataType.toString()Methods inherited from class org.eclipse.milo.opcua.sdk.core.types.DynamicType
getTypeNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.milo.opcua.stack.core.types.UaDataType
getTypeName
-
Constructor Details
-
DynamicEnumType
-
-
Method Details
-
getTypeId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()- Specified by:
getTypeIdin interfaceorg.eclipse.milo.opcua.stack.core.types.UaDataType
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.milo.opcua.stack.core.types.UaEnumeratedType
-
getDataType
Description copied from class:DynamicTypeGet theDataTypethat defines this type.- Specified by:
getDataTypein classDynamicType- Returns:
- the
DataTypethat defines this type.
-
getDataTypeDefinition
public org.eclipse.milo.opcua.stack.core.types.structured.EnumDefinition getDataTypeDefinition()Description copied from class:DynamicTypeGet theDataTypeDefinitionthat defines this type.Subclasses may refine the return type to either
EnumDefinitionorStructureDefinition.- Specified by:
getDataTypeDefinitionin classDynamicType- Returns:
- the
DataTypeDefinitionthat defines this type.
-
getName
Get the name associated with this enum value.- Specified by:
getNamein interfaceorg.eclipse.milo.opcua.stack.core.types.UaEnumeratedType- Returns:
- the name associated with this enum value.
-
getDisplayName
public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText getDisplayName()Get the display name associated with this enum value.- Returns:
- the display name associated with this enum value.
-
getDescription
public org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText getDescription()Get the description associated with this enum value.- Returns:
- the description associated with this enum value.
-
equals
-
hashCode
public int hashCode() -
toString
-
newInstance
Create a new DynamicEnumType using the given DataType and value.- Parameters:
dataType- theDataTypeof the enum.value- the value of the enum.- Returns:
- a new DynamicEnumType with the given DataType and value.
-
newInstanceFactory
Create a new instance "factory" that produces new DynamicEnumType instances of the given DataType.- Parameters:
dataType- theDataTypeof the enum.- Returns:
- a new instance "factory".
-