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 ofNamedNodeMap
to store attributes names and values.
-
-
Constructor Summary
Constructors Constructor Description AmetysNamedNodeMap(Map<String,AmetysAttribute> map)
Contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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:
getNamedItem
in interfaceNamedNodeMap
-
item
public Node item(int index)
- Specified by:
item
in interfaceNamedNodeMap
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceNamedNodeMap
-
getNamedItemNS
public Node getNamedItemNS(String namespaceURI, String localName) throws DOMException
- Specified by:
getNamedItemNS
in interfaceNamedNodeMap
- Throws:
DOMException
-
setNamedItemNS
public Node setNamedItemNS(Node arg) throws DOMException
- Specified by:
setNamedItemNS
in interfaceNamedNodeMap
- Throws:
DOMException
-
removeNamedItemNS
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
- Specified by:
removeNamedItemNS
in interfaceNamedNodeMap
- Throws:
DOMException
-
setNamedItem
public Node setNamedItem(Node arg) throws DOMException
- Specified by:
setNamedItem
in interfaceNamedNodeMap
- Throws:
DOMException
-
removeNamedItem
public Node removeNamedItem(String name) throws DOMException
- Specified by:
removeNamedItem
in interfaceNamedNodeMap
- Throws:
DOMException
-
-