org.modeshape.jcr.api
Interface NamespaceRegistry
- All Superinterfaces:
- NamespaceRegistry
public interface NamespaceRegistry
- extends NamespaceRegistry
An extension of JCR 2.0's NamespaceRegistry interface, with a few ModeShape-specific enhancements.
|
Method Summary |
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. |
isRegisteredPrefix
boolean isRegisteredPrefix(String prefix)
throws RepositoryException
- Determine if there is a namespace registered with the supplied prefix.
- Parameters:
prefix - the namespace prefix; may not be null
- Returns:
- true if an existing namespace is registered to use the supplied prefix, or false otherwise
- Throws:
RepositoryException - if another error occurs.
isRegisteredUri
boolean isRegisteredUri(String uri)
throws RepositoryException
- Determine if there is a namespace registered with the supplied URI.
- Parameters:
uri - the namespace URI; may not be null
- Returns:
- true if a namespace with the supplied URI is already registered, or false otherwise
- Throws:
RepositoryException - if another error occurs.
Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.