public class SessionNamespaceResolver extends Object implements NamespaceResolver
NamespaceResolver
interface on a Session
.Constructor and Description |
---|
SessionNamespaceResolver(javax.jcr.Session session)
Creates a new namespace resolver based on a session
|
public SessionNamespaceResolver(javax.jcr.Session session)
session
- public String getPrefix(String uri) throws javax.jcr.NamespaceException
getPrefix
in interface NamespaceResolver
uri
- namespace URIjavax.jcr.NamespaceException
- if the URI is unknown.public String getURI(String prefix) throws javax.jcr.NamespaceException
getURI
in interface NamespaceResolver
prefix
- namespace prefixjavax.jcr.NamespaceException
- if the prefix is unknown.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.