public interface PathWrapper
Path internally
External API Access controls use String internally
The Wrapper is here to provide functions on top of both representations| Modifier and Type | Method and Description |
|---|---|
PathWrapper |
getAncestor()
Get the direct parent path wrapped
|
Object |
getInnerObject()
get the original object behind the wrapper
|
javax.jcr.Item |
getItem()
Get the item for the current path in the wrapper
|
int |
getLength()
get the length of the current path in the wrapper
|
PathWrapper |
getNewPathWrapper(String path)
Get a new wrapped path
|
String |
getNodeName()
Get the node name for the current path in the wrapper
|
String |
getPathStr()
Get the string representation of the current path in the wrapper
|
boolean |
isRoot()
Check if the current path in the wrapper is the root path
|
boolean |
itemExist()
Check if the item exist for the current path in the wrapper
|
Object getInnerObject()
int getLength()
boolean isRoot()
String getPathStr()
String getNodeName() throws javax.jcr.NamespaceException
javax.jcr.NamespaceExceptionboolean itemExist()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsjavax.jcr.Item getItem()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsPathWrapper getAncestor() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsPathWrapper getNewPathWrapper(String path) throws javax.jcr.RepositoryException
path - the path to be wrappedjavax.jcr.RepositoryException - in case of JCR-related errorsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.