|
/x/y/zIn the above example, there will be 4 elements, the first being a reference to the root node, followed by qname elements for x, y and z.
Methods and constructors are available to construct a Path
instance
from a path string or by building the path incrementally, including the ability to
append and prepend path elements.
Path elements supported:
Nested Class Summary | ||
static class |
Path.ChildAssocElement Represents a qualified path between a parent and a child node, including the sibling to retrieve e.g. |
Constructor Summary | ||
Path() |
Method Summary | ||
append(Path path) Append the given path of this path. |
||
append(org.alfresco.service.cmr.repository.Path.Element pathElement) Appends a path element to the end of the path |
||
boolean |
equals(Object o) Override equals to check equality of Path instances |
|
org.alfresco.service.cmr.repository.Path.Element |
first() | |
org.alfresco.service.cmr.repository.Path.Element |
get(int n) | |
getBaseNamePath(TenantService tenantService) | ||
int |
hashCode() Override hashCode to check hash equality of Path instances |
|
Iterator<org.alfresco.service.cmr.repository.Path.Element> |
iterator() | |
org.alfresco.service.cmr.repository.Path.Element |
last() | |
prepend(Path path) Merge the given path into the beginning of this path. |
||
prepend(org.alfresco.service.cmr.repository.Path.Element pathElement) Add a path element to the beginning of the path. |
||
int |
size() | |
subPath(int depth) Return a new Path representing this path to the specified depth |
||
subPath(int start, int end) Return a new Path representing this path to the specified depth For example, subPath(2, 4) would return the third and forth elements in the Path. |
||
toDisplayPath(NodeService nodeService, PermissionService permissionService) Return the human readable form of the specified node Path. |
||
toPrefixString(NamespacePrefixResolver resolver) | ||
toString() |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
|