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.
|
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-2012 The Apache Software Foundation. All Rights Reserved.