public class AttributeMap extends AbstractMap<NamespaceName,String>
AttributesImpl
.
Standardized "map interface" methods are available which reflect the state of this peer.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AttributeMap()
Constructs a new facade object for an empty collection of SAX attributes.
|
AttributeMap(AttributeMap map)
Constructs a new facade object with the same implementation object.
|
AttributeMap(Attributes impl)
Constructs a new facade object for the given SAX attributes.
|
Modifier and Type | Method and Description |
---|---|
static String |
contentsToString(Attributes attrs)
Auxiliary method do print the contents of a SAX Attributes object.
|
Set<Map.Entry<NamespaceName,String>> |
entrySet() |
Attributes |
getImplementation() |
String |
put(NamespaceName name,
String value) |
String |
remove(NamespaceName name) |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public AttributeMap(Attributes impl)
AttributesImpl
, then write operations are supported.
Otherwise read only.public AttributeMap()
public AttributeMap(AttributeMap map)
public Attributes getImplementation()
public Set<Map.Entry<NamespaceName,String>> entrySet()
entrySet
in interface Map<NamespaceName,String>
entrySet
in class AbstractMap<NamespaceName,String>
public String put(NamespaceName name, String value)
put
in interface Map<NamespaceName,String>
put
in class AbstractMap<NamespaceName,String>
public String remove(NamespaceName name)
public static String contentsToString(Attributes attrs)
see also the complete user documentation .