|
|||||||||||
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 NamespaceRegistry
NamespaceException
UnsupportedRepositoryOperationException
AccessDeniedException
RepositoryException
public void unregisterNamespace(String prefix) throws NamespaceException, UnsupportedRepositoryOperationException, AccessDeniedException, RepositoryException
unregisterNamespace
in interface NamespaceRegistry
NamespaceException
UnsupportedRepositoryOperationException
AccessDeniedException
RepositoryException
public String[] getPrefixes() throws RepositoryException
getPrefixes
in interface NamespaceRegistry
RepositoryException
public String[] getURIs() throws RepositoryException
getURIs
in interface NamespaceRegistry
RepositoryException
public String getURI(String prefix) throws NamespaceException
getURI
in interface NamespaceRegistry
NamespaceException
public String getPrefix(String uri) throws NamespaceException
getPrefix
in interface NamespaceRegistry
NamespaceException
public QName getQName(String name) throws IllegalNameException, UnknownPrefixException
getQName
in interface NamespaceResolver
getQName
in class AbstractNamespaceResolver
IllegalNameException
UnknownPrefixException
public String getJCRName(QName name) throws NoPrefixDeclaredException
getJCRName
in interface NamespaceResolver
getJCRName
in class AbstractNamespaceResolver
NoPrefixDeclaredException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |