|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver
public class ParsingPathResolver
Path resolver that parsers and formats prefixed JCR paths.
A NameResolver
is used for resolving the path element names.
Constructor Summary | |
---|---|
ParsingPathResolver(PathFactory pathFactory,
NameResolver resolver)
Creates a parsing path resolver. |
Method Summary | |
---|---|
String |
getJCRPath(Path path)
Returns the prefixed JCR path for the given qualified path. |
Path |
getQPath(String path)
Parses the prefixed JCR path and returns the resolved qualified path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingPathResolver(PathFactory pathFactory, NameResolver resolver)
resolver
- name resolverMethod Detail |
---|
public Path getQPath(String path) throws MalformedPathException, IllegalNameException, NamespaceException
getQPath
in interface PathResolver
path
- prefixed JCR path
MalformedPathException
- if the JCR path format is invalid.
IllegalNameException
- if any of the JCR names contained in the path are invalid.
NamespaceException
- if a namespace prefix can not be resolvedpublic String getJCRPath(Path path) throws NamespaceException
getJCRPath
in interface PathResolver
path
- qualified path
NamespaceException
- if a namespace URI can not be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |