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 NamedNodeMapindex - Index of attribute to return (zero based)public int getLength()
getLength in interface NamedNodeMappublic Node getNamedItem(String name)
getNamedItem in interface NamedNodeMappublic Node getNamedItemNS(String namespaceURI, String localName)
getNamedItemNS in interface NamedNodeMappublic Node setNamedItem(Node arg) throws DOMException
setNamedItem in interface NamedNodeMapDOMExceptionpublic Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS in interface NamedNodeMapDOMExceptionpublic Node removeNamedItem(String name) throws DOMException
removeNamedItem in interface NamedNodeMapDOMExceptionpublic Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
removeNamedItemNS in interface NamedNodeMapDOMExceptionPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.