public final class NodeBuilder<T extends UaInstance> extends Object
| Constructor and Description |
|---|
NodeBuilder(NodeManagerUaNode nodeManager,
UaNodeBuilderConfiguration configuration,
UaType type)
Creates a new NodeBuilder, that creates instances of the given type and uses the factory to
create the nodes.
|
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Builds a new (@link UaInstance) with the structure of the
UaType. |
void |
clear()
Clears all settable fields
|
protected static boolean |
isTypeOnlyReference(com.prosysopc.ua.server.instantiation.ExternalReferenceDeclaration reference) |
NodeBuilder<T> |
setBrowseName(QualifiedName name)
Sets the browse name of the root node of the created UaNode.
|
NodeBuilder<T> |
setDefaultNameSpaceIndex(int defaultNameSpaceIndex)
Sets the default namespace index.
|
NodeBuilder<T> |
setDisplayName(LocalizedText name)
Sets the display name of the root node of the created UaNode.
|
NodeBuilder<T> |
setName(String name)
Sets the name.
|
NodeBuilder<T> |
setNodeId(NodeId id)
Sets the node id of the root node of the created UaNode.
|
public NodeBuilder(NodeManagerUaNode nodeManager, UaNodeBuilderConfiguration configuration, UaType type) throws InvalidTypeNodeException
nodeManager - the node manager to which the node(s) are built. Must not be null.configuration - the configuration options for the builder. Must not be null.type - the UA type of the node(s) to build. Must not be null.InvalidTypeNodeException - if the given type node cannot be used for instantiation.protected static boolean isTypeOnlyReference(com.prosysopc.ua.server.instantiation.ExternalReferenceDeclaration reference)
reference - public T build() throws NodeBuilderException
UaType. Clears settable
fields after building.NodeBuilderException - if node id, browse name or display name could not be deduced for
the new root node.public void clear()
public NodeBuilder<T> setBrowseName(QualifiedName name)
public NodeBuilder<T> setDefaultNameSpaceIndex(int defaultNameSpaceIndex)
public NodeBuilder<T> setDisplayName(LocalizedText name)
public NodeBuilder<T> setName(String name)
public NodeBuilder<T> setNodeId(NodeId id)
Copyright © 2026. All rights reserved.