public class AdditionalNamespaceResolver extends Object implements NamespaceResolver
| Constructor and Description |
|---|
AdditionalNamespaceResolver(javax.jcr.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(javax.jcr.NamespaceRegistry registry)
throws javax.jcr.RepositoryException
registry - namespace registryjavax.jcr.RepositoryException - on repository errorspublic String getURI(String prefix) throws javax.jcr.NamespaceException
getURI in interface NamespaceResolverprefix - namespace prefixjavax.jcr.NamespaceException - if the prefix is unknown.public String getPrefix(String uri) throws javax.jcr.NamespaceException
getPrefix in interface NamespaceResolveruri - namespace URIjavax.jcr.NamespaceException - if the URI is unknown.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.