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
,
RemoteNamespaceRegistry
NAMESPACE_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, getNodeTypeArray
public ClientNamespaceRegistry(RemoteNamespaceRegistry remote, LocalAdapterFactory factory)
remote
- remote namespace registryfactory
- local adapter factorypublic void registerNamespace(String prefix, String uri) throws RepositoryException
registerNamespace
in interface NamespaceRegistry
RepositoryException
public void unregisterNamespace(String prefix) throws RepositoryException
unregisterNamespace
in interface NamespaceRegistry
RepositoryException
public String[] getPrefixes() throws RepositoryException
getPrefixes
in interface NamespaceRegistry
RepositoryException
public String[] getURIs() throws RepositoryException
getURIs
in interface NamespaceRegistry
RepositoryException
public String getURI(String prefix) throws RepositoryException
getURI
in interface NamespaceRegistry
RepositoryException
public String getPrefix(String uri) throws RepositoryException
getPrefix
in interface NamespaceRegistry
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.