public class DynamicStructure extends AbstractStructure
Structure implementation that can represent any OPC UA Structure type (an individual
instance however is locked type-wise once created). In the current SDK, all Structures shall be
represented by instances of this class or a subtype of this class in the case of Codegen code.
Note that only the SDK itself or Codegen code should make subtypes of this class.
Instances of this class shouldn't be created manually (i.e. the deprecated methods of this
class), instead use the StructureSpecification.toInstanceBuilder() to get a
Structure.Builder and use that to construct the Structure instance, which ensures
the proper type-specific subtype is used, if one is Codegen or if one is not, then the "most
Codegen subtype" (of the inheritance chain; or DynamicStructure if none exist) is used
instead and any added fields of subtypes must be obtained by using the generic processing logic
of the Structure interface in addition with
StructureSpecification/FieldSpecification.| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicStructure.Builder
Builder class for
DynamicStructure. |
Structure.MapKind<T>UaNamespaceTranslateable.ContextSPECIFICATION| Modifier | Constructor and Description |
|---|---|
|
DynamicStructure(StructureSpecification specification)
Deprecated.
Use
StructureSpecification.toInstanceBuilder() to get a
Structure.Builder and use that to construct the Structure instance. |
protected |
DynamicStructure(UaDataTypeSpecification specification) |
| Modifier and Type | Method and Description |
|---|---|
static DynamicStructure.Builder |
builder(StructureSpecification specification)
Deprecated.
Use
StructureSpecification.toInstanceBuilder() to get a
Structure.Builder and use that to construct the Structure instance. |
DynamicStructure |
clone()
Clones the Structure.
|
clear, equals, forEachField, forEachField, get, get, hashCode, indexGet, indexSet, set, set, specification, toBuilder, toFieldNamesMap, toFieldNamesMap, toFieldsMap, toFieldsMap, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitreduceFields, reduceFields, toMap, withTranslatedNamespaces@Deprecated public DynamicStructure(StructureSpecification specification)
StructureSpecification.toInstanceBuilder() to get a
Structure.Builder and use that to construct the Structure instance.IllegalArgumentException if the given StructureSpecification represents a
Codegen Structure type. It is recommended instead to use
StructureSpecification.toInstanceBuilder() to get a Structure.Builder and use
that to construct the Structure instance.specification - the specification, shall not be nullprotected DynamicStructure(UaDataTypeSpecification specification)
@Deprecated public static DynamicStructure.Builder builder(StructureSpecification specification)
StructureSpecification.toInstanceBuilder() to get a
Structure.Builder and use that to construct the Structure instance.IllegalArgumentException if
the given StructureSpecification represents a Codegen Structure type. It is recommended
instead to use StructureSpecification.toInstanceBuilder() to get a
Structure.Builder and use that to construct the Structure instance.public DynamicStructure clone()
AbstractStructureCloneNotSupportedException
as all Structures must be cloneable.clone in interface Structureclone in class AbstractStructureCopyright © 2026. All rights reserved.