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 NamedNodeMap
public Node item(int index)
item
in interface NamedNodeMap
public int getLength()
getLength
in interface NamedNodeMap
public Node getNamedItemNS(String namespaceURI, String localName) throws DOMException
getNamedItemNS
in interface NamedNodeMap
DOMException
public Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS
in interface NamedNodeMap
DOMException
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
removeNamedItemNS
in interface NamedNodeMap
DOMException
public Node setNamedItem(Node arg) throws DOMException
setNamedItem
in interface NamedNodeMap
DOMException
public Node removeNamedItem(String name) throws DOMException
removeNamedItem
in interface NamedNodeMap
DOMException