Package org.alfresco.service.namespace
Interface NamespacePrefixResolver
- All Known Subinterfaces:
NamespaceDAO
,NamespaceService
- All Known Implementing Classes:
DictionaryDAOImpl
,DictionaryNamespaceComponent
,DynamicNamespacePrefixResolver
,NamespaceServiceMemoryImpl
The
NamespacePrefixResolver
provides a mapping between
namespace prefixes and namespace URIs.- Author:
- David Caruana
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) Gets the namespace URI registered for the given prefixGets all registered PrefixesgetPrefixes
(String namespaceURI) Gets the registered prefixes for the given namespace URIgetURIs()
Gets all registered Uris
-
Method Details
-
getNamespaceURI
Gets the namespace URI registered for the given prefix- Parameters:
prefix
- prefix to lookup- Returns:
- the namespace
- Throws:
NamespaceException
- if prefix has not been registered
-
getPrefixes
@Auditable(parameters="namespaceURI") Collection<String> getPrefixes(String namespaceURI) throws NamespaceException Gets the registered prefixes for the given namespace URI- Parameters:
namespaceURI
- namespace URI to lookup- Returns:
- the prefixes (or empty collection, if no prefixes registered against URI)
- Throws:
NamespaceException
- if URI has not been registered
-
getPrefixes
Gets all registered Prefixes- Returns:
- collection of all registered namespace prefixes
-
getURIs
Gets all registered Uris- Returns:
- collection of all registered namespace uris
-