public class UaExpandedNodeId extends Object implements Comparable<UaExpandedNodeId>
ExpandedNodeId, but uses "ServerUri" instead of "ServerIndex"
and also only has NamespaceUri (instead of also having a NamespaceIndex). NOTE! This class should
only be used if there is a possibility of remote NodeId (or an OPC UA API needs ExpandedNodeId),
otherwise UaNodeId should be used instead. Important! The ServerUri must always be
defined for instances of UaExpandedNodeId, it cannot be null, even for "local ids". If
modelling a local ExpandedNodeId, it should be equal to the first entry of the
ServerTable.| Modifier and Type | Method and Description |
|---|---|
static UaExpandedNodeId[] |
arrayFrom(ExpandedNodeId[] nodeIds,
ServerTable serverTable,
NamespaceTable namespaceTable)
Converts an array of
ExpandedNodeId to an array ofUaExpandedNodeId in the
context of the given NamespaceTable (effectively calling
from(ExpandedNodeId, ServerTable, NamespaceTable) for each element). |
ExpandedNodeId |
asExpandedNodeId(ServerTable serverTable)
Converts this
UaExpandedNodeId to ExpandedNodeId, throws
IllegalArgumentException if the given ServerTable doesnt't contain
getServerUri(). |
int |
compareTo(UaExpandedNodeId other) |
boolean |
equals(Object obj) |
static UaExpandedNodeId |
from(ExpandedNodeId nodeId,
ServerTable serverTable,
NamespaceTable namespaceTable)
Converts a
ExpandedNodeId to UaExpandedNodeId. |
static UaExpandedNodeId |
from(String serverUri,
String namespaceUri,
Object value)
Returns an
UaExpandedNodeId that has the given server uri, namespace uri and value
part. |
static UaExpandedNodeId |
from(UaApplicationURI server,
UaNamespace namespace,
Object value)
Returns an
UaExpandedNodeId that has the given server (uri) and namespace (uri) and
value part. |
IdType |
getIdType() |
UaNamespace |
getNamespace() |
String |
getNamespaceUri() |
UaApplicationURI |
getServer() |
String |
getServerUri() |
Object |
getValue() |
String |
getValueAsParseForm()
Returns the value as String that can be parsed by
#parse(String, String, String). |
int |
hashCode() |
boolean |
isLocal(ServerTable serverTable)
Returns true if the
getServerUri() is the first entry (index 0) in the given
ServerTable, false otherwise (even if the entry is missing from the table). |
String |
toString() |
public static UaExpandedNodeId[] arrayFrom(ExpandedNodeId[] nodeIds, ServerTable serverTable, NamespaceTable namespaceTable)
ExpandedNodeId to an array ofUaExpandedNodeId in the
context of the given NamespaceTable (effectively calling
from(ExpandedNodeId, ServerTable, NamespaceTable) for each element). Returns null if
given null array. Throws IllegalArgumentException if any individual element conversion
fails.public static UaExpandedNodeId from(ExpandedNodeId nodeId, ServerTable serverTable, NamespaceTable namespaceTable)
ExpandedNodeId to UaExpandedNodeId. The
ExpandedNodeId.getServerIndex() must be in the given ServerTable. Throws
IllegalArgumentException if it cannot be found.
If the ExpandedNodeId.getNamespaceUri() it is used as the namespace uri, otherwise the
ExpandedNodeId.getNamespaceIndex() is resolved from the given NamespaceTable.
Returns null if given null.
public static UaExpandedNodeId from(String serverUri, String namespaceUri, Object value)
UaExpandedNodeId that has the given server uri, namespace uri and value
part. Throws IllegalArgumentException if any of the given parameters are null. The
serverUri must always be defined.public static UaExpandedNodeId from(UaApplicationURI server, UaNamespace namespace, Object value)
UaExpandedNodeId that has the given server (uri) and namespace (uri) and
value part. Throws IllegalArgumentException if any of the given parameters are null.
The serverUri must always be defined.public ExpandedNodeId asExpandedNodeId(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.public int compareTo(UaExpandedNodeId other)
compareTo in interface Comparable<UaExpandedNodeId>public IdType getIdType()
public UaNamespace getNamespace()
public String getNamespaceUri()
public UaApplicationURI getServer()
public String getServerUri()
public Object getValue()
public String getValueAsParseForm()
#parse(String, String, String).public boolean isLocal(ServerTable serverTable)
getServerUri() is the first entry (index 0) in the given
ServerTable, false otherwise (even if the entry is missing from the table). Throws
IllegalArgumentException if given ServerTable is null.Copyright © 2026. All rights reserved.