@Beta public final class NodePath extends Object implements Comparable<NodePath>
Modifier and Type | Class and Description |
---|---|
static class |
NodePath.Builder |
static class |
NodePath.Element |
Constructor and Description |
---|
NodePath(NodePath parent,
NodeName element) |
NodePath(String path) |
Modifier and Type | Method and Description |
---|---|
NodePath |
asAbsolute() |
NodePath |
asRelative() |
int |
compareTo(NodePath o) |
static NodePath.Builder |
create() |
static NodePath.Builder |
create(NodePath source) |
static NodePath.Builder |
create(NodePath parent,
String path) |
static NodePath.Builder |
create(String path) |
int |
elementCount() |
boolean |
equals(Object o) |
protected NodePath.Element |
getElement(int index) |
String |
getElementAsString(int index) |
protected NodePath.Element |
getFirstElement() |
NodePath.Element |
getLastElement() |
NodePath |
getParentPath() |
List<NodePath> |
getParentPaths() |
int |
hashCode() |
boolean |
hasTrailingDivider() |
boolean |
isAbsolute() |
boolean |
isEmpty() |
boolean |
isRelative() |
boolean |
isRoot() |
Iterator<NodePath.Element> |
iterator() |
NodePath |
removeFromBeginning(NodePath path) |
Iterable<String> |
resolvePathElementNames() |
String |
toString() |
NodePath |
trimTrailingDivider() |
public static final NodePath ROOT
public NodePath(String path)
public boolean isRoot()
public NodePath asRelative()
public NodePath asAbsolute()
public NodePath getParentPath()
public static NodePath.Builder create()
public static NodePath.Builder create(NodePath parent, String path)
public boolean isEmpty()
public boolean isAbsolute()
public boolean isRelative()
public boolean hasTrailingDivider()
public NodePath trimTrailingDivider()
public int elementCount()
public Iterator<NodePath.Element> iterator()
protected NodePath.Element getFirstElement()
protected NodePath.Element getElement(int index)
public String getElementAsString(int index)
public NodePath.Element getLastElement()
public static NodePath.Builder create(NodePath source)
public static NodePath.Builder create(String path)
public int compareTo(NodePath o)
compareTo
in interface Comparable<NodePath>