public class NamespaceDAOImpl extends Object implements NamespaceDAO
| Modifier and Type | Class and Description |
|---|---|
static class |
NamespaceDAOImpl.NamespaceRegistry |
| Constructor and Description |
|---|
NamespaceDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefix(String prefix,
String uri)
Add a namespace prefix
|
void |
addURI(String uri)
Add a namespace URI
|
void |
afterDictionaryInit()
Complete the initialisation
|
void |
clearNamespaceLocal()
Clear NamespaceLocal
|
void |
destroy()
Destroy the namespaces
|
String |
getNamespaceURI(String prefix)
Gets the namespace URI registered for the given prefix
|
Collection<String> |
getPrefixes()
Gets all registered Prefixes
|
Collection<String> |
getPrefixes(String URI)
Gets the registered prefixes for the given namespace URI
|
Collection<String> |
getURIs()
Gets all registered Uris
|
void |
init()
Initialise empty namespaces
|
void |
registerDictionary(DictionaryDAO dictionaryDAO)
Register with the Dictionary
|
void |
removePrefix(String prefix)
Remove a namspace prefix
|
void |
removeURI(String uri)
Remove the specified URI
|
void |
setNamespaceRegistryCache(SimpleCache<String,NamespaceDAOImpl.NamespaceRegistry> namespaceRegistryCache) |
void |
setTenantService(TenantService tenantService) |
public void setTenantService(TenantService tenantService)
public void setNamespaceRegistryCache(SimpleCache<String,NamespaceDAOImpl.NamespaceRegistry> namespaceRegistryCache)
public void registerDictionary(DictionaryDAO dictionaryDAO)
NamespaceDAOregisterDictionary in interface NamespaceDAOpublic void afterDictionaryInit()
afterDictionaryInit in interface NamespaceDAOpublic void init()
init in interface NamespaceDAOpublic void destroy()
destroy in interface NamespaceDAOpublic Collection<String> getURIs()
NamespacePrefixResolvergetURIs in interface NamespacePrefixResolverpublic Collection<String> getPrefixes()
NamespacePrefixResolvergetPrefixes in interface NamespacePrefixResolverpublic void addURI(String uri)
NamespaceDAOaddURI in interface NamespaceDAOuri - the namespace uri to addpublic void addPrefix(String prefix, String uri)
NamespaceDAOaddPrefix in interface NamespaceDAOprefix - the prefixuri - the uri to prefixpublic void removeURI(String uri)
NamespaceDAOremoveURI in interface NamespaceDAOuri - the uri to removepublic void removePrefix(String prefix)
NamespaceDAOremovePrefix in interface NamespaceDAOprefix - the prefix to removepublic String getNamespaceURI(String prefix)
NamespacePrefixResolvergetNamespaceURI in interface NamespacePrefixResolverprefix - prefix to lookuppublic Collection<String> getPrefixes(String URI)
NamespacePrefixResolvergetPrefixes in interface NamespacePrefixResolverURI - namespace URI to lookuppublic void clearNamespaceLocal()
NamespaceDAOclearNamespaceLocal in interface NamespaceDAOCopyright © 2005–2014 Alfresco Software. All rights reserved.