public final class AttrNodeMap extends Object implements NamedNodeMap
This map must be implemented outside of ElementImpl
due to
method name conflict with certain HTML elements (specifically getLength()
).
NamedNodeMap
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Return the number of attributes in this element.
|
Node |
getNamedItem(String name) |
Node |
getNamedItemNS(String namespaceURI,
String localName) |
Node |
item(int index)
Return the nth attribute of the element (zero based).
|
Node |
removeNamedItem(String name) |
Node |
removeNamedItemNS(String namespaceURI,
String localName) |
Node |
setNamedItem(Node arg) |
Node |
setNamedItemNS(Node arg) |
public Node item(int index)
item
in interface NamedNodeMap
index
- Index of attribute to return (zero based)public int getLength()
getLength
in interface NamedNodeMap
public Node getNamedItem(String name)
getNamedItem
in interface NamedNodeMap
public Node getNamedItemNS(String namespaceURI, String localName)
getNamedItemNS
in interface NamedNodeMap
public Node setNamedItem(Node arg) throws DOMException
setNamedItem
in interface NamedNodeMap
DOMException
public Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS
in interface NamedNodeMap
DOMException
public Node removeNamedItem(String name) throws DOMException
removeNamedItem
in interface NamedNodeMap
DOMException
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
removeNamedItemNS
in interface NamedNodeMap
DOMException
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.