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(ExpandedNodeId xni)
Deprecated.
use
equalTo(ExpandedNodeId) instead. |
boolean |
equals(ExpandedNodeId xni,
NamespaceTable namespaceTable)
Deprecated.
use
equalTo(ExpandedNodeId, NamespaceTable) instead. |
boolean |
equals(Object o) |
boolean |
equalTo(ExpandedNodeId xni)
Check if this
NodeId is equal to xni. |
boolean |
equalTo(ExpandedNodeId xni,
NamespaceTable namespaceTable)
Check if this
NodeId is equal to xni. |
ExpandedNodeId |
expanded()
Convert this NodeId to a relative
ExpandedNodeId. |
ExpandedNodeId |
expanded(NamespaceTable namespaceTable)
Convert this NodeId to an absolute
ExpandedNodeId, using namespaceTable to convert the
namespace index to a namespace URI. |
Object |
getIdentifier() |
UShort |
getNamespaceIndex() |
IdType |
getType() |
int |
hashCode() |
boolean |
isNotNull() |
boolean |
isNull() |
static NodeId |
parse(@NotNull String s) |
static @Nullable NodeId |
parseOrNull(@NotNull String s) |
static Optional<NodeId> |
parseSafe(@NotNull 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()
ExpandedNodeId.ExpandedNodeId.ExpandedNodeId.isRelative()public ExpandedNodeId expanded(NamespaceTable namespaceTable)
ExpandedNodeId, using namespaceTable to convert the
namespace index to a namespace URI.namespaceTable - a NamespaceTable to look up the namespace URI in.ExpandedNodeId.ExpandedNodeId.isAbsolute()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.@Deprecated public boolean equals(ExpandedNodeId xni)
equalTo(ExpandedNodeId) instead.NodeId is equal to xni.
To be considered equal xni must be in serverIndex == 0, have a namespace index that is equal this
namespace index, or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
xni - the ExpandedNodeId to check equality against.true if this NodeId is equal to xni.@Deprecated public boolean equals(ExpandedNodeId xni, NamespaceTable namespaceTable)
equalTo(ExpandedNodeId, NamespaceTable) instead.NodeId is equal to xni.
To be considered equal xni must be in serverIndex == 0, have a namespace index that is equal this
namespace index, or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
xni - the ExpandedNodeId to check equality against.namespaceTable - the NamespaceTable used to look up the index of a namespace URI.true if this NodeId is equal to xni.public boolean equalTo(ExpandedNodeId xni)
NodeId is equal to xni.
To be considered equal xni must be in serverIndex == 0, have a namespace index that is equal this
namespace index, or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
xni - the ExpandedNodeId to check equality against.true if this NodeId is equal to xni.public boolean equalTo(ExpandedNodeId xni, NamespaceTable namespaceTable)
NodeId is equal to xni.
To be considered equal xni must be in serverIndex == 0, have a namespace index that is equal this
namespace index, or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
xni - the ExpandedNodeId to check equality against.namespaceTable - the NamespaceTable used to look up the index of a namespace URI.true if this NodeId is equal to xni.public String toParseableString()
public static NodeId parse(@NotNull @NotNull String s) throws UaRuntimeException
UaRuntimeExceptionCopyright © 2025. All rights reserved.