|
||||||||||
| 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 ...
| Constructor Summary | |
|---|---|
protected |
NamespaceRegistryImpl(FileSystem nsRegStore)
Protected constructor: Constructs a new instance of this class. |
| Method Summary | |
|---|---|
void |
externalRemap(java.lang.String oldPrefix,
java.lang.String newPrefix,
java.lang.String uri)
Called when a namespace has been externally remapped. |
java.lang.String |
getPrefix(java.lang.String uri)
|
java.lang.String[] |
getPrefixes()
|
java.lang.String |
getURI(java.lang.String prefix)
|
java.lang.String[] |
getURIs()
|
java.lang.String |
indexToString(int idx)
Returns the namespace URI for a given index (i.e. |
void |
registerNamespace(java.lang.String prefix,
java.lang.String uri)
|
void |
setEventChannel(NamespaceEventChannel eventChannel)
Set an event channel to inform about changes. |
int |
stringToIndex(java.lang.String uri)
Returns the index (i.e. |
void |
unregisterNamespace(java.lang.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 javax.jcr.RepositoryException
nsRegStore -
javax.jcr.RepositoryException| Method Detail |
|---|
public void setEventChannel(NamespaceEventChannel eventChannel)
eventChannel - event channelpublic int stringToIndex(java.lang.String uri)
stringToIndex in interface StringIndexuri - namespace URI
java.lang.IllegalArgumentException - if the namespace is not registeredpublic java.lang.String indexToString(int idx)
indexToString in interface StringIndexidx - namespace index
java.lang.IllegalArgumentException - if the given index is invalid
public void registerNamespace(java.lang.String prefix,
java.lang.String uri)
throws javax.jcr.NamespaceException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
registerNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
public void unregisterNamespace(java.lang.String prefix)
throws javax.jcr.NamespaceException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
unregisterNamespace in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
public java.lang.String[] getPrefixes()
throws javax.jcr.RepositoryException
getPrefixes in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryException
public java.lang.String[] getURIs()
throws javax.jcr.RepositoryException
getURIs in interface javax.jcr.NamespaceRegistryjavax.jcr.RepositoryException
public java.lang.String getURI(java.lang.String prefix)
throws javax.jcr.NamespaceException
getURI in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceException
public java.lang.String getPrefix(java.lang.String uri)
throws javax.jcr.NamespaceException
getPrefix in interface javax.jcr.NamespaceRegistryjavax.jcr.NamespaceException
public void externalRemap(java.lang.String oldPrefix,
java.lang.String newPrefix,
java.lang.String uri)
throws javax.jcr.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
javax.jcr.RepositoryException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||