ModeShape Distribution 3.1.0.Final

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.


Field Summary
 
Fields inherited from interface javax.jcr.NamespaceRegistry
NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML
 
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.
 
Methods inherited from interface javax.jcr.NamespaceRegistry
getPrefix, getPrefixes, getURI, getURIs, registerNamespace, unregisterNamespace
 

Method Detail

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.

ModeShape Distribution 3.1.0.Final

Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.