|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.name.AbstractNamespaceResolver
org.apache.jackrabbit.core.NamespaceRegistryImpl
A NamespaceRegistryImpl ...
| Constructor Summary | |
protected |
NamespaceRegistryImpl(FileSystem nsRegStore)
Protected constructor: Constructs a new instance of this class. |
| Method Summary | |
String |
getJCRName(QName name)
|
String |
getPrefix(String uri)
|
String[] |
getPrefixes()
|
QName |
getQName(String name)
|
String |
getUniquePrefix(String uriHint)
Returns a prefix that is unique among the already registered prefixes. |
String |
getURI(String prefix)
|
String[] |
getURIs()
|
void |
registerNamespace(String prefix,
String uri)
|
void |
unregisterNamespace(String prefix)
|
| Methods inherited from class org.apache.jackrabbit.name.AbstractNamespaceResolver |
addListener, notifyNamespaceAdded, notifyNamespaceRemapped, removeListener |
| 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 String getUniquePrefix(String uriHint)
uriHint - namespace uri that serves as hint for the prefix generation
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 QName getQName(String name)
throws IllegalNameException,
UnknownPrefixException
getQName in interface NamespaceResolvergetQName in class AbstractNamespaceResolverIllegalNameException
UnknownPrefixException
public String getJCRName(QName name)
throws NoPrefixDeclaredException
getJCRName in interface NamespaceResolvergetJCRName in class AbstractNamespaceResolverNoPrefixDeclaredException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||