Local adapter for the JCR-RMI
RemoteNamespaceRegistry
interface. This class makes a remote namespace registry locally available
using the JCR NamespaceRegistry
interface.
@Deprecated public class ClientNamespaceRegistry extends ClientObject implements NamespaceRegistry
NamespaceRegistry,
RemoteNamespaceRegistryNAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML| Constructor and Description |
|---|
ClientNamespaceRegistry(RemoteNamespaceRegistry remote,
LocalAdapterFactory factory)
Deprecated.
Creates a local adapter for the given remote namespace registry.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix(String uri)
Deprecated.
|
String[] |
getPrefixes()
Deprecated.
|
String |
getURI(String prefix)
Deprecated.
|
String[] |
getURIs()
Deprecated.
|
void |
registerNamespace(String prefix,
String uri)
Deprecated.
|
void |
unregisterNamespace(String prefix)
Deprecated.
|
getFactory, getItem, getNode, getNodeTypeArraypublic ClientNamespaceRegistry(RemoteNamespaceRegistry remote, LocalAdapterFactory factory)
remote - remote namespace registryfactory - local adapter factorypublic void registerNamespace(String prefix, String uri) throws RepositoryException
registerNamespace in interface NamespaceRegistryRepositoryExceptionpublic void unregisterNamespace(String prefix) throws RepositoryException
unregisterNamespace in interface NamespaceRegistryRepositoryExceptionpublic String[] getPrefixes() throws RepositoryException
getPrefixes in interface NamespaceRegistryRepositoryExceptionpublic String[] getURIs() throws RepositoryException
getURIs in interface NamespaceRegistryRepositoryExceptionpublic String getURI(String prefix) throws RepositoryException
getURI in interface NamespaceRegistryRepositoryExceptionpublic String getPrefix(String uri) throws RepositoryException
getPrefix in interface NamespaceRegistryRepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.