public class IdentityNamespaceResolver extends Object implements DurboNamespaceResolver
DurboNamespaceResolver that maps prefixes to the same
value as the uris and vice versa.| Constructor and Description |
|---|
IdentityNamespaceResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix(String uri)
Returns the prefix which is mapped to the given URI.
|
String |
getURI(String prefix)
Returns the URI to which the given prefix is mapped.
|
public String getURI(String prefix) throws NamespaceException
getURI in interface DurboNamespaceResolverprefix - a stringprefixNamespaceExceptionpublic String getPrefix(String uri) throws NamespaceException
getPrefix in interface DurboNamespaceResolveruri - a stringuriNamespaceException - if the URI is unknown."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"