public class RegistryNamespaceResolver extends java.lang.Object implements NamespaceResolver
| Constructor and Description |
|---|
RegistryNamespaceResolver(javax.jcr.NamespaceRegistry registry)
Creates a new namespace resolver based on the given namespace registry.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPrefix(java.lang.String uri)
Returns the prefix which is mapped to the given URI.
|
java.lang.String |
getURI(java.lang.String prefix)
Returns the URI to which the given prefix is mapped.
|
public RegistryNamespaceResolver(javax.jcr.NamespaceRegistry registry)
registry - namespace registrypublic java.lang.String getPrefix(java.lang.String uri)
throws javax.jcr.NamespaceException
NamespaceResolvergetPrefix in interface NamespaceResolveruri - namespace URIjavax.jcr.NamespaceException - if the URI is unknown.public java.lang.String getURI(java.lang.String prefix)
throws javax.jcr.NamespaceException
NamespaceResolvergetURI in interface NamespaceResolverprefix - namespace prefixjavax.jcr.NamespaceException - if the prefix is unknown.Copyright © 2010 - 2025 Adobe. All Rights Reserved