org.apache.jackrabbit.jcr2spi
Class NamespaceRegistryImpl
java.lang.Object
org.apache.jackrabbit.jcr2spi.NamespaceRegistryImpl
- All Implemented Interfaces:
- NamespaceRegistry
public class NamespaceRegistryImpl
- extends Object
- implements 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(String prefix,
String uri)
throws NamespaceException,
UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
registerNamespace in interface NamespaceRegistry
- Throws:
NamespaceException
UnsupportedRepositoryOperationException
RepositoryException- See Also:
NamespaceRegistry.registerNamespace(String, String)
unregisterNamespace
public void unregisterNamespace(String prefix)
throws NamespaceException,
UnsupportedRepositoryOperationException,
RepositoryException
- Specified by:
unregisterNamespace in interface NamespaceRegistry
- Throws:
NamespaceException
UnsupportedRepositoryOperationException
RepositoryException- See Also:
NamespaceRegistry.unregisterNamespace(String)
getPrefixes
public String[] getPrefixes()
throws RepositoryException
- Specified by:
getPrefixes in interface NamespaceRegistry
- Throws:
RepositoryException- See Also:
NamespaceRegistry.getPrefixes()
getURIs
public String[] getURIs()
throws RepositoryException
- Specified by:
getURIs in interface NamespaceRegistry
- Throws:
RepositoryException- See Also:
NamespaceRegistry.getURIs()
getURI
public String getURI(String prefix)
throws NamespaceException
- Specified by:
getURI in interface NamespaceRegistry
- Throws:
NamespaceException- See Also:
NamespaceRegistry.getURI(String),
NamespaceResolver.getURI(String)
getPrefix
public String getPrefix(String uri)
throws NamespaceException
- Specified by:
getPrefix in interface NamespaceRegistry
- Throws:
NamespaceException- See Also:
NamespaceRegistry.getPrefix(String),
NamespaceResolver.getPrefix(String)
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.