|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.namespace.SessionNamespaceResolver
public class SessionNamespaceResolver
helper class that exposes the NamespaceResolver
interface on a Session.
| Constructor Summary | |
|---|---|
SessionNamespaceResolver(Session session)
Creates a new namespace resolver based on a session |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionNamespaceResolver(Session session)
session - | Method Detail |
|---|
public String getPrefix(String uri)
throws NamespaceException
getPrefix in interface NamespaceResolveruri - namespace URI
NamespaceException - if the URI is unknown.
public String getURI(String prefix)
throws NamespaceException
getURI in interface NamespaceResolverprefix - namespace prefix
NamespaceException - if the prefix is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||