|
ModeShape Distribution 3.3.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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. |
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. |
| Methods inherited from interface javax.jcr.NamespaceRegistry |
|---|
getPrefix, getPrefixes, getURI, getURIs, registerNamespace, unregisterNamespace |
| Method Detail |
|---|
boolean isRegisteredPrefix(String prefix)
throws RepositoryException
prefix - the namespace prefix; may not be null
RepositoryException - if another error occurs.
boolean isRegisteredUri(String uri)
throws RepositoryException
uri - the namespace URI; may not be null
RepositoryException - if another error occurs.
String registerNamespace(String uri)
throws UnsupportedRepositoryOperationException,
AccessDeniedException,
RepositoryException
uri - The URI of the namespace; may not be null
UnsupportedRepositoryOperationException - 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.
|
ModeShape Distribution 3.3.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||