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

All Known Subinterfaces:
NamePathResolver
All Known Implementing Classes:
CachingNameResolver, DefaultNamePathResolver, NamePathResolverImpl, ParsingNameResolver, SessionContext, SessionImpl, XASessionImpl

public interface NameResolver

Resolver for JCR name Strings and Name objects.


Method Summary
 String getJCRName(Name name)
          Returns the qualified JCR name String for the given Name object.
 Name getQName(String name)
          Returns the Name for the given JCR name String.
 

Method Detail

getQName

Name getQName(String name)
              throws IllegalNameException,
                     NamespaceException
Returns the Name for the given JCR name String.

Parameters:
name - A JCR name String.
Returns:
A Name object.
Throws:
IllegalNameException - if the JCR name format is invalid
NamespaceException - if the namespace prefix can not be resolved

getJCRName

String getJCRName(Name name)
                  throws NamespaceException
Returns the qualified JCR name String for the given Name object.

Parameters:
name - A Name object.
Returns:
The qualified JCR name String consisting of prefix:localName or localName in case of the empty namespace.
Throws:
NamespaceException - if the namespace URI can not be resolved


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