Package com.enonic.xp.node
Class NodePath
- java.lang.Object
-
- com.enonic.xp.node.NodePath
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodePath.Builder
static class
NodePath.Element
-
Method Summary
-
-
-
Field Detail
-
ROOT
public static final NodePath ROOT
-
-
Method Detail
-
isRoot
public boolean isRoot()
-
asRelative
public NodePath asRelative()
-
asAbsolute
public NodePath asAbsolute()
-
getParentPath
public NodePath getParentPath()
-
create
public static NodePath.Builder create()
-
create
public static NodePath.Builder create(NodePath parent, java.lang.String path)
-
getParentPaths
public java.util.List<NodePath> getParentPaths()
-
isEmpty
public boolean isEmpty()
-
isAbsolute
public boolean isAbsolute()
-
isRelative
public boolean isRelative()
-
hasTrailingDivider
public boolean hasTrailingDivider()
-
trimTrailingDivider
public NodePath trimTrailingDivider()
-
elementCount
public int elementCount()
-
iterator
public java.util.Iterator<NodePath.Element> iterator()
-
getFirstElement
protected NodePath.Element getFirstElement()
-
getElement
protected NodePath.Element getElement(int index)
-
getElementAsString
public java.lang.String getElementAsString(int index)
-
getLastElement
public NodePath.Element getLastElement()
-
getName
public final java.lang.String getName()
-
resolvePathElementNames
public java.lang.Iterable<java.lang.String> resolvePathElementNames()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public static NodePath.Builder create(NodePath source)
-
create
public static NodePath.Builder create(java.lang.String path)
-
-