public class NamespaceRegistryImpl extends Object implements javax.jcr.NamespaceRegistry
NamespaceRegistryImpl
implements the JCR client facing
NamespaceRegistry.Constructor and Description |
---|
NamespaceRegistryImpl(NamespaceStorage storage)
Create a new
NamespaceRegistryImpl . |
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) |
public NamespaceRegistryImpl(NamespaceStorage storage)
NamespaceRegistryImpl
.storage
- public void registerNamespace(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
registerNamespace
in interface javax.jcr.NamespaceRegistry
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
NamespaceRegistry.registerNamespace(String, String)
public void unregisterNamespace(String prefix) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
unregisterNamespace
in interface javax.jcr.NamespaceRegistry
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
NamespaceRegistry.unregisterNamespace(String)
public String[] getPrefixes() throws javax.jcr.RepositoryException
getPrefixes
in interface javax.jcr.NamespaceRegistry
javax.jcr.RepositoryException
NamespaceRegistry.getPrefixes()
public String[] getURIs() throws javax.jcr.RepositoryException
getURIs
in interface javax.jcr.NamespaceRegistry
javax.jcr.RepositoryException
NamespaceRegistry.getURIs()
public String getURI(String prefix) throws javax.jcr.NamespaceException
getURI
in interface javax.jcr.NamespaceRegistry
javax.jcr.NamespaceException
NamespaceRegistry.getURI(String)
,
NamespaceResolver.getURI(String)
public String getPrefix(String uri) throws javax.jcr.NamespaceException
getPrefix
in interface javax.jcr.NamespaceRegistry
javax.jcr.NamespaceException
NamespaceRegistry.getPrefix(String)
,
NamespaceResolver.getPrefix(String)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.