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