public class ClientNamespaceRegistry extends ClientObject implements NamespaceRegistry
RemoteNamespaceRegistry
interface. This class makes a remote namespace registry locally available
using the JCR NamespaceRegistry
interface.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)
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 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–2020 The Apache Software Foundation. All rights reserved.