|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.name.Path
Content path. Instances of this class are used to represent item paths within a JCR content repository.
A path instance consists of a sequence of path elements, that are resolved one by one in the specified order to reach the target item from a given context item.
Once created, a path instance is immutable.
PathElement
,
PathParser
,
PathBuilder
Method Summary | |
static Path |
parse(Session session,
String path)
Parses the given JCR path string. |
Item |
resolve(Item item)
Resolves this path starting from the given context item. |
static Item |
resolve(Item item,
String path)
Resolves the given JCR path from the given context item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Item resolve(Item item) throws PathNotFoundException, RepositoryException
item
- the context item from which to resolve this path
PathNotFoundException
- if the path can not be resolved
RepositoryException
- if another error occurspublic static Path parse(Session session, String path) throws IllegalArgumentException, RepositoryException
session
- current sessionpath
- JCR path
IllegalArgumentException
- if the given path is invalid
RepositoryException
- if another error occursPathParser
public static Item resolve(Item item, String path) throws IllegalArgumentException, PathNotFoundException, RepositoryException
item
- context itempath
- JCR path
IllegalArgumentException
- if the given path is invalid
PathNotFoundException
- if the given path can not be resolved
RepositoryException
- if another error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |