Package org.ametys.core.util.dom
Class AmetysNamedNodeMap
- java.lang.Object
 - 
- org.ametys.core.util.dom.AmetysNamedNodeMap
 
 
- 
- All Implemented Interfaces:
 NamedNodeMap
public class AmetysNamedNodeMap extends Object implements NamedNodeMap
Implementation ofNamedNodeMapto store attributes names and values. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private ArrayList<AmetysAttribute>_listprivate Map<String,AmetysAttribute>_map 
- 
Constructor Summary
Constructors Constructor Description AmetysNamedNodeMap(Map<String,AmetysAttribute> map)Contructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()NodegetNamedItem(String name)NodegetNamedItemNS(String namespaceURI, String localName)Nodeitem(int index)NoderemoveNamedItem(String name)NoderemoveNamedItemNS(String namespaceURI, String localName)NodesetNamedItem(Node arg)NodesetNamedItemNS(Node arg) 
 - 
 
- 
- 
Field Detail
- 
_map
private Map<String,AmetysAttribute> _map
 
- 
_list
private ArrayList<AmetysAttribute> _list
 
 - 
 
- 
Constructor Detail
- 
AmetysNamedNodeMap
public AmetysNamedNodeMap(Map<String,AmetysAttribute> map)
Contructor.- Parameters:
 map- a <name, attribute> map.
 
 - 
 
- 
Method Detail
- 
getNamedItem
public Node getNamedItem(String name)
- Specified by:
 getNamedItemin interfaceNamedNodeMap
 
- 
item
public Node item(int index)
- Specified by:
 itemin interfaceNamedNodeMap
 
- 
getLength
public int getLength()
- Specified by:
 getLengthin interfaceNamedNodeMap
 
- 
getNamedItemNS
public Node getNamedItemNS(String namespaceURI, String localName) throws DOMException
- Specified by:
 getNamedItemNSin interfaceNamedNodeMap- Throws:
 DOMException
 
- 
setNamedItemNS
public Node setNamedItemNS(Node arg) throws DOMException
- Specified by:
 setNamedItemNSin interfaceNamedNodeMap- Throws:
 DOMException
 
- 
removeNamedItemNS
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
- Specified by:
 removeNamedItemNSin interfaceNamedNodeMap- Throws:
 DOMException
 
- 
setNamedItem
public Node setNamedItem(Node arg) throws DOMException
- Specified by:
 setNamedItemin interfaceNamedNodeMap- Throws:
 DOMException
 
- 
removeNamedItem
public Node removeNamedItem(String name) throws DOMException
- Specified by:
 removeNamedItemin interfaceNamedNodeMap- Throws:
 DOMException
 
 - 
 
 -