org.apache.jackrabbit.jcr2spi
Class NamespaceRegistryImpl
java.lang.Object
org.apache.jackrabbit.jcr2spi.NamespaceRegistryImpl
- All Implemented Interfaces:
- javax.jcr.NamespaceRegistry
public class NamespaceRegistryImpl
- extends java.lang.Object
- implements javax.jcr.NamespaceRegistry
NamespaceRegistryImpl implements the JCR client facing
NamespaceRegistry.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceRegistryImpl
public NamespaceRegistryImpl(NamespaceStorage storage)
- Create a new
NamespaceRegistryImpl.
- Parameters:
storage -
registerNamespace
public void registerNamespace(java.lang.String prefix,
java.lang.String uri)
throws javax.jcr.NamespaceException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
- Specified by:
registerNamespace in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException- See Also:
NamespaceRegistry.registerNamespace(String, String)
unregisterNamespace
public void unregisterNamespace(java.lang.String prefix)
throws javax.jcr.NamespaceException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
- Specified by:
unregisterNamespace in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException- See Also:
NamespaceRegistry.unregisterNamespace(String)
getPrefixes
public java.lang.String[] getPrefixes()
throws javax.jcr.RepositoryException
- Specified by:
getPrefixes in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException- See Also:
NamespaceRegistry.getPrefixes()
getURIs
public java.lang.String[] getURIs()
throws javax.jcr.RepositoryException
- Specified by:
getURIs in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException- See Also:
NamespaceRegistry.getURIs()
getURI
public java.lang.String getURI(java.lang.String prefix)
throws javax.jcr.NamespaceException
- Specified by:
getURI in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException- See Also:
NamespaceRegistry.getURI(String),
NamespaceResolver.getURI(String)
getPrefix
public java.lang.String getPrefix(java.lang.String uri)
throws javax.jcr.NamespaceException
- Specified by:
getPrefix in interface javax.jcr.NamespaceRegistry
- Throws:
javax.jcr.NamespaceException- See Also:
NamespaceRegistry.getPrefix(String),
NamespaceResolver.getPrefix(String)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.