public class DictionaryNamespaceComponent extends Object implements NamespaceService
ALFRESCO_PREFIX, ALFRESCO_URI, APP_MODEL_1_0_URI, APP_MODEL_PREFIX, AUDIO_MODEL_1_0_URI, AUDIO_MODEL_PREFIX, BPM_MODEL_1_0_URI, BPM_MODEL_PREFIX, CONTENT_MODEL_1_0_URI, CONTENT_MODEL_PREFIX, DATALIST_MODEL_1_0_URI, DATALIST_MODEL_PREFIX, DEFAULT_PREFIX, DEFAULT_URI, DICTIONARY_MODEL_1_0_URI, DICTIONARY_MODEL_PREFIX, EMAILSERVER_MODEL_PREFIX, EMAILSERVER_MODEL_URI, EXIF_MODEL_1_0_URI, EXIF_MODEL_PREFIX, FORUMS_MODEL_1_0_URI, FORUMS_MODEL_PREFIX, LINKS_MODEL_1_0_URI, LINKS_MODEL_PREFIX, RENDITION_MODEL_1_0_URI, RENDITION_MODEL_PREFIX, REPOSITORY_VIEW_1_0_URI, REPOSITORY_VIEW_PREFIX, SECURITY_MODEL_1_0_URI, SECURITY_MODEL_PREFIX, SYSTEM_MODEL_1_0_URI, SYSTEM_MODEL_PREFIX, WEBDAV_MODEL_1_0_URI, WEBDAV_MODEL_PREFIX, WORKFLOW_MODEL_1_0_URI, WORKFLOW_MODEL_PREFIX
Constructor and Description |
---|
DictionaryNamespaceComponent() |
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceURI(String prefix)
Gets the namespace URI registered for the given prefix
|
Collection<String> |
getPrefixes()
Gets all registered Prefixes
|
Collection<String> |
getPrefixes(String namespaceURI)
Gets the registered prefixes for the given namespace URI
|
Collection<String> |
getURIs()
Gets all registered Uris
|
void |
registerNamespace(String prefix,
String uri)
Register a prefix for namespace uri.
|
void |
setNamespaceDAO(NamespaceDAO namespaceDAO)
Sets the Namespace DAO
|
void |
unregisterNamespace(String prefix)
Unregister a prefix.
|
public void setNamespaceDAO(NamespaceDAO namespaceDAO)
namespaceDAO
- namespace DAOpublic Collection<String> getURIs()
NamespacePrefixResolver
getURIs
in interface NamespacePrefixResolver
public Collection<String> getPrefixes()
NamespacePrefixResolver
getPrefixes
in interface NamespacePrefixResolver
public String getNamespaceURI(String prefix)
NamespacePrefixResolver
getNamespaceURI
in interface NamespacePrefixResolver
prefix
- prefix to lookuppublic Collection<String> getPrefixes(String namespaceURI)
NamespacePrefixResolver
getPrefixes
in interface NamespacePrefixResolver
namespaceURI
- namespace URI to lookuppublic void registerNamespace(String prefix, String uri)
NamespaceService
registerNamespace
in interface NamespaceService
prefix
- Stringuri
- Stringpublic void unregisterNamespace(String prefix)
NamespaceService
unregisterNamespace
in interface NamespaceService
prefix
- StringCopyright © 2005–2016 Alfresco Software. All rights reserved.