|
||||||||||
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. |
|
ParsingPathResolver(PathFactory pathFactory,
NameResolver nameResolver,
IdentifierResolver idResolver)
Creates a parsing path resolver. |
Method Summary | |
---|---|
String |
getJCRPath(Path path)
Returns the JCR path representation for the given Path object. |
Path |
getQPath(String jcrPath)
Parses the given JCR path into a Path object. |
Path |
getQPath(String jcrPath,
boolean normalizeIdentifier)
Calls PathParser.parse(String, NameResolver, IdentifierResolver, org.apache.jackrabbit.spi.PathFactory)
from the given jcrPath . |
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)
pathFactory
- path factory.resolver
- name resolverpublic ParsingPathResolver(PathFactory pathFactory, NameResolver nameResolver, IdentifierResolver idResolver)
pathFactory
- path factory.nameResolver
- name resolver.idResolver
- identifier resolver.Method Detail |
---|
public Path getQPath(String jcrPath) throws MalformedPathException, IllegalNameException, NamespaceException
Path
object.
getQPath
in interface PathResolver
jcrPath
- A JCR path String.
Path
object.
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 Path getQPath(String jcrPath, boolean normalizeIdentifier) throws MalformedPathException, IllegalNameException, NamespaceException
PathParser.parse(String, NameResolver, IdentifierResolver, org.apache.jackrabbit.spi.PathFactory)
from the given jcrPath
.
getQPath
in interface PathResolver
jcrPath
- prefixed JCR path
Path
object.
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 resolved.PathResolver.getQPath(String, boolean)
public String getJCRPath(Path path) throws NamespaceException
Path
object.
getJCRPath
in interface PathResolver
path
- A Path
object.
NamespaceException
- if a namespace URI can not be resolved.PathResolver.getJCRPath(org.apache.jackrabbit.spi.Path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |