public class NodeFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
NodeFactory.InstantiationCallback |
| Constructor and Description |
|---|
NodeFactory(UaNodeContext context) |
NodeFactory(UaNodeContext context,
ObjectTypeManager objectTypeManager,
VariableTypeManager variableTypeManager) |
| Modifier and Type | Method and Description |
|---|---|
UaNode |
createNode(NodeId rootNodeId,
ExpandedNodeId typeDefinitionId) |
UaNode |
createNode(NodeId rootNodeId,
ExpandedNodeId typeDefinitionId,
NodeFactory.InstantiationCallback instantiationCallback) |
UaNode |
createNode(NodeId rootNodeId,
NodeId typeDefinitionId) |
UaNode |
createNode(NodeId rootNodeId,
NodeId typeDefinitionId,
NodeFactory.InstantiationCallback instantiationCallback) |
Tree<UaNode> |
createNodeTree(NodeId rootNodeId,
NodeId typeDefinitionId,
NodeFactory.InstantiationCallback instantiationCallback) |
protected UaObjectNode |
instanceFromTypeDefinition(NodeId nodeId,
ObjectTypeNode typeDefinitionNode) |
protected UaVariableNode |
instanceFromTypeDefinition(NodeId nodeId,
VariableTypeNode typeDefinitionNode) |
protected NodeId |
instanceNodeId(NodeId rootNodeId,
BrowsePath browsePath)
Return an appropriate
NodeId for the instance being created. |
static void |
invalidateCachedIdh(NodeId typeDefinitionId)
Invalidate the cached
InstanceDeclarationHierarchy for typeDefinitionId. |
protected boolean |
isOptionalDeclaration(UaNode node) |
protected void |
notifyInstantiationCallback(Tree<UaNode> nodeTree,
NodeFactory.InstantiationCallback instantiationCallback) |
public NodeFactory(UaNodeContext context)
public NodeFactory(UaNodeContext context, ObjectTypeManager objectTypeManager, VariableTypeManager variableTypeManager)
public static void invalidateCachedIdh(NodeId typeDefinitionId)
InstanceDeclarationHierarchy for typeDefinitionId.typeDefinitionId - the NodeId type definition to invalidate.public UaNode createNode(NodeId rootNodeId, NodeId typeDefinitionId) throws UaException
UaExceptionpublic UaNode createNode(NodeId rootNodeId, NodeId typeDefinitionId, NodeFactory.InstantiationCallback instantiationCallback) throws UaException
UaExceptionpublic UaNode createNode(NodeId rootNodeId, ExpandedNodeId typeDefinitionId) throws UaException
UaExceptionpublic UaNode createNode(NodeId rootNodeId, ExpandedNodeId typeDefinitionId, NodeFactory.InstantiationCallback instantiationCallback) throws UaException
UaExceptionpublic Tree<UaNode> createNodeTree(NodeId rootNodeId, NodeId typeDefinitionId, NodeFactory.InstantiationCallback instantiationCallback) throws UaException
UaExceptionprotected void notifyInstantiationCallback(Tree<UaNode> nodeTree, NodeFactory.InstantiationCallback instantiationCallback)
protected NodeId instanceNodeId(NodeId rootNodeId, BrowsePath browsePath)
NodeId for the instance being created.rootNodeId - the root NodeId.browsePath - the relative BrowsePath to the instance being created.NodeId for the instance being created.protected UaObjectNode instanceFromTypeDefinition(NodeId nodeId, ObjectTypeNode typeDefinitionNode)
protected UaVariableNode instanceFromTypeDefinition(NodeId nodeId, VariableTypeNode typeDefinitionNode)
protected boolean isOptionalDeclaration(UaNode node)
Copyright © 2021. All rights reserved.