public class AdditionalNamespaceResolver extends Object implements org.apache.jackrabbit.spi.commons.namespace.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 org.apache.jackrabbit.spi.commons.namespace.NamespaceResolverNamespaceExceptionpublic String getPrefix(String uri) throws NamespaceException
getPrefix in interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolverNamespaceExceptionCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.