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