public interface NamespaceRegistry extends NamespaceRegistry
NamespaceRegistry interface, with a few ModeShape-specific enhancements.NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML| Modifier and Type | Method and Description |
|---|---|
boolean |
isRegisteredPrefix(String prefix)
Determine if there is a namespace registered with the supplied prefix.
|
boolean |
isRegisteredUri(String uri)
Determine if there is a namespace registered with the supplied URI.
|
String |
registerNamespace(String uri)
Get the prefix for a registered namespace with the supplied URI or, if no such namespace is registered, register it with a
generated prefix and return that prefix.
|
getPrefix, getPrefixes, getURI, getURIs, registerNamespace, unregisterNamespaceboolean isRegisteredPrefix(String prefix) throws RepositoryException
prefix - the namespace prefix; may not be nullRepositoryException - if another error occurs.boolean isRegisteredUri(String uri) throws RepositoryException
uri - the namespace URI; may not be nullRepositoryException - if another error occurs.String registerNamespace(String uri) throws UnsupportedRepositoryOperationException, AccessDeniedException, RepositoryException
uri - The URI of the namespace; may not be nullUnsupportedRepositoryOperationException - if this repository does not support namespace registry changes.AccessDeniedException - if the current session does not have sufficent access to register the namespace.RepositoryException - if another error occurs.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.