public class UaRelativePath extends Object
RelativePath but stores the path using UaQualifiedNames. Can
be converted to a RelativePath in the context of a NamespaceTable via
#toRelativePath(NamespaceTable, ExpandedNodeId, boolean, boolean). This class is
immutable.| Modifier and Type | Field and Description |
|---|---|
static UaRelativePath |
EMPTY
Constant representing empty path.
|
| Modifier and Type | Method and Description |
|---|---|
UaRelativePath |
append(UaRelativePath path)
Returns
UaRelativePath that has the element of the given path added to the
getElements() of this path. |
UaRelativePath |
append(UaRelativePathElement element)
Returns
UaRelativePath that has the element added to the getElements() of this
path. |
boolean |
equals(Object obj) |
static UaRelativePath |
from(List<UaRelativePathElement> elements) |
static UaRelativePath |
from(RelativePath relativePath,
NamespaceTable namespaceTable)
|
static UaRelativePath |
from(UaRelativePathElement... elements) |
List<UaRelativePathElement> |
getElements()
Returns an unmodifiable List of the elements of this path.
|
int |
hashCode() |
RelativeNamePath |
toRelativeNamePath(NamespaceTable namespaceTable)
|
RelativePath |
toRelativePath(NamespaceTable namespaceTable)
|
String |
toString() |
public static final UaRelativePath EMPTY
public static UaRelativePath from(List<UaRelativePathElement> elements)
public static UaRelativePath from(RelativePath relativePath, NamespaceTable namespaceTable)
UaBrowsePath from the given BrowsePath using the given
NamespaceTable for the conversions. Returns null if given null browsePath.public static UaRelativePath from(UaRelativePathElement... elements)
public UaRelativePath append(UaRelativePath path)
UaRelativePath that has the element of the given path added to the
getElements() of this path.public UaRelativePath append(UaRelativePathElement element)
UaRelativePath that has the element added to the getElements() of this
path.public List<UaRelativePathElement> getElements()
public RelativeNamePath toRelativeNamePath(NamespaceTable namespaceTable)
UaRelativePath to RelativeNamePath in the context of given
NamespaceTable. This just converts each UaRelativePathElement.getTargetName()
via UaQualifiedName.toQualifiedName(NamespaceTable), rest of the information is lost.public RelativePath toRelativePath(NamespaceTable namespaceTable)
Copyright © 2026. All rights reserved.