public final class NodeId extends Object
Modifier and Type | Field and Description |
---|---|
static NodeId |
NULL_GUID |
static NodeId |
NULL_NUMERIC |
static NodeId |
NULL_OPAQUE |
static NodeId |
NULL_STRING |
static NodeId |
NULL_VALUE |
Constructor and Description |
---|
NodeId(int namespaceIndex,
ByteString identifier) |
NodeId(int namespaceIndex,
int identifier) |
NodeId(int namespaceIndex,
String identifier) |
NodeId(int namespaceIndex,
UInteger identifier) |
NodeId(int namespaceIndex,
UUID identifier) |
NodeId(UShort namespaceIndex,
ByteString identifier) |
NodeId(UShort namespaceIndex,
int identifier) |
NodeId(UShort namespaceIndex,
String identifier) |
NodeId(UShort namespaceIndex,
UInteger identifier) |
NodeId(UShort namespaceIndex,
UUID identifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ExpandedNodeId |
expanded() |
Object |
getIdentifier() |
UShort |
getNamespaceIndex() |
IdType |
getType() |
int |
hashCode() |
boolean |
isNotNull() |
boolean |
isNull() |
static NodeId |
parse(String s) |
static Optional<NodeId> |
parseSafe(String s) |
NodeId |
reindex(NamespaceTable namespaceTable,
String namespaceUri)
Re-index this
NodeId from its current namespace index to the index for namespaceUri . |
String |
toParseableString() |
String |
toString() |
NodeId |
withId(ByteString id)
Return a new
NodeId with id . |
NodeId |
withId(String id)
Return a new
NodeId with id . |
NodeId |
withId(UInteger id)
Return a new
NodeId with id . |
NodeId |
withId(UUID id)
Return a new
NodeId with id . |
NodeId |
withNamespaceIndex(UShort namespaceIndex)
Return a new
NodeId with namespaceIndex . |
public static final NodeId NULL_NUMERIC
public static final NodeId NULL_STRING
public static final NodeId NULL_GUID
public static final NodeId NULL_OPAQUE
public static final NodeId NULL_VALUE
public NodeId(int namespaceIndex, int identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(int namespaceIndex, UInteger identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(int namespaceIndex, String identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(int namespaceIndex, UUID identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(int namespaceIndex, ByteString identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(UShort namespaceIndex, UInteger identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(UShort namespaceIndex, int identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(UShort namespaceIndex, String identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(UShort namespaceIndex, UUID identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public NodeId(UShort namespaceIndex, ByteString identifier)
namespaceIndex
- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier
- the identifier for a node in the address space of an OPC UA Server.public UShort getNamespaceIndex()
public Object getIdentifier()
public IdType getType()
public ExpandedNodeId expanded()
public boolean isNull()
public boolean isNotNull()
public NodeId reindex(NamespaceTable namespaceTable, String namespaceUri)
NodeId
from its current namespace index to the index for namespaceUri
.
If the target namespace URI is not present in the namespace table this NodeId
is returned.
namespaceTable
- the NamespaceTable
.namespaceUri
- the target namespace URI.NodeId
in the namespace index indicated by namespaceUri
.public NodeId withId(UInteger id)
NodeId
with id
.id
- the new identifier.NodeId
with id
.public NodeId withId(String id)
NodeId
with id
.id
- the new identifier.NodeId
with id
.public NodeId withId(UUID id)
NodeId
with id
.id
- the new identifier.NodeId
with id
.public NodeId withId(ByteString id)
NodeId
with id
.id
- the new identifier.NodeId
with id
.public NodeId withNamespaceIndex(UShort namespaceIndex)
NodeId
with namespaceIndex
.namespaceIndex
- the new namespace index.NodeId
with namespaceIndex
.public String toParseableString()
Copyright © 2020. All rights reserved.