public class AmetysNamedNodeMap extends Object implements NamedNodeMap
NamedNodeMap to store attributes names and values.| Modifier and Type | Field and Description |
|---|---|
private ArrayList<AmetysAttribute> |
_list |
private Map<String,AmetysAttribute> |
_map |
| Constructor and Description |
|---|
AmetysNamedNodeMap(Map<String,AmetysAttribute> map)
Contructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
Node |
getNamedItem(String name) |
Node |
getNamedItemNS(String namespaceURI,
String localName) |
Node |
item(int index) |
Node |
removeNamedItem(String name) |
Node |
removeNamedItemNS(String namespaceURI,
String localName) |
Node |
setNamedItem(Node arg) |
Node |
setNamedItemNS(Node arg) |
private Map<String,AmetysAttribute> _map
private ArrayList<AmetysAttribute> _list
public AmetysNamedNodeMap(Map<String,AmetysAttribute> map)
map - a <name, attribute> map.public Node getNamedItem(String name)
getNamedItem in interface NamedNodeMappublic Node item(int index)
item in interface NamedNodeMappublic int getLength()
getLength in interface NamedNodeMappublic Node getNamedItemNS(String namespaceURI, String localName) throws DOMException
getNamedItemNS in interface NamedNodeMapDOMExceptionpublic Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS in interface NamedNodeMapDOMExceptionpublic Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
removeNamedItemNS in interface NamedNodeMapDOMExceptionpublic Node setNamedItem(Node arg) throws DOMException
setNamedItem in interface NamedNodeMapDOMExceptionpublic Node removeNamedItem(String name) throws DOMException
removeNamedItem in interface NamedNodeMapDOMException