org.apache.jackrabbit.name
Interface NameResolver

All Known Subinterfaces:
NamePathResolver
All Known Implementing Classes:
CachingNameResolver, ParsingNameResolver

Deprecated. Use the NameResolver interface from the org.apache.jackrabbit.spi.commons.conversion package of the jackrabbit-spi-commons component.

public interface NameResolver

Resolver for prefixed JCR names and namespace-qualified QNames.


Method Summary
 String getJCRName(QName name)
          Deprecated. Returns the prefixed JCR name for the given qualified name.
 QName getQName(String name)
          Deprecated. Returns the qualified name for the given prefixed JCR name.
 

Method Detail

getQName

QName getQName(String name)
               throws NameException,
                      NamespaceException
Deprecated. 
Returns the qualified name for the given prefixed JCR name.

Parameters:
name - prefixed JCR name
Returns:
qualified name
Throws:
NameException - if the JCR name format is invalid
NamespaceException - if the namespace prefix can not be resolved

getJCRName

String getJCRName(QName name)
                  throws NamespaceException
Deprecated. 
Returns the prefixed JCR name for the given qualified name.

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


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