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 String
getPrefix(String uri)
String[]
getPrefixes()
String
getURI(String prefix)
String[]
getURIs()
void
registerNamespace(String prefix, String uri)
void
unregisterNamespace(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:
registerNamespace
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-
unregisterNamespace
public void unregisterNamespace(String prefix) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
- Specified by:
unregisterNamespace
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-
getPrefixes
public String[] getPrefixes() throws javax.jcr.RepositoryException
- Specified by:
getPrefixes
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
-
getURIs
public String[] getURIs() throws javax.jcr.RepositoryException
- Specified by:
getURIs
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
-
getURI
public String getURI(String prefix) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
- Specified by:
getURI
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException
javax.jcr.RepositoryException
-
-