Package com.enonic.xp.content
Class ContentPath
- java.lang.Object
-
- com.enonic.xp.content.ContentPath
-
@PublicApi public final class ContentPath extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentPath.Builder
-
Field Summary
Fields Modifier and Type Field Description static ContentPathROOT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentPathasAbsolute()ContentPathasRelative()Deprecated.intcompareTo(ContentPath contentPath)Deprecated.static ContentPath.Buildercreate()intelementCount()booleanequals(Object o)static ContentPathfrom(ContentPath parent, ContentPath relative)static ContentPathfrom(ContentPath parent, String name)static ContentPathfrom(String path)ContentPathgetAncestorPath(int deep)StringgetElement(int index)StringgetName()ContentPathgetParentPath()inthashCode()booleanhasName()booleanisAbsolute()booleanisChildOf(ContentPath possibleParentPath)booleanisRelative()Deprecated.booleanisRoot()StringtoString()
-
-
-
Field Detail
-
ROOT
public static final ContentPath ROOT
-
-
Method Detail
-
getElement
public String getElement(int index)
-
isRoot
public boolean isRoot()
-
elementCount
public int elementCount()
-
getParentPath
public ContentPath getParentPath()
-
getAncestorPath
public ContentPath getAncestorPath(int deep)
-
isAbsolute
public boolean isAbsolute()
-
isRelative
@Deprecated public boolean isRelative()
Deprecated.
-
asRelative
@Deprecated public ContentPath asRelative()
Deprecated.
-
asAbsolute
public ContentPath asAbsolute()
-
hasName
public boolean hasName()
-
getName
public String getName()
-
isChildOf
public boolean isChildOf(ContentPath possibleParentPath)
-
compareTo
@Deprecated public int compareTo(ContentPath contentPath)
Deprecated.
-
from
public static ContentPath from(String path)
-
from
public static ContentPath from(ContentPath parent, String name)
-
from
public static ContentPath from(ContentPath parent, ContentPath relative)
-
create
public static ContentPath.Builder create()
-
-