@Beta
public final class ContentPath
extends java.lang.Object
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 |
compareTo(ContentPath contentPath) |
static ContentPath.Builder |
create() |
int |
elementCount() |
boolean |
equals(java.lang.Object o) |
static ContentPath |
from(ContentPath parent,
ContentPath relative) |
static ContentPath |
from(ContentPath parent,
java.lang.String name) |
static ContentPath |
from(java.lang.String path) |
ContentPath |
getAncestorPath(java.lang.Integer deep) |
java.lang.String |
getElement(int index) |
java.lang.String |
getName() |
ContentPath |
getParentPath() |
int |
hashCode() |
boolean |
hasName() |
boolean |
isAbsolute() |
boolean |
isChildOf(ContentPath possibleParentPath) |
boolean |
isRelative() |
boolean |
isRoot() |
java.lang.String |
toString() |
public static final ContentPath ROOT
public java.lang.String getElement(int index)
public boolean isRoot()
public int elementCount()
public ContentPath getParentPath()
public ContentPath getAncestorPath(java.lang.Integer deep)
public boolean isAbsolute()
public boolean isRelative()
public ContentPath asRelative()
public ContentPath asAbsolute()
public boolean hasName()
public final java.lang.String getName()
public boolean isChildOf(ContentPath possibleParentPath)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(ContentPath contentPath)
public java.lang.String toString()
toString
in class java.lang.Object
public static ContentPath from(java.lang.String path)
public static ContentPath from(ContentPath parent, java.lang.String name)
public static ContentPath from(ContentPath parent, ContentPath relative)
public static ContentPath.Builder create()