Interface NamespaceResolver
- 
- All Known Implementing Classes:
 AbstractNamespaceResolver,NamespaceMapping,RegistryNamespaceResolver,SessionNamespaceResolver
public interface NamespaceResolverInterface for resolving namespace URIs and prefixes. Unlike the JCRNamespaceRegistryinterface, this interface contains no functionality other than the basic namespace URI and prefix resolution methods. This interface is therefore used internally in many places where the full namespace registry is either not available or some other mechanism is used for resolving namespaces. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPrefix(java.lang.String uri)Returns the prefix which is mapped to the given URI.java.lang.StringgetURI(java.lang.String prefix)Returns the URI to which the given prefix is mapped. 
 - 
 
- 
- 
Method Detail
- 
getURI
java.lang.String getURI(java.lang.String prefix) throws javax.jcr.NamespaceExceptionReturns the URI to which the given prefix is mapped.- Parameters:
 prefix- namespace prefix- Returns:
 - the namespace URI to which the given prefix is mapped.
 - Throws:
 javax.jcr.NamespaceException- if the prefix is unknown.
 
- 
getPrefix
java.lang.String getPrefix(java.lang.String uri) throws javax.jcr.NamespaceExceptionReturns the prefix which is mapped to the given URI.- Parameters:
 uri- namespace URI- Returns:
 - the prefix mapped to the given URI.
 - Throws:
 javax.jcr.NamespaceException- if the URI is unknown.
 
 - 
 
 -