|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.name.AbstractNamespaceResolver org.apache.jackrabbit.core.nodetype.xml.AdditionalNamespaceResolver
A simple namespace resolver implementation, that uses the additional namespaces declared in an XML element.
Constructor Summary | |
AdditionalNamespaceResolver(NamespaceRegistry registry)
Creates a namespace resolver using the namespaces declared in the given namespace registry. |
|
AdditionalNamespaceResolver(Properties namespaces)
Creates a namespace resolver using the namespaces defined in the given prefix-to-URI property set. |
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 org.apache.jackrabbit.name.AbstractNamespaceResolver |
addListener, getJCRName, getQName, notifyNamespaceAdded, notifyNamespaceRemapped, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AdditionalNamespaceResolver(Properties namespaces)
namespaces
- namespace propertiespublic AdditionalNamespaceResolver(NamespaceRegistry registry) throws RepositoryException
registry
- namespace registry
RepositoryException
- on repository errorsMethod Detail |
public String getURI(String prefix) throws NamespaceException
prefix
- namespace prefix
NamespaceException
- if the prefix is unknown.public String getPrefix(String uri) throws NamespaceException
uri
- namespace URI
NamespaceException
- if the URI is unknown.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |