Package org.alfresco.service.namespace
Class QNameMap<K,V>
java.lang.Object
org.alfresco.service.namespace.QNameMap<K,V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
A Map that holds as it's key a QName stored in it's internal String representation.
Calls to get and put automatically map the key to and from the QName representation.
- Author:
- gavinc
- See Also:
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
QNameMap()
Constructor for Serialization mechanismQNameMap
(NamespacePrefixResolverProvider provider) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
Shallow copy the map by copying keys and values into a new QNameMapboolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
protected final NamespacePrefixResolver
Helper to return a NamespacePrefixResolver instance - should -always- be used rather than holding onto a reference on the heap.boolean
isEmpty()
keySet()
void
final int
size()
toString()
Override Object.toString() to provide useful debug outputvalues()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
logger
protected static org.apache.commons.logging.Log logger -
contents
-
provider
-
-
Constructor Details
-
QNameMap
Constructor- Parameters:
provider
- Mandatory NamespacePrefixResolverProvider helper
-
QNameMap
protected QNameMap()Constructor for Serialization mechanism
-
-
Method Details
-
getResolver
Helper to return a NamespacePrefixResolver instance - should -always- be used rather than holding onto a reference on the heap.- Returns:
- NamespacePrefixResolver
-
size
public final int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - See Also:
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - See Also:
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
Override Object.toString() to provide useful debug output -
clone
Shallow copy the map by copying keys and values into a new QNameMap -
getMapOfQNames
-