public interface NamespaceResolver
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 |
---|---|
String |
getPrefix(String uri)
Returns the prefix which is mapped to the given URI.
|
String |
getURI(String prefix)
Returns the URI to which the given prefix is mapped.
|
String getURI(String prefix) throws NamespaceException
prefix
- namespace prefixNamespaceException
- if the prefix is unknown.String getPrefix(String uri) throws NamespaceException
uri
- namespace URINamespaceException
- if the URI is unknown.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.