public class NamespaceManager extends Object
| Constructor and Description |
|---|
NamespaceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespace(Namespace namespace)
Add a
Namespace. |
Namespace |
getNamespace(int index) |
Namespace |
getNamespace(UShort index) |
NamespaceTable |
getNamespaceTable() |
<T extends Namespace> |
registerAndAdd(String namespaceUri,
Function<UShort,T> namespaceFunction)
Register a namespace URI and add the corresponding
Namespace. |
UShort |
registerUri(String namespaceUri)
Register a namespace URI.
|
Optional<NodeId> |
toNodeId(ExpandedNodeId expandedNodeId) |
public UShort registerUri(String namespaceUri)
namespaceUri - the namespace URI to register.registerAndAdd(String, Function)public void addNamespace(Namespace namespace)
Namespace.
The URI must already be registered.
namespace - The Namespace to add.registerUri(String),
registerAndAdd(String, Function)public <T extends Namespace> T registerAndAdd(String namespaceUri, Function<UShort,T> namespaceFunction)
Namespace.
This is a convenience method equivalent to calling registerUri(String) followed by
addNamespace(Namespace).
public Namespace getNamespace(int index)
public NamespaceTable getNamespaceTable()
public Optional<NodeId> toNodeId(ExpandedNodeId expandedNodeId)
Copyright © 2018. All rights reserved.