Package org.htmlunit.html
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 boolean
private final DomElement
protected static final NamedAttrNodeMapImpl
private 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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
private String
protected DomAttr
Fast access.int
getNamedItem
(String name) getNamedItemNS
(String namespaceURI, String localName) boolean
isEmpty()
item
(int index) keySet()
void
removeNamedItem
(String name) removeNamedItemNS
(String namespaceURI, String localName) setNamedItem
(Node node) setNamedItemNS
(Node node) int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.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:
getLength
in interfaceNamedNodeMap
-
getNamedItem
- Specified by:
getNamedItem
in interfaceNamedNodeMap
-
fixName
-
getNamedItemNS
- Specified by:
getNamedItemNS
in interfaceNamedNodeMap
-
item
- Specified by:
item
in interfaceNamedNodeMap
-
removeNamedItem
- Specified by:
removeNamedItem
in interfaceNamedNodeMap
- Throws:
DOMException
-
removeNamedItemNS
- Specified by:
removeNamedItemNS
in interfaceNamedNodeMap
-
setNamedItem
- Specified by:
setNamedItem
in interfaceNamedNodeMap
-
setNamedItemNS
- Specified by:
setNamedItemNS
in interfaceNamedNodeMap
- Throws:
DOMException
-
put
-
remove
-
clear
public void clear() -
putAll
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
DomAttr>
-
get
-
getDirect
Fast access.- Parameters:
key
- the key
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
DomAttr>
-
entrySet
-
isEmpty
public boolean isEmpty() -
keySet
-
size
public int size() -
values
-