public static interface NodeFactory.InstantiationCallback
| Modifier and Type | Method and Description |
|---|---|
default boolean |
includeOptionalNode(NodeId typeDefinitionId,
QualifiedName browseName)
Called determine whether the optional member named
browseName should be added to an instantiated
Node of the type identified by typeDefinitionId |
default void |
onMethodAdded(@Nullable UaObjectNode parent,
UaMethodNode instance)
Called when a
UaMethodNode has been added to a UaObjectNode somewhere in the instance
hierarchy. |
default void |
onObjectAdded(@Nullable UaNode parent,
UaObjectNode instance,
NodeId typeDefinitionId)
Called when a
UaObjectNode has been added to a parent UaNode by a hierarchical
reference somewhere in the instance hierarchy. |
default void |
onVariableAdded(@Nullable UaNode parent,
UaVariableNode instance,
NodeId typeDefinitionId)
Called when a
UaVariableNode has been added to a parent UaNode by a hierarchical
reference somewhere in the instance hierarchy. |
default boolean includeOptionalNode(NodeId typeDefinitionId, QualifiedName browseName)
browseName should be added to an instantiated
Node of the type identified by typeDefinitionIdtypeDefinitionId - the type definition id of the UaNode being instantiated.browseName - the QualifiedName of the optional member.true if the optional member named browseName should be added.default void onMethodAdded(@Nullable
@Nullable UaObjectNode parent,
UaMethodNode instance)
UaMethodNode has been added to a UaObjectNode somewhere in the instance
hierarchy.parent - the UaObjectNode the method was added to.instance - the UaMethodNode instance.default void onObjectAdded(@Nullable
@Nullable UaNode parent,
UaObjectNode instance,
NodeId typeDefinitionId)
UaObjectNode has been added to a parent UaNode by a hierarchical
reference somewhere in the instance hierarchy.
If parent is null then instance is the root of the instance hierarchy.
parent - the parent UaNode.instance - the UaObjectNode instance.typeDefinitionId - the NodeId of the ObjectTypeDefinition.default void onVariableAdded(@Nullable
@Nullable UaNode parent,
UaVariableNode instance,
NodeId typeDefinitionId)
UaVariableNode has been added to a parent UaNode by a hierarchical
reference somewhere in the instance hierarchy.
If parent is null then instance is the root of the instance hierarchy.
parent - the parent UaNode.instance - the UaVariableNode instance.typeDefinitionId - the NodeId of the VariableTypeDefinition.Copyright © 2021. All rights reserved.