public final class ExpandedNodeId extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpandedNodeId.Builder |
| Modifier and Type | Field and Description |
|---|---|
static ExpandedNodeId |
NULL_VALUE |
| Constructor and Description |
|---|
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
ByteString identifier) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
ByteString identifier,
UInteger serverIndex) |
ExpandedNodeId(@NotNull UShort namespaceIndex,
@Nullable String namespaceUri,
@Nullable Object identifier,
@NotNull UInteger serverIndex) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
String identifier) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
String identifier,
UInteger serverIndex) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
UInteger identifier) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
UInteger identifier,
UInteger serverIndex) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
UUID identifier) |
ExpandedNodeId(UShort namespaceIndex,
String namespaceUri,
UUID identifier,
UInteger serverIndex) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ExpandedNodeId> |
absolute(NamespaceTable namespaceTable)
Convert this
ExpandedNodeId to an absolute ExpandedNodeId if not already. |
boolean |
equals(NodeId nodeId)
Deprecated.
use
equalTo(NodeId) instead. |
boolean |
equals(NodeId nodeId,
NamespaceTable namespaceTable)
Deprecated.
use
equalTo(NodeId, NamespaceTable) instead. |
boolean |
equals(Object o) |
boolean |
equalTo(NodeId nodeId)
Check if this
ExpandedNodeId is equal to nodeId. |
boolean |
equalTo(NodeId nodeId,
NamespaceTable namespaceTable)
Check if this
ExpandedNodeId is equal to nodeId. |
Object |
getIdentifier()
Get the identifier object of this
ExpandedNodeId. |
UShort |
getNamespaceIndex()
Get the namespace index of this
ExpandedNodeId. |
@Nullable String |
getNamespaceUri()
Get the namespace URI of this
ExpandedNodeId. |
UInteger |
getServerIndex()
Get the server index of this
ExpandedNodeId. |
IdType |
getType()
Get the
IdType of this ExpandedNodeId. |
int |
hashCode() |
boolean |
isAbsolute() |
boolean |
isLocal() |
boolean |
isNotNull() |
boolean |
isNull() |
boolean |
isRelative() |
Optional<NodeId> |
local(NamespaceTable namespaceTable)
Deprecated.
use
toNodeId(NamespaceTable) instead. |
NodeId |
localOrThrow(NamespaceTable namespaceTable)
Deprecated.
use
toNodeIdOrThrow(NamespaceTable) instead. |
static ExpandedNodeId.Builder |
newBuilder()
Return a new
ExpandedNodeId.Builder. |
static ExpandedNodeId |
parse(String s)
Parse
s into an ExpandedNodeId. |
static @Nullable ExpandedNodeId |
parseOrNull(@NotNull String s)
|
static Optional<ExpandedNodeId> |
parseSafe(@NotNull String s)
Parse
s into an Optional containing an ExpandedNodeId, or return
Optional.empty()} if parsing fails. |
ExpandedNodeId |
reindex(NamespaceTable namespaceTable,
String namespaceUri)
Re-index this
ExpandedNodeId from its current namespace index to the index for
namespaceUri in namespaceTable. |
Optional<ExpandedNodeId> |
relative(NamespaceTable namespaceTable)
Convert this
ExpandedNodeId to a relative ExpandedNodeId if not already. |
Optional<NodeId> |
toNodeId(NamespaceTable namespaceTable)
If this
ExpandedNodeId resides on the local server (serverIndex == 0), return its representation
as a local NodeId. |
NodeId |
toNodeIdOrThrow(NamespaceTable namespaceTable)
Like
toNodeId(NamespaceTable), but throws if the node is not local or the namespace is not registered. |
String |
toParseableString() |
String |
toString() |
public static final ExpandedNodeId NULL_VALUE
public ExpandedNodeId(UShort namespaceIndex, String namespaceUri, UInteger identifier)
public ExpandedNodeId(UShort namespaceIndex, String namespaceUri, UInteger identifier, UInteger serverIndex)
public ExpandedNodeId(UShort namespaceIndex, String namespaceUri, String identifier, UInteger serverIndex)
public ExpandedNodeId(UShort namespaceIndex, String namespaceUri, ByteString identifier)
public ExpandedNodeId(UShort namespaceIndex, String namespaceUri, ByteString identifier, UInteger serverIndex)
public ExpandedNodeId(UShort namespaceIndex, String namespaceUri, UUID identifier, UInteger serverIndex)
public Object getIdentifier()
ExpandedNodeId.ExpandedNodeId.public IdType getType()
IdType of this ExpandedNodeId.IdType of this ExpandedNodeId.public UShort getNamespaceIndex()
ExpandedNodeId.
This value shall be ignored if getNamespaceUri() is non-null.
ExpandedNodeId.@Nullable public @Nullable String getNamespaceUri()
ExpandedNodeId.ExpandedNodeId.public UInteger getServerIndex()
ExpandedNodeId.ExpandedNodeId.public boolean isAbsolute()
true if this ExpandedNodeId is absolute, i.e. it specifies a namespace URI instead of a
namespace index.public boolean isRelative()
true if this ExpandedNodeId is relative, i.e. it specifies a namespace index instead of a
namespace URI, and is therefore defined relative to some NamespaceTable.public boolean isLocal()
true if this ExpandedNodeId is local (serverIndex == 0).public boolean isNull()
true if this ExpandedNodeId is null.public boolean isNotNull()
public Optional<ExpandedNodeId> absolute(NamespaceTable namespaceTable)
ExpandedNodeId to an absolute ExpandedNodeId if not already.
An absolute ExpandedNodeId is one that defines the namespace URI rather than namespace index.
Returns Optional.empty() if the URI is not found in the namespace table.
namespaceTable - the NamespaceTable to use when converting the index to URI.isAbsolute()public Optional<ExpandedNodeId> relative(NamespaceTable namespaceTable)
ExpandedNodeId to a relative ExpandedNodeId if not already.
A relative ExpandedNodeId is one that defines the namespace index rather than namespace URI.
Returns Optional.empty() if the URI is not found in the namespace table.
namespaceTable - the NamespaceTable to use when converting the URI to index.isRelative()public ExpandedNodeId reindex(NamespaceTable namespaceTable, String namespaceUri)
ExpandedNodeId from its current namespace index to the index for
namespaceUri in namespaceTable.
If the target namespace URI is not present in the namespace table this ExpandedNodeId is returned.
namespaceTable - the NamespaceTable.namespaceUri - the target namespace URI.NodeId in the namespace index indicated by namespaceUri.@Deprecated public Optional<NodeId> local(NamespaceTable namespaceTable)
toNodeId(NamespaceTable) instead.ExpandedNodeId resides on the local server (serverIndex == 0), return its representation
as a local NodeId.
If this ExpandedNodeId specifies a namespace URI instead of a namespace index then the URI must exist in
namespaceTable or Optional.empty() is returned.
namespaceTable - the NamespaceTable.NodeId, if serverIndex == 0 and the namespace index can be determined.@Deprecated public NodeId localOrThrow(NamespaceTable namespaceTable) throws Exception
toNodeIdOrThrow(NamespaceTable) instead.local(NamespaceTable), but throws if the node is not local or the namespace is not registered.namespaceTable - the NamespaceTable.NodeId.Exception - if the node is not local or the namespace is not registered.public Optional<NodeId> toNodeId(NamespaceTable namespaceTable)
ExpandedNodeId resides on the local server (serverIndex == 0), return its representation
as a local NodeId.
If this ExpandedNodeId specifies a namespace URI instead of a namespace index then the URI must exist in
namespaceTable or Optional.empty() is returned.
namespaceTable - the NamespaceTable.NodeId, if serverIndex == 0 and the namespace index can be determined.public NodeId toNodeIdOrThrow(NamespaceTable namespaceTable) throws Exception
toNodeId(NamespaceTable), but throws if the node is not local or the namespace is not registered.namespaceTable - the NamespaceTable.NodeId.Exception - if the node is not local or the namespace is not registered.@Deprecated public boolean equals(NodeId nodeId)
equalTo(NodeId) instead.ExpandedNodeId is equal to nodeId.
To be considered equal this ExpandedNodeId must be in serverIndex == 0, have the same namespace index as
nodeId or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
nodeId - the NodeId to check equality against.true if this ExpandedNodeId is equal to nodeId.@Deprecated public boolean equals(NodeId nodeId, NamespaceTable namespaceTable)
equalTo(NodeId, NamespaceTable) instead.ExpandedNodeId is equal to nodeId.
To be considered equal this ExpandedNodeId must be in serverIndex == 0, have the same namespace index as
nodeId or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
nodeId - the NodeId to check equality against.namespaceTable - the NamespaceTable used to look up the index of a namespace URI.true if this ExpandedNodeId is equal to nodeId.public boolean equalTo(NodeId nodeId)
ExpandedNodeId is equal to nodeId.
To be considered equal this ExpandedNodeId must be in serverIndex == 0, have the same namespace index as
nodeId or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
nodeId - the NodeId to check equality against.true if this ExpandedNodeId is equal to nodeId.public boolean equalTo(NodeId nodeId, NamespaceTable namespaceTable)
ExpandedNodeId is equal to nodeId.
To be considered equal this ExpandedNodeId must be in serverIndex == 0, have the same namespace index as
nodeId or have a namespace URI at the same index in the default namespace table, and an equal
identifier.
nodeId - the NodeId to check equality against.namespaceTable - the NamespaceTable used to look up the index of a namespace URI.true if this ExpandedNodeId is equal to nodeId.public String toParseableString()
public static ExpandedNodeId parse(String s)
s into an ExpandedNodeId.s - the String to parse.ExpandedNodeId.UaRuntimeException - if parsing fails.@Nullable public static @Nullable ExpandedNodeId parseOrNull(@NotNull @NotNull String s)
s - the String to parse.ExpandedNodeId or null if parsing fails.public static Optional<ExpandedNodeId> parseSafe(@NotNull @NotNull String s)
s into an Optional containing an ExpandedNodeId, or return
Optional.empty()} if parsing fails.s - the String to parse.ExpandedNodeId, or Optional.empty() if parsing fails.public static ExpandedNodeId.Builder newBuilder()
ExpandedNodeId.Builder.ExpandedNodeId.Builder.Copyright © 2025. All rights reserved.