org.apache.jackrabbit.rmi.client
Class ClientNamespaceRegistry
java.lang.Object
org.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientNamespaceRegistry
- All Implemented Interfaces:
- javax.jcr.NamespaceRegistry
public class ClientNamespaceRegistry
- extends ClientObject
- implements javax.jcr.NamespaceRegistry
Local adapter for the JCR-RMI
RemoteNamespaceRegistry
interface. This class makes a remote namespace registry locally available
using the JCR NamespaceRegistry
interface.
- See Also:
NamespaceRegistry
,
RemoteNamespaceRegistry
Fields inherited from interface javax.jcr.NamespaceRegistry |
NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientNamespaceRegistry
public ClientNamespaceRegistry(RemoteNamespaceRegistry remote,
LocalAdapterFactory factory)
- Creates a local adapter for the given remote namespace registry.
- Parameters:
remote
- remote namespace registryfactory
- local adapter factory
registerNamespace
public void registerNamespace(java.lang.String prefix,
java.lang.String uri)
throws javax.jcr.RepositoryException
-
- Specified by:
registerNamespace
in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
unregisterNamespace
public void unregisterNamespace(java.lang.String prefix)
throws javax.jcr.RepositoryException
-
- Specified by:
unregisterNamespace
in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
getPrefixes
public java.lang.String[] getPrefixes()
throws javax.jcr.RepositoryException
-
- Specified by:
getPrefixes
in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
getURIs
public java.lang.String[] getURIs()
throws javax.jcr.RepositoryException
-
- Specified by:
getURIs
in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
getURI
public java.lang.String getURI(java.lang.String prefix)
throws javax.jcr.RepositoryException
-
- Specified by:
getURI
in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
getPrefix
public java.lang.String getPrefix(java.lang.String uri)
throws javax.jcr.RepositoryException
-
- Specified by:
getPrefix
in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.