Modifier and Type | Class and Description |
---|---|
static class |
ContentPath.Builder |
Modifier and Type | Field and Description |
---|---|
static ContentPath |
ROOT |
Modifier and Type | Method and Description |
---|---|
ContentPath |
asAbsolute() |
ContentPath |
asRelative() |
int |
elementCount() |
boolean |
equals(Object o) |
static ContentPath |
from(ContentPath parent,
ContentPath relative) |
static ContentPath |
from(ContentPath parent,
String name) |
static ContentPath |
from(String path) |
String |
getElement(int index) |
String |
getName() |
ContentPath |
getParentPath() |
int |
hashCode() |
boolean |
hasName() |
boolean |
isAbsolute() |
boolean |
isChildOf(ContentPath possibleParentPath) |
boolean |
isRelative() |
boolean |
isRoot() |
static ContentPath.Builder |
newPath() |
String |
toString() |
public static final ContentPath ROOT
public String getElement(int index)
public boolean isRoot()
public int elementCount()
public ContentPath getParentPath()
public boolean isAbsolute()
public boolean isRelative()
public ContentPath asRelative()
public ContentPath asAbsolute()
public boolean hasName()
public final String getName()
public boolean isChildOf(ContentPath possibleParentPath)
public static ContentPath from(String path)
public static ContentPath from(ContentPath parent, String name)
public static ContentPath from(ContentPath parent, ContentPath relative)
public static ContentPath.Builder newPath()