public class UaQualifiedName extends Object implements Comparable<UaQualifiedName>, UaNamespaceTranslateable<UaQualifiedName>
QualifiedName that uses NamespaceUri instead of index. Can be
converted to normal QualifiedName via toQualifiedName(NamespaceTable) in the
context of a NamespaceTable.UaNamespaceTranslateable.Context| Modifier and Type | Method and Description |
|---|---|
static UaQualifiedName[] |
arrayFrom(QualifiedName[] qualifiedNames,
NamespaceTable namespaceTable)
Converts an array of
QualifiedName to an array ofUaQualifiedName in the context
of the given NamespaceTable. |
int |
compareTo(UaQualifiedName other) |
boolean |
equals(Object obj) |
static UaQualifiedName |
from(QualifiedName qualifiedName,
NamespaceTable namespaceTable)
|
static UaQualifiedName |
from(String namespaceUri,
String name)
Creates an UaQualifiedName with the given NamespaceUri and name parts.
|
static UaQualifiedName |
from(UaNamespace namespace,
String name)
Creates an UaQualifiedName with the given namespace and name parts.
|
String |
getName()
Get the name part of this QualifiedName.
|
UaNamespace |
getNamespace()
Returns the namespace part of this QualifiedName.
|
String |
getNamespaceUri()
Get the namespace part of this QualifiedName.
|
int |
hashCode() |
static UaQualifiedName |
parse(String encodedUaQualifiedName)
Returns
UaQualifiedName that matches the given encoded from that was previously
returned by toString(). |
static UaQualifiedName |
standard(String name)
Creates a new UaQualifiedName for a name in the OPC UA Standard namepsace.
|
QualifiedName |
toQualifiedName(NamespaceTable namespaceTable)
Convert this to
QualifiedName that can be used in ServiceRequests. |
String |
toString() |
UaQualifiedName |
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 UaQualifiedName[] arrayFrom(QualifiedName[] qualifiedNames, NamespaceTable namespaceTable)
QualifiedName to an array ofUaQualifiedName in the context
of the given NamespaceTable. Returns null if given null array.public static UaQualifiedName from(QualifiedName qualifiedName, NamespaceTable namespaceTable)
QualifiedName to UaQualifiedName in the context of a
NamespaceTable. Returns null if given null. Throws IllegalArgumentException if
given null NamespaceTable.public static UaQualifiedName from(String namespaceUri, String name)
namespaceUri - the NamespaceUri partname - the name part, null String is converted to an empty String.IllegalArgumentException - namespaceUri is nullpublic static UaQualifiedName from(UaNamespace namespace, String name)
public static UaQualifiedName parse(String encodedUaQualifiedName)
UaQualifiedName that matches the given encoded from that was previously
returned by toString(). That is 'nsu=namespaceuri;name=namedata' where
getNamespaceUri() is encoded similar to ExpandedNodeId.toString().Returns null
if given null.public static UaQualifiedName standard(String name)
UaQualifiedName.from(NamespaceTable.OPCUA_NAMESPACE, name)name - the namepublic int compareTo(UaQualifiedName other)
compareTo in interface Comparable<UaQualifiedName>public String getName()
public UaNamespace getNamespace()
public String getNamespaceUri()
public QualifiedName toQualifiedName(NamespaceTable namespaceTable)
QualifiedName that can be used in ServiceRequests.namespaceTable - a NamespaceTable, must contain entry for getNamespaceUri()QualifiedName that has getNamespaceUri() transformed to indexIllegalArgumentException - if the given namespacetable is null or does not contain entrypublic UaQualifiedName 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<UaQualifiedName>Copyright © 2026. All rights reserved.