public class SessionNamespaceResolver extends java.lang.Object implements NamespaceResolver
NamespaceResolver
interface on a Session
.Constructor and Description |
---|
SessionNamespaceResolver(Session session)
Creates a new namespace resolver based on a session
|
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 SessionNamespaceResolver(Session session)
session
- public java.lang.String getPrefix(java.lang.String uri) throws NamespaceException
getPrefix
in interface NamespaceResolver
uri
- namespace URINamespaceException
- if the URI is unknown.public java.lang.String getURI(java.lang.String prefix) throws NamespaceException
getURI
in interface NamespaceResolver
prefix
- namespace prefixNamespaceException
- if the prefix is unknown.Copyright © 2010 - 2020 Adobe. All Rights Reserved