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(com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort index) |
NamespaceTable |
getNamespaceTable() |
<T extends Namespace> |
registerAndAdd(String namespaceUri,
java.util.function.Function<com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort,T> namespaceFunction)
Register a namespace URI and add the corresponding
Namespace. |
com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort |
registerUri(String namespaceUri)
Register a namespace URI.
|
Optional<com.digitalpetri.opcua.stack.core.types.builtin.NodeId> |
toNodeId(com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId expandedNodeId) |
public com.digitalpetri.opcua.stack.core.types.builtin.unsigned.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, java.util.function.Function<com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort,T> namespaceFunction)
Namespace.
This is a convenience method equivalent to calling registerUri(String) followed by
addNamespace(Namespace).
public Namespace getNamespace(int index)
public Namespace getNamespace(com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort index)
public NamespaceTable getNamespaceTable()
public Optional<com.digitalpetri.opcua.stack.core.types.builtin.NodeId> toNodeId(com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId expandedNodeId)
Copyright © 2015. All rights reserved.