Package groovy.xml.slurpersupport
Class NamespaceAwareHashMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
Attribute map that resolves namespace-prefixed keys into QName-style names on demand.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) Returns the prefix hints used for key normalization.voidvoidsetNamespaceTagHints(Map namespaceTagHints) Sets the prefix-to-namespace hints used to normalize prefixed keys.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
NamespaceAwareHashMap
public NamespaceAwareHashMap()
-
-
Method Details
-
setNamespaceTagHints
Sets the prefix-to-namespace hints used to normalize prefixed keys.- Parameters:
namespaceTagHints- known namespace prefix mappings
-
getNamespaceTagHints
Returns the prefix hints used for key normalization.- Returns:
- namespace prefix hints
-
get
-
remove
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,String> - Overrides:
containsKeyin classHashMap<String,String>
-
put
-
putAll
-