public final class ExpandedNodeId extends Object implements Comparable<ExpandedNodeId>, UaNamespaceTranslateable<ExpandedNodeId>
equals(Object) should not be used, it exists for historical reasons.
NamespaceTable.nodeIdEquals(ExpandedNodeId, ExpandedNodeId) should be used instead, since
it can compare NamespaceIndex form with NamespaceURI form.UaNamespaceTranslateable.Context| Modifier and Type | Field and Description |
|---|---|
static ExpandedNodeId[] |
EMPTY_ARRAY |
static NodeId |
ID
Deprecated.
use
Identifiers.ExpandedNodeId instead. |
static ExpandedNodeId |
NULL
Constant
NULL |
static ExpandedNodeId |
NULL_GUID
Constant
NULL_GUID |
static ExpandedNodeId |
NULL_NUMERIC
Considered null node id
|
static ExpandedNodeId |
NULL_OPAQUE
Constant
NULL_OPAQUE |
static ExpandedNodeId |
NULL_STRING
Constant
NULL_STRING |
| Constructor and Description |
|---|
ExpandedNodeId(NodeId nodeId)
Convenience constructor that creates a local ExpandedNodeId from the NamespaceIndex and
Identifier of a NodeId.
|
ExpandedNodeId(String namespaceUri,
Object value)
Convenience constructor that creates ExpandedNodeId from namespaceUri and value.
|
ExpandedNodeId(UnsignedInteger serverIndex,
int namespaceIndex,
Object value)
Construct ExpandedNodeId using NamespaceIndex.
|
ExpandedNodeId(UnsignedInteger serverIndex,
NodeId nodeId)
Convenience constructor that creates ExpandedNodeId from NamespaceIndex and Identifier of an
nodeId.
|
ExpandedNodeId(UnsignedInteger serverIndex,
String namespaceUri,
Object value)
Construct ExpandedNodeId using NamespaceUri.
|
| Modifier and Type | Method and Description |
|---|---|
static ExpandedNodeId[] |
arrayFrom(UaExpandedNodeId[] nodeIds,
ServerTable serverTable)
Converts an array of
UaExpandedNodeId to an array ofExpandedNodeId in the
context of the given NamespaceTable (effectively calling
from(UaExpandedNodeId, ServerTable) for each element). |
int |
compareTo(ExpandedNodeId other) |
boolean |
equals(NodeId obj)
Deprecated.
use
NamespaceTable.nodeIdEquals(NodeId, ExpandedNodeId) instead. |
boolean |
equals(Object obj)
Deprecated.
|
static ExpandedNodeId |
from(UaExpandedNodeId nodeId,
ServerTable serverTable)
Converts the given
UaExpandedNodeId to ExpandedNodeId, throws
IllegalArgumentException if the given ServerTable doesnt't contain
#getServerUri(). |
static ExpandedNodeId |
from(UaNamespace namespace,
Object value)
Returns an
ExpandedNodeId with the given UaNamespace and value. |
static ExpandedNodeId |
from(UnsignedInteger serverIndex,
UaNamespace namespace,
Object value)
Returns an
ExpandedNodeId with the given Server index, UaNamespace and value. |
IdType |
getIdType()
getIdType.
|
UaNamespace |
getNamespace()
Returns
UaNamespace if this ExpandedNodeId was created using NamespaceUri or
UaNamespace (whose UaNamespace.getURI() is then equal to the NamespaceUri). |
int |
getNamespaceIndex()
Get NamespaceIndex if this ExpandedNodeId was constructed with one.
|
String |
getNamespaceUri()
Get NamespaceUri if this ExpandedNodeId was constructed with one.
|
UnsignedInteger |
getServerIndex()
Getter for the field
serverIndex. |
Object |
getValue()
Getter for the field
value. |
int |
hashCode() |
boolean |
isAbsolute()
isAbsolute.
|
boolean |
isLocal()
Check if the nodeId refers to a local node, i.e.
|
static boolean |
isNull(ExpandedNodeId nodeId)
Check if nodeId is null or a NullNodeId.
|
boolean |
isNullNodeId()
Tests whether this node is null node.
|
static ExpandedNodeId |
parseExpandedNodeId(String str)
parseExpandedNodeId.
|
String |
toString() |
ExpandedNodeId |
withTranslatedNamespaces(UaNamespaceTranslateable.Context context)
Returns a deep copy of itself where all where every namespace index and uri plus server index
and uri (see
ExpandedNodeId, UaExpandedNodeId) has been swapped based on the
given UaNamespaceTranslateable.Context. |
public static final ExpandedNodeId NULL_NUMERIC
public static final ExpandedNodeId NULL_STRING
NULL_STRINGpublic static final ExpandedNodeId NULL_GUID
NULL_GUIDpublic static final ExpandedNodeId NULL_OPAQUE
NULL_OPAQUEpublic static final ExpandedNodeId NULL
NULL@Deprecated public static final NodeId ID
Identifiers.ExpandedNodeId instead.public static final ExpandedNodeId[] EMPTY_ARRAY
public ExpandedNodeId(NodeId nodeId)
public ExpandedNodeId(String namespaceUri, Object value)
public ExpandedNodeId(UnsignedInteger serverIndex, int namespaceIndex, Object value)
serverIndex - Server Index (optional)namespaceIndex - namespace indexvalue - value (must be UnsignedInteger, String, UUID, ByteString or null)public ExpandedNodeId(UnsignedInteger serverIndex, NodeId nodeId)
serverIndex - Server Index (optional)nodeId - nodeIdpublic ExpandedNodeId(UnsignedInteger serverIndex, String namespaceUri, Object value)
serverIndex - Server Index (optional)namespaceUri - a String object.value - value (must be UnsignedInteger, String, UUID or ByteString)public static ExpandedNodeId[] arrayFrom(UaExpandedNodeId[] nodeIds, ServerTable serverTable)
UaExpandedNodeId to an array ofExpandedNodeId in the
context of the given NamespaceTable (effectively calling
from(UaExpandedNodeId, ServerTable) for each element). Returns null if given null
array. Throws IllegalArgumentException if any individual element conversion fails.public static ExpandedNodeId from(UaExpandedNodeId nodeId, ServerTable serverTable)
UaExpandedNodeId to ExpandedNodeId, throws
IllegalArgumentException if the given ServerTable doesnt't contain
#getServerUri(). The returned ExpandedNodeId does contain the namespace in uri
form. Returns null if given null.public static ExpandedNodeId from(UaNamespace namespace, Object value)
ExpandedNodeId with the given UaNamespace and value. Server index is
0.public static ExpandedNodeId from(UnsignedInteger serverIndex, UaNamespace namespace, Object value)
ExpandedNodeId with the given Server index, UaNamespace and value.public static boolean isNull(ExpandedNodeId nodeId)
nodeId - a ExpandedNodeId object.public static ExpandedNodeId parseExpandedNodeId(String str)
parseExpandedNodeId.
str - a String object.ExpandedNodeId object.public int compareTo(ExpandedNodeId other)
compareTo in interface Comparable<ExpandedNodeId>@Deprecated public boolean equals(NodeId obj)
NamespaceTable.nodeIdEquals(NodeId, ExpandedNodeId) instead.NamespaceTable.nodeIdEquals(NodeId, ExpandedNodeId). For historical reasons
equals(Object) in some scenarios has worked with NodeId, but this will be
removed in a future version (and the method starts to always return false in this case).@Deprecated public boolean equals(Object obj)
NamespaceTable.nodeIdEquals(ExpandedNodeId, ExpandedNodeId) instead.NamespaceTable.nodeIdEquals(ExpandedNodeId, ExpandedNodeId) for comparing 2
ExpandedNodeIds. That can handle scenarios where one of the ExpandedNodeIds has
a NamespaceUri and the other has a NamespaceIndex (this method can only check equal-ness
assuming both use NamespaceUri or both use NamespaceIndex). Consider using UaNodeId
when possible instead of ExpandedNodeId.public UaNamespace getNamespace()
UaNamespace if this ExpandedNodeId was created using NamespaceUri or
UaNamespace (whose UaNamespace.getURI() is then equal to the NamespaceUri).
Returns null if this ExpandedNodeId was created with a NamespaceIndex.public int getNamespaceIndex()
public String getNamespaceUri()
public UnsignedInteger getServerIndex()
Getter for the field serverIndex.
UnsignedInteger object.public boolean isAbsolute()
isAbsolute.
public boolean isLocal()
public boolean isNullNodeId()
public ExpandedNodeId withTranslatedNamespaces(UaNamespaceTranslateable.Context context)
UaNamespaceTranslateableExpandedNodeId, UaExpandedNodeId) has been swapped based on the
given UaNamespaceTranslateable.Context. Returning the same object is allowed if the type is immutable and the
result is equal to this. Note that for Structure types if the
UaDataTypeSpecification translation is active the returned type can be of different
java class.withTranslatedNamespaces in interface UaNamespaceTranslateable<ExpandedNodeId>Copyright © 2026. All rights reserved.