public class AdditionalNamespaceResolver extends Object implements NamespaceResolver
| Constructor and Description | 
|---|
AdditionalNamespaceResolver(NamespaceRegistry registry)
Creates a namespace resolver using the namespaces declared
 in the given namespace registry. 
 | 
AdditionalNamespaceResolver(Properties namespaces)
Creates a namespace resolver using the namespaces defined in
 the given prefix-to-URI property set. 
 | 
| 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. 
 | 
public AdditionalNamespaceResolver(Properties namespaces)
namespaces - namespace propertiespublic AdditionalNamespaceResolver(NamespaceRegistry registry) throws RepositoryException
registry - namespace registryRepositoryException - on repository errorspublic String getURI(String prefix) throws NamespaceException
getURI in interface NamespaceResolverprefix - namespace prefixNamespaceException - if the prefix is unknown.public String getPrefix(String uri) throws NamespaceException
getPrefix in interface NamespaceResolveruri - namespace URINamespaceException - if the URI is unknown.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.