Class ProxyNamespaceRegistry
java.lang.Object
org.apache.sling.jcr.base.internal.mount.ProxyNamespaceRegistry
- All Implemented Interfaces:
javax.jcr.NamespaceRegistry
-
Field Summary
Fields inherited from interface javax.jcr.NamespaceRegistry
NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML -
Constructor Summary
ConstructorsConstructorDescriptionProxyNamespaceRegistry(javax.jcr.NamespaceRegistry jcr, javax.jcr.NamespaceRegistry mount) -
Method Summary
Modifier and TypeMethodDescriptionString[]String[]getURIs()voidregisterNamespace(String prefix, String uri) voidunregisterNamespace(String prefix)
-
Constructor Details
-
ProxyNamespaceRegistry
public ProxyNamespaceRegistry(javax.jcr.NamespaceRegistry jcr, javax.jcr.NamespaceRegistry mount)
-
-
Method Details
-
registerNamespace
public void registerNamespace(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException - Specified by:
registerNamespacein interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryException
-
unregisterNamespace
public void unregisterNamespace(String prefix) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException - Specified by:
unregisterNamespacein interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryException
-
getPrefixes
- Specified by:
getPrefixesin interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.RepositoryException
-
getURIs
- Specified by:
getURIsin interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.RepositoryException
-
getURI
public String getURI(String prefix) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException - Specified by:
getURIin interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.NamespaceExceptionjavax.jcr.RepositoryException
-
getPrefix
public String getPrefix(String uri) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException - Specified by:
getPrefixin interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.NamespaceExceptionjavax.jcr.RepositoryException
-