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