|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.namespace.RegistryNamespaceResolver
public class RegistryNamespaceResolver
Namespace resolver based on the repository-wide namespace mappings stored in a namespace registry.
Constructor Summary | |
---|---|
RegistryNamespaceResolver(NamespaceRegistry registry)
Creates a new namespace resolver based on the given namespace registry. |
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 RegistryNamespaceResolver(NamespaceRegistry registry)
registry
- namespace registryMethod Detail |
---|
public String getPrefix(String uri) throws NamespaceException
NamespaceResolver
getPrefix
in interface NamespaceResolver
uri
- namespace URI
NamespaceException
- if the URI is unknown.public String getURI(String prefix) throws NamespaceException
NamespaceResolver
getURI
in interface NamespaceResolver
prefix
- namespace prefix
NamespaceException
- if the prefix is unknown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |