public class IdentityNamespaceResolver extends java.lang.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 |
|---|---|
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 java.lang.String getURI(java.lang.String prefix)
throws NamespaceException
getURI in interface DurboNamespaceResolverprefix - a stringprefixNamespaceException - if the prefix is unknown.public java.lang.String getPrefix(java.lang.String uri)
throws NamespaceException
getPrefix in interface DurboNamespaceResolveruri - a stringuriNamespaceException - if the URI is unknown.Copyright © 2010 - 2020 Adobe. All Rights Reserved