|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.service.namespace.NamespaceServiceMemoryImpl
public class NamespaceServiceMemoryImpl
A basic implementation of the NamespaceService interface intended for use in unit tests. This implementation does not persist any changes beyond the lifetime of the object.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
NamespaceServiceMemoryImpl()
|
|
| Method Summary | |
|---|---|
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 namespaceURI)
Gets the registered prefixes for the given namespace URI |
java.util.Collection |
getURIs()
Gets all registered Uris |
void |
registerNamespace(java.lang.String prefix,
java.lang.String uri)
Register a prefix for namespace uri. |
void |
unregisterNamespace(java.lang.String prefix)
Unregister a prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceServiceMemoryImpl()
| Method Detail |
|---|
public void registerNamespace(java.lang.String prefix,
java.lang.String uri)
NamespaceService
registerNamespace in interface NamespaceServicepublic void unregisterNamespace(java.lang.String prefix)
NamespaceService
unregisterNamespace in interface NamespaceService
public java.lang.String getNamespaceURI(java.lang.String prefix)
throws NamespaceException
NamespacePrefixResolver
getNamespaceURI in interface NamespacePrefixResolverprefix - prefix to lookup
NamespaceException - if prefix has not been registered
public java.util.Collection getPrefixes(java.lang.String namespaceURI)
throws NamespaceException
NamespacePrefixResolver
getPrefixes in interface NamespacePrefixResolvernamespaceURI - namespace URI to lookup
NamespaceException - if URI has not been registeredpublic java.util.Collection getPrefixes()
NamespacePrefixResolver
getPrefixes in interface NamespacePrefixResolverpublic java.util.Collection getURIs()
NamespacePrefixResolver
getURIs in interface NamespacePrefixResolver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||