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
ConstructorsModifierConstructorDescriptionprotectedQNameMap()Constructor for Serialization mechanismQNameMap(NamespacePrefixResolverProvider provider) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()Shallow copy the map by copying keys and values into a new QNameMapbooleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()protected final NamespacePrefixResolverHelper to return a NamespacePrefixResolver instance - should -always- be used rather than holding onto a reference on the heap.booleanisEmpty()keySet()voidfinal intsize()toString()Override Object.toString() to provide useful debug outputvalues()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
containsKeyin interfaceMap<K,V> - See Also:
-
containsValue
- Specified by:
containsValuein 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
-