Class DynamicStructType
java.lang.Object
org.eclipse.milo.opcua.sdk.core.types.DynamicType
org.eclipse.milo.opcua.sdk.core.types.DynamicStructType
- All Implemented Interfaces:
org.eclipse.milo.opcua.stack.core.types.UaDataType,org.eclipse.milo.opcua.stack.core.types.UaStructuredType
public final class DynamicStructType
extends DynamicType
implements org.eclipse.milo.opcua.stack.core.types.UaStructuredType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdGet theDataTypethat defines this type.org.eclipse.milo.opcua.stack.core.types.structured.StructureDefinitionGet theDataTypeDefinitionthat defines this type.org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdGet the members of this struct.org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdorg.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdinthashCode()static DynamicStructTypenewInstance(DataType dataType) Create a new DynamicStructType using the given DataType.static Supplier<DynamicStructType>newInstanceFactory(DataType dataType) Create a new instance "factory" that produces new DynamicStructType instances of the given DataType.toString()Returns a pretty-printed string representation of this struct.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
-
DynamicStructType
-
-
Method Details
-
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.StructureDefinition 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.
-
getMembers
Get the members of this struct.The members are a map of member names to their values.
- Returns:
- the members of this struct.
-
getTypeId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()- Specified by:
getTypeIdin interfaceorg.eclipse.milo.opcua.stack.core.types.UaDataType
-
getBinaryEncodingId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()- Specified by:
getBinaryEncodingIdin interfaceorg.eclipse.milo.opcua.stack.core.types.UaStructuredType
-
getXmlEncodingId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getXmlEncodingId()- Specified by:
getXmlEncodingIdin interfaceorg.eclipse.milo.opcua.stack.core.types.UaStructuredType
-
getJsonEncodingId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getJsonEncodingId()- Specified by:
getJsonEncodingIdin interfaceorg.eclipse.milo.opcua.stack.core.types.UaStructuredType
-
equals
-
hashCode
public int hashCode() -
toString
-
toStringPretty
Returns a pretty-printed string representation of this struct. Nested structures are indented for better readability.- Returns:
- a pretty-printed string representation of this struct.
-
newInstance
Create a new DynamicStructType using the given DataType.The members of the struct are empty.
- Parameters:
dataType- theDataTypeof the struct.- Returns:
- a new DynamicStructType with the given DataType.
-
newInstanceFactory
Create a new instance "factory" that produces new DynamicStructType instances of the given DataType.- Parameters:
dataType- theDataTypeof the struct.- Returns:
- a new instance "factory".
-