public class RegistryNamespaceResolver extends Object implements NamespaceResolver
| Constructor and Description |
|---|
RegistryNamespaceResolver(NamespaceRegistry registry)
Creates a new namespace resolver based on the given namespace registry.
|
public RegistryNamespaceResolver(NamespaceRegistry registry)
registry - namespace registrypublic String getPrefix(String uri) throws NamespaceException
NamespaceResolvergetPrefix in interface NamespaceResolveruri - namespace URINamespaceException - if the URI is unknown.public String getURI(String prefix) throws NamespaceException
NamespaceResolvergetURI in interface NamespaceResolverprefix - namespace prefixNamespaceException - if the prefix is unknown.Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.