public interface NamespaceResolver
javax.jcr.NamespaceRegistry
interface, 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.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix(java.lang.String uri)
Returns the prefix which is mapped to the given URI.
|
java.lang.String |
getURI(java.lang.String prefix)
Returns the URI to which the given prefix is mapped.
|
java.lang.String getURI(java.lang.String prefix) throws NamespaceException
prefix
- namespace prefixNamespaceException
- if the prefix is unknown.java.lang.String getPrefix(java.lang.String uri) throws NamespaceException
uri
- namespace URINamespaceException
- if the URI is unknown."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"