org.apache.jackrabbit.name
Class ParsingPathResolver

java.lang.Object
  extended by org.apache.jackrabbit.name.ParsingPathResolver
All Implemented Interfaces:
PathResolver

Deprecated. Use the ParsingPathResolver class from the org.apache.jackrabbit.spi.commons.conversion package of the jackrabbit-spi-commons component.

public class ParsingPathResolver
extends Object
implements PathResolver

Path resolver that parsers and formats prefixed JCR paths. A NameResolver is used for resolving the path element names.


Constructor Summary
ParsingPathResolver(NameResolver resolver)
          Deprecated. Creates a parsing path resolver.
 
Method Summary
 String getJCRPath(Path path)
          Deprecated. Returns the prefixed JCR path for the given qualified path.
 Path getQPath(String path)
          Deprecated. 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

ParsingPathResolver

public ParsingPathResolver(NameResolver resolver)
Deprecated. 
Creates a parsing path resolver.

Parameters:
resolver - name resolver
Method Detail

getQPath

public Path getQPath(String path)
              throws NameException,
                     NamespaceException
Deprecated. 
Parses the prefixed JCR path and returns the resolved qualified path.

Specified by:
getQPath in interface PathResolver
Parameters:
path - prefixed JCR path
Returns:
qualified path
Throws:
NameException - if the JCR path format is invalid
NamespaceException - if a namespace prefix can not be resolved

getJCRPath

public String getJCRPath(Path path)
                  throws NamespaceException
Deprecated. 
Returns the prefixed JCR path for the given qualified path.

Specified by:
getJCRPath in interface PathResolver
Parameters:
path - qualified path
Returns:
prefixed JCR path
Throws:
NamespaceException - if a namespace URI can not be resolved


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