|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.NamespaceRegistryImpl
public class NamespaceRegistryImpl
A NamespaceRegistryImpl ...
| 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 |
| Constructor Summary | |
|---|---|
protected |
NamespaceRegistryImpl(FileSystem nsRegStore)
Protected constructor: Constructs a new instance of this class. |
| Method Summary | |
|---|---|
void |
externalRemap(String oldPrefix,
String newPrefix,
String uri)
Called when a namespace has been externally remapped. |
String |
getPrefix(String uri)
|
String[] |
getPrefixes()
|
String |
getURI(String prefix)
|
String[] |
getURIs()
|
String |
indexToString(int idx)
Returns the namespace URI for a given index (i.e. |
void |
registerNamespace(String prefix,
String uri)
|
void |
setEventChannel(NamespaceEventChannel eventChannel)
Set an event channel to inform about changes. |
int |
stringToIndex(String uri)
Returns the index (i.e. |
void |
unregisterNamespace(String prefix)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NamespaceRegistryImpl(FileSystem nsRegStore)
throws RepositoryException
nsRegStore -
RepositoryException| Method Detail |
|---|
public void setEventChannel(NamespaceEventChannel eventChannel)
eventChannel - event channelpublic int stringToIndex(String uri)
stringToIndex in interface StringIndexuri - namespace URI
IllegalArgumentException - if the namespace is not registeredpublic String indexToString(int idx)
indexToString in interface StringIndexidx - namespace index
IllegalArgumentException - if the given index is invalid
public void registerNamespace(String prefix,
String uri)
throws NamespaceException,
UnsupportedRepositoryOperationException,
AccessDeniedException,
RepositoryException
registerNamespace in interface NamespaceRegistryNamespaceException
UnsupportedRepositoryOperationException
AccessDeniedException
RepositoryException
public void unregisterNamespace(String prefix)
throws NamespaceException,
UnsupportedRepositoryOperationException,
AccessDeniedException,
RepositoryException
unregisterNamespace in interface NamespaceRegistryNamespaceException
UnsupportedRepositoryOperationException
AccessDeniedException
RepositoryException
public String[] getPrefixes()
throws RepositoryException
getPrefixes in interface NamespaceRegistryRepositoryException
public String[] getURIs()
throws RepositoryException
getURIs in interface NamespaceRegistryRepositoryException
public String getURI(String prefix)
throws NamespaceException
getURI in interface NamespaceRegistryNamespaceException
public String getPrefix(String uri)
throws NamespaceException
getPrefix in interface NamespaceRegistryNamespaceException
public void externalRemap(String oldPrefix,
String newPrefix,
String uri)
throws RepositoryException
externalRemap in interface NamespaceEventListeneroldPrefix - old prefix. if null this is a fresh mappingnewPrefix - new prefix. if null this is an unmap operationuri - uri to map prefix to
RepositoryException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||