Enum Constant and Description |
---|
Boolean |
Byte |
ByteString |
DataValue |
DateTime |
DiagnosticInfo |
Double |
ExpandedNodeId |
ExtensionObject |
Float |
Guid |
Int16 |
Int32 |
Int64 |
LocalizedText |
NodeId |
QualifiedName |
StatusCode |
String |
UByte |
UInt16 |
UInt32 |
UInt64 |
Variant |
XmlElement |
Modifier and Type | Method and Description |
---|---|
static DataType |
fromString(java.lang.String s) |
java.lang.Class<?> |
getBasicJavaClass() |
static DataType |
getDataTypeForClass(java.lang.Class<?> clazz)
Returns the DataType enum for the given java class.
|
static DataType |
getDataTypeForId(int id)
Returns the DataType enum for the given id.
|
static DataType |
getDataTypeForNodeId(NodeId nodeId) |
java.lang.String |
getDescription() |
int |
getId()
Returns the integer ID for the type as defined in OPC-UA Part 6 Table 1
|
java.lang.Class<?> |
getJavaClass() |
NodeId |
getNodeId() |
java.lang.Integer |
getNumBytes()
Returns the number of bytes expected for the data type.
|
boolean |
isNumeric() |
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType Boolean
public static final DataType Byte
public static final DataType UByte
public static final DataType Int16
public static final DataType UInt16
public static final DataType Int32
public static final DataType UInt32
public static final DataType Int64
public static final DataType UInt64
public static final DataType Float
public static final DataType Double
public static final DataType String
public static final DataType DateTime
public static final DataType Guid
public static final DataType ByteString
public static final DataType XmlElement
public static final DataType NodeId
public static final DataType ExpandedNodeId
public static final DataType StatusCode
public static final DataType QualifiedName
public static final DataType LocalizedText
public static final DataType ExtensionObject
public static final DataType DataValue
public static final DataType Variant
public static final DataType DiagnosticInfo
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<?> getJavaClass()
public java.lang.Class<?> getBasicJavaClass()
public int getId()
public java.lang.Integer getNumBytes()
public boolean isNumeric()
public static DataType getDataTypeForId(int id)
public static DataType getDataTypeForClass(java.lang.Class<?> clazz)
public static DataType fromString(java.lang.String s)
public NodeId getNodeId()
public java.lang.String getDescription()