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 DurboNamespaceResolver
prefix
- a stringprefix
NamespaceException
public java.lang.String getPrefix(java.lang.String uri) throws NamespaceException
getPrefix
in interface DurboNamespaceResolver
uri
- a stringuri
NamespaceException
- if the URI is unknown."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"