Class ProxyNamespaceRegistry
- java.lang.Object
-
- org.apache.sling.jcr.base.internal.mount.ProxyNamespaceRegistry
-
- All Implemented Interfaces:
javax.jcr.NamespaceRegistry
public class ProxyNamespaceRegistry extends Object implements javax.jcr.NamespaceRegistry
-
-
Constructor Summary
Constructors Constructor Description ProxyNamespaceRegistry(javax.jcr.NamespaceRegistry jcr, javax.jcr.NamespaceRegistry mount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPrefix(String uri)String[]getPrefixes()StringgetURI(String prefix)String[]getURIs()voidregisterNamespace(String prefix, String uri)voidunregisterNamespace(String prefix)
-
-
-
Method Detail
-
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
public String[] getPrefixes() throws javax.jcr.RepositoryException
- Specified by:
getPrefixesin interfacejavax.jcr.NamespaceRegistry- Throws:
javax.jcr.RepositoryException
-
getURIs
public String[] getURIs() throws javax.jcr.RepositoryException
- 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
-
-