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, getNodeTypeArray
public 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.NamespaceRegistry
javax.jcr.RepositoryException
public void unregisterNamespace(String prefix) throws javax.jcr.RepositoryException
unregisterNamespace
in interface javax.jcr.NamespaceRegistry
javax.jcr.RepositoryException
public String[] getPrefixes() throws javax.jcr.RepositoryException
getPrefixes
in interface javax.jcr.NamespaceRegistry
javax.jcr.RepositoryException
public String[] getURIs() throws javax.jcr.RepositoryException
getURIs
in interface javax.jcr.NamespaceRegistry
javax.jcr.RepositoryException
public String getURI(String prefix) throws javax.jcr.RepositoryException
getURI
in interface javax.jcr.NamespaceRegistry
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.