public class NamespaceRegistryImpl
extends java.lang.Object
implements javax.jcr.NamespaceRegistry
| Constructor and Description |
|---|
NamespaceRegistryImpl(boolean allowRegistraton,
org.alfresco.service.namespace.NamespaceService namespaceService)
Construct
|
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.namespace.NamespaceService |
getNamespaceService()
Get the namespace prefix resolver
|
java.lang.String |
getPrefix(java.lang.String uri) |
java.lang.String[] |
getPrefixes() |
java.lang.String |
getURI(java.lang.String prefix) |
java.lang.String[] |
getURIs() |
void |
registerNamespace(java.lang.String prefix,
java.lang.String uri) |
void |
unregisterNamespace(java.lang.String prefix) |
public NamespaceRegistryImpl(boolean allowRegistraton,
org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - namespace servicepublic org.alfresco.service.namespace.NamespaceService getNamespaceService()
public void registerNamespace(java.lang.String prefix,
java.lang.String uri)
throws javax.jcr.NamespaceException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
registerNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic void unregisterNamespace(java.lang.String prefix)
throws javax.jcr.NamespaceException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
unregisterNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic java.lang.String[] getPrefixes()
throws javax.jcr.RepositoryException
getPrefixes in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionpublic java.lang.String[] getURIs()
throws javax.jcr.RepositoryException
getURIs in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryExceptionpublic java.lang.String getURI(java.lang.String prefix)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
getURI in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.RepositoryExceptionpublic java.lang.String getPrefix(java.lang.String uri)
throws javax.jcr.NamespaceException,
javax.jcr.RepositoryException
getPrefix in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceExceptionjavax.jcr.RepositoryExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.