public class NamespaceRegistryImpl extends Object implements javax.jcr.NamespaceRegistry
NamespaceRegistryImpl implements the JCR client facing
NamespaceRegistry.| Constructor and Description |
|---|
NamespaceRegistryImpl(NamespaceStorage storage)
Create a new
NamespaceRegistryImpl. |
| 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 NamespaceRegistryImpl(NamespaceStorage storage)
NamespaceRegistryImpl.storage - public void registerNamespace(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
registerNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionNamespaceRegistry.registerNamespace(String, String)public void unregisterNamespace(String prefix) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
unregisterNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionNamespaceRegistry.unregisterNamespace(String)public String[] getPrefixes() throws javax.jcr.RepositoryException
getPrefixes in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionNamespaceRegistry.getPrefixes()public String[] getURIs() throws javax.jcr.RepositoryException
getURIs in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionNamespaceRegistry.getURIs()public String getURI(String prefix) throws javax.jcr.NamespaceException
getURI in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionNamespaceRegistry.getURI(String),
NamespaceResolver.getURI(String)public String getPrefix(String uri) throws javax.jcr.NamespaceException
getPrefix in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionNamespaceRegistry.getPrefix(String),
NamespaceResolver.getPrefix(String)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.