public class NamespaceRegistryWrapper extends Object implements javax.jcr.NamespaceRegistry
javax.jcr.NamespaceRegistry.
The namespace registry contains the default prefixes of the registered
namespaces.| Constructor and Description |
|---|
NamespaceRegistryWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix(String uri) |
String[] |
getPrefixes() |
String |
getURI(String prefix) |
String[] |
getURIs() |
void |
registerNamespace(String prefix,
String uri) |
void |
unregisterNamespace(String prefix) |
public void registerNamespace(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
registerNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic void unregisterNamespace(String prefix) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
unregisterNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic String[] getPrefixes() throws javax.jcr.RepositoryException
getPrefixes in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionpublic String[] getURIs() throws javax.jcr.RepositoryException
getURIs in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionpublic String getURI(String prefix) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
getURI in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.