public interface NodeManager<T extends Node>
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
addNode(T node)
|
void |
addReference(Reference reference)
Add
reference to this NodeManager. |
void |
addReferences(Reference reference,
NamespaceTable namespaceTable)
Add
reference and its inverse to this NodeManager. |
boolean |
containsNode(ExpandedNodeId nodeId,
NamespaceTable namespaceTable)
|
default boolean |
containsNode(Node node)
|
boolean |
containsNode(NodeId nodeId)
|
default T |
get(ExpandedNodeId nodeId,
NamespaceTable namespaceTable)
|
default T |
get(NodeId nodeId)
|
Optional<T> |
getNode(ExpandedNodeId nodeId,
NamespaceTable namespaceTable)
|
Optional<T> |
getNode(NodeId nodeId)
Get the Node identified by
nodeId from this NodeManager, if it exists. |
List<Reference> |
getReferences(NodeId nodeId)
|
List<Reference> |
getReferences(NodeId nodeId,
Predicate<Reference> filter)
|
Optional<T> |
removeNode(ExpandedNodeId nodeId,
NamespaceTable namespaceTable)
|
Optional<T> |
removeNode(NodeId nodeId)
Remove the Node identified by
nodeId from this NodeManager, if it exists. |
default Optional<T> |
removeNode(T node)
Remove
node from this NodeManager, if it exists. |
void |
removeReference(Reference reference)
Remove
reference from this NodeManager. |
void |
removeReferences(Reference reference,
NamespaceTable namespaceTable)
Remove
reference and its inverse from this NodeManager. |
boolean containsNode(NodeId nodeId)
nodeId - the NodeId.true if this NodeManager contains the Node identified by nodeId.boolean containsNode(ExpandedNodeId nodeId, NamespaceTable namespaceTable)
nodeId - the ExpandedNodeId to check.namespaceTable - the NamespaceTable.true if this NodeManager contains nodeId.Optional<T> getNode(NodeId nodeId)
nodeId from this NodeManager, if it exists.nodeId - the NodeId identifying the Node to get.nodeId from this NodeManager, if it exists.Optional<T> getNode(ExpandedNodeId nodeId, NamespaceTable namespaceTable)
Node identified by nodeId from this NodeManager, or null if it does not
exist.
Returns false if nodeId is non-local.
nodeId - the ExpandedNodeId identifying the Node to get.namespaceTable - the NamespaceTable.Node identified by nodeId from this NodeManager or null if it does
not exist.Optional<T> removeNode(NodeId nodeId)
nodeId from this NodeManager, if it exists.nodeId - the NodeId identifying the Node to remove.NodeManager, if it exists.Optional<T> removeNode(ExpandedNodeId nodeId, NamespaceTable namespaceTable)
Node identified by nodeId from this NodeManager, if it exists.
Returns Optional.empty() if nodeId is non-local.
nodeId - the ExpandedNodeId identifying the Node to get.namespaceTable - the NamespaceTable.Node identified by nodeId from this NodeManager, if it exists.void addReference(Reference reference)
reference to this NodeManager.reference - the Reference to add.void addReferences(Reference reference, NamespaceTable namespaceTable)
reference and its inverse to this NodeManager.reference - the Reference to add.namespaceTable - the NamespaceTable.void removeReference(Reference reference)
reference from this NodeManager.reference - the Reference to remove.void removeReferences(Reference reference, NamespaceTable namespaceTable)
reference and its inverse from this NodeManager.reference - the Reference to remove.namespaceTable - the NamespaceTable.default boolean containsNode(Node node)
node - the Node to check.true if this NodeManager contains node.@Nullable default T get(NodeId nodeId)
nodeId - the NodeId identifying the Node to get.nodeId from this NodeManager or null if it does not exist.@Nullable default T get(ExpandedNodeId nodeId, NamespaceTable namespaceTable)
nodeId - the NodeId identifying the Node to get.namespaceTable - the NamespaceTable.Node identified by nodeId from this NodeManager or null if it does
not exist.default Optional<T> removeNode(T node)
node from this NodeManager, if it exists.node - the Node to remove.Node removed from this NodeManager, if it exists.Copyright © 2021. All rights reserved.