public class NSRegistryBasedNamespaceMappings extends AbstractNamespaceMappings
NSRegistryBasedNamespaceMappings
implements a namespace mapping
based on the stable index prefix provided by the namespace registry.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.
|
translateName, translatePath
public String getURI(String prefix) throws NamespaceException
prefix
- namespace prefixNamespaceException
- if the prefix is unknown.public String getPrefix(String uri) throws NamespaceException
uri
- namespace URINamespaceException
- if the URI is unknown.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.