Interface PathResolver
-
- All Known Subinterfaces:
NamePathResolver
- All Known Implementing Classes:
CachingPathResolver,DefaultNamePathResolver,ParsingPathResolver
public interface PathResolverResolver for JCR paths.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetJCRPath(org.apache.jackrabbit.spi.Path path)Returns the given JCR path string for the given path object.org.apache.jackrabbit.spi.PathgetQPath(String path)Returns the path object for the given JCR path string.org.apache.jackrabbit.spi.PathgetQPath(String path, boolean normalizeIdentifier)Returns the path object for the given JCR path string.
-
-
-
Method Detail
-
getQPath
org.apache.jackrabbit.spi.Path getQPath(String path) throws MalformedPathException, IllegalNameException, NamespaceException
Returns the path object for the given JCR path string.- Parameters:
path- prefixed JCR path- Returns:
- a
Pathobject. - Throws:
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.
-
getQPath
org.apache.jackrabbit.spi.Path getQPath(String path, boolean normalizeIdentifier) throws MalformedPathException, IllegalNameException, NamespaceException
Returns the path object for the given JCR path string.- Parameters:
path- prefixed JCR pathnormalizeIdentifier-- Returns:
- a
Pathobject. - Throws:
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.
-
getJCRPath
String getJCRPath(org.apache.jackrabbit.spi.Path path) throws NamespaceException
Returns the given JCR path string for the given path object.- Parameters:
path- aPathobject.- Returns:
- a JCR path string
- Throws:
NamespaceException- if a namespace URI can not be resolved
-
-