org.apache.jackrabbit.spi.commons.conversion
Interface PathResolver

All Known Subinterfaces:
NamePathResolver
All Known Implementing Classes:
CachingPathResolver, DefaultNamePathResolver, NamePathResolverImpl, ParsingPathResolver, SessionImpl, XASessionImpl

public interface PathResolver

Resolver for JCR paths.


Method Summary
 String getJCRPath(Path path)
          Returns the prefixed JCR path for the given qualified path.
 Path getQPath(String path)
          Returns the qualified path for the given prefixed JCR path.
 

Method Detail

getQPath

Path getQPath(String path)
              throws MalformedPathException,
                     IllegalNameException,
                     NamespaceException
Returns the qualified path for the given prefixed JCR path.

Parameters:
path - prefixed JCR path
Returns:
qualified path
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(Path path)
                  throws NamespaceException
Returns the prefixed JCR path for the given qualified path.

Parameters:
path - qualified path
Returns:
prefixed JCR path
Throws:
NamespaceException - if a namespace URI can not be resolved


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.