public final class RelativeNamePath extends Object implements Comparable<RelativeNamePath>
QualifiedNames.| Modifier and Type | Field and Description |
|---|---|
static RelativeNamePath |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
RelativeNamePath |
append(int namespaceIndex,
String... nameparts)
|
RelativeNamePath |
append(QualifiedName... appendedBrowseNames)
|
RelativeNamePath |
append(RelativeNamePath other) |
int |
compareTo(RelativeNamePath other) |
boolean |
equals(Object obj) |
static RelativeNamePath |
from(int namespaceIndex,
String... nameparts)
Creates a BrowsePath from namespace index and a set of names.
|
static RelativeNamePath |
from(List<QualifiedName> browseNames)
Creates
RelativeNamePath from a set of QualifiedNames. |
static RelativeNamePath |
from(QualifiedName... browseNames)
Creates
RelativeNamePath from a set of QualifiedNames. |
QualifiedName |
getFirst()
Get first QualifiedName of the path, or QualifiedName.NULL if the path is empty.
|
QualifiedName |
getLast()
Get the last QualifiedName of the path or QualifiedName.Null if the path is empty.
|
int |
getSize() |
int |
hashCode() |
boolean |
isEmpty() |
RelativeNamePath |
removeFirst()
Return a new BrowsePath that has it's first element removed.
|
RelativeNamePath |
removeLast()
Return a new BrowsePath that has it's last element removed.
|
QualifiedName[] |
toArray()
Returns the BrowsePath parts as an array.
|
List<QualifiedName> |
toList()
Returns the BrowsePath parts as an unmodifiable list.
|
String |
toString() |
public static final RelativeNamePath EMPTY
public static RelativeNamePath from(int namespaceIndex, String... nameparts)
namespaceIndex - index for the QualifiedNamesnameparts - name parts for the QualifiedNamespublic static RelativeNamePath from(List<QualifiedName> browseNames)
RelativeNamePath from a set of QualifiedNames. Throws
IllegalArgumentException if any null elements (or the list is null) are given.public static RelativeNamePath from(QualifiedName... browseNames)
RelativeNamePath from a set of QualifiedNames. Throws
IllegalArgumentException if any null elements (or array) are given. Returns
EMPTY if no elements are given.public RelativeNamePath append(int namespaceIndex, String... nameparts)
namespaceIndex - index part of the QualifiedNamesnameparts - the name parts of the QualifiedNamesRelativeNamePath with the parts appendedIllegalArgumentException - if nameparts is null or emptypublic RelativeNamePath append(QualifiedName... appendedBrowseNames)
appendedBrowseNames - to appendRelativeNamePathpublic RelativeNamePath append(RelativeNamePath other)
public int compareTo(RelativeNamePath other)
compareTo in interface Comparable<RelativeNamePath>public QualifiedName getFirst()
public QualifiedName getLast()
public int getSize()
public boolean isEmpty()
public RelativeNamePath removeFirst()
public RelativeNamePath removeLast()
public QualifiedName[] toArray()
public List<QualifiedName> toList()
Copyright © 2026. All rights reserved.