Class NamedAttrNodeMapImpl
java.lang.Object
org.htmlunit.html.NamedAttrNodeMapImpl
- All Implemented Interfaces:
Serializable, Map<String,DomAttr>, NamedNodeMap
class NamedAttrNodeMapImpl
extends Object
implements Map<String,DomAttr>, NamedNodeMap, Serializable
The
NamedNodeMap to store the node attributes.-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final DomElementprotected static final NamedAttrNodeMapImplprivate final OrderedFastHashMap<String, DomAttr> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate(package private)NamedAttrNodeMapImpl(DomElement domNode, boolean caseSensitive) (package private)NamedAttrNodeMapImpl(DomElement domNode, boolean caseSensitive, Map<String, DomAttr> attributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()private Stringprotected DomAttrFast access.intgetNamedItem(String name) getNamedItemNS(String namespaceURI, String localName) booleanisEmpty()item(int index) keySet()voidremoveNamedItem(String name) removeNamedItemNS(String namespaceURI, String localName) setNamedItem(Node node) setNamedItemNS(Node node) intsize()values()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
EMPTY_MAP
-
map_
-
domNode_
-
caseSensitive_
private final boolean caseSensitive_
-
-
Constructor Details
-
NamedAttrNodeMapImpl
private NamedAttrNodeMapImpl() -
NamedAttrNodeMapImpl
NamedAttrNodeMapImpl(DomElement domNode, boolean caseSensitive) -
NamedAttrNodeMapImpl
NamedAttrNodeMapImpl(DomElement domNode, boolean caseSensitive, Map<String, DomAttr> attributes)
-
-
Method Details
-
getLength
public int getLength()- Specified by:
getLengthin interfaceNamedNodeMap
-
getNamedItem
- Specified by:
getNamedItemin interfaceNamedNodeMap
-
fixName
-
getNamedItemNS
- Specified by:
getNamedItemNSin interfaceNamedNodeMap
-
item
- Specified by:
itemin interfaceNamedNodeMap
-
removeNamedItem
- Specified by:
removeNamedItemin interfaceNamedNodeMap- Throws:
DOMException
-
removeNamedItemNS
- Specified by:
removeNamedItemNSin interfaceNamedNodeMap
-
setNamedItem
- Specified by:
setNamedItemin interfaceNamedNodeMap
-
setNamedItemNS
- Specified by:
setNamedItemNSin interfaceNamedNodeMap- Throws:
DOMException
-
put
-
remove
-
clear
-
putAll
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,DomAttr>
-
get
-
getDirect
-
containsValue
- Specified by:
containsValuein interfaceMap<String,DomAttr>
-
entrySet
-
isEmpty
-
keySet
-
size
-
values
-