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 |
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() |
static NodePath.Builder |
newNodePath(NodePath parent,
String path) |
static NodePath.Builder |
newPath() |
static NodePath.Builder |
newPath(NodePath source) |
static NodePath.Builder |
newPath(String path) |
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 newPath()
public static NodePath.Builder newNodePath(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 newPath(NodePath source)
public static NodePath.Builder newPath(String path)