public class ClientNamespaceRegistry extends ClientObject implements javax.jcr.NamespaceRegistry
RemoteNamespaceRegistry
interface. This class makes a remote namespace registry locally available
using the JCR NamespaceRegistry
interface.NamespaceRegistry,
RemoteNamespaceRegistry| Constructor and Description |
|---|
ClientNamespaceRegistry(RemoteNamespaceRegistry remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote namespace registry.
|
| 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) |
getFactory, getItem, getNode, getNodeTypeArraypublic ClientNamespaceRegistry(RemoteNamespaceRegistry remote, LocalAdapterFactory factory)
remote - remote namespace registryfactory - local adapter factorypublic void registerNamespace(String prefix, String uri) throws javax.jcr.RepositoryException
registerNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionpublic void unregisterNamespace(String prefix) throws javax.jcr.RepositoryException
unregisterNamespace in interface javax.jcr.NamespaceRegistryjavax.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.RepositoryException
getURI in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.