Top Fields Constructors Methods
groovy.util.slurpersupport

public Class NamespaceAwareHashMap

extends HashMap<String, String>
Class Inheritance
Annotations
@Deprecated
Imports
groovy.xml.QName, java.util.HashMap, .Map

Deprecated

Field Summary

Modifier and TypeField and Description
private Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Object
public boolean
containsKey(Object
The key whose presence in this map is to be tested
key
)

Overrides java.util.HashMap.containsKey.

Implements java.util.Map.containsKey.

Returns true if this map contains a mapping for the specified key.
public String
get(Object
the key whose associated value is to be returned
key
)

Overrides java.util.HashMap.get.

Implements java.util.Map.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
public Map<K, V>
public String
put(String
key with which the specified value is to be associated
key
,
String
value to be associated with the specified key
value
)

Overrides java.util.HashMap.put.

Implements java.util.Map.put.

Associates the specified value with the specified key in this map.
public void
putAll(Map<? extends String, ? extends String>
mappings to be stored in this map
m
)

Overrides java.util.HashMap.putAll.

Implements java.util.Map.putAll.

Copies all of the mappings from the specified map to this map.
public String
remove(Object
key whose mapping is to be removed from the map
key
)

Overrides java.util.HashMap.remove.

Implements java.util.Map.remove.

Removes the mapping for the specified key from this map if present.
public void
setNamespaceTagHints(Map<K, V> namespaceTagHints)

Inherited from java.util.HashMap:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainsValueentrySetforEachgetOrDefaultisEmptykeySetmergenewHashMapputIfAbsentremovereplacereplacereplaceAllsizevalues

Field Detail

namespaceTagHintsback to summary
private Map<K, V> namespaceTagHints

Constructor Detail

NamespaceAwareHashMapback to summary
public NamespaceAwareHashMap()

Method Detail

adjustForNamespaceIfNeededback to summary
private Object adjustForNamespaceIfNeeded(Object key)
containsKeyback to summary
public boolean containsKey(Object key)

Overrides java.util.HashMap.containsKey.

Implements java.util.Map.containsKey.

Doc from java.util.HashMap.containsKey.

Returns true if this map contains a mapping for the specified key.

Parameters
key:Object

The key whose presence in this map is to be tested

Returns:boolean

true if this map contains a mapping for the specified key.

Annotations
@Override
getback to summary
public String get(Object key)

Overrides java.util.HashMap.get.

Implements java.util.Map.get.

Doc from java.util.HashMap.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

More formally, if this map contains a mapping from a key k to a value v such that (key==null ? k==null : key.equals(k)), then this method returns v; otherwise it returns null. (There can be at most one such mapping.)

A return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases.

Parameters
key:Object

Doc from java.util.Map.get.

the key whose associated value is to be returned

Returns:String

Doc from java.util.Map.get.

the value to which the specified key is mapped, or null if this map contains no mapping for the key

Annotations
@Override
getNamespaceTagHintsback to summary
public Map<K, V> getNamespaceTagHints()
putback to summary
public String put(String key, String value)

Overrides java.util.HashMap.put.

Implements java.util.Map.put.

Doc from java.util.HashMap.put.

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.

Parameters
key:String

key with which the specified value is to be associated

value:String

value to be associated with the specified key

Returns:String

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key.)

Annotations
@Override
putAllback to summary
public void putAll(Map<? extends String, ? extends String> m)

Overrides java.util.HashMap.putAll.

Implements java.util.Map.putAll.

Doc from java.util.HashMap.putAll.

Copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map.

Parameters
m:Map<? extends String, ? extends String>

mappings to be stored in this map

Annotations
@Override
removeback to summary
public String remove(Object key)

Overrides java.util.HashMap.remove.

Implements java.util.Map.remove.

Doc from java.util.HashMap.remove.

Removes the mapping for the specified key from this map if present.

Parameters
key:Object

key whose mapping is to be removed from the map

Returns:String

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key.)

Annotations
@Override
setNamespaceTagHintsback to summary
public void setNamespaceTagHints(Map<K, V> namespaceTagHints)