net.sf.saxon.dom

Class DOMAttributeMap

class DOMAttributeMap extends Object implements NamedNodeMap

Implementation of DOM NamedNodeMap used to represent the attributes of an element, for use when Saxon element and attribute nodes are accessed using the DOM API.
Constructor Summary
DOMAttributeMap(NodeInfo parent)
Construct an AttributeMap for a given element node
Method Summary
intgetLength()
Get number of attributes (DOM NamedNodeMap method).
NodegetNamedItem(String name)
Get named attribute (DOM NamedNodeMap method)
NodegetNamedItemNS(String uri, String localName)
Get named attribute (DOM NamedNodeMap method)
Nodeitem(int index)
Get n'th attribute (DOM NamedNodeMap method).
NoderemoveNamedItem(String name)
Remove named attribute (DOM NamedNodeMap method: always fails)
NoderemoveNamedItemNS(String uri, String localName)
Remove named attribute (DOM NamedNodeMap method: always fails)
NodesetNamedItem(Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)
NodesetNamedItemNS(Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)

Constructor Detail

DOMAttributeMap

public DOMAttributeMap(NodeInfo parent)
Construct an AttributeMap for a given element node

Method Detail

getLength

public int getLength()
Get number of attributes (DOM NamedNodeMap method).

getNamedItem

public Node getNamedItem(String name)
Get named attribute (DOM NamedNodeMap method)

getNamedItemNS

public Node getNamedItemNS(String uri, String localName)
Get named attribute (DOM NamedNodeMap method)

item

public Node item(int index)
Get n'th attribute (DOM NamedNodeMap method). Namespace declarations are not retrieved.

removeNamedItem

public Node removeNamedItem(String name)
Remove named attribute (DOM NamedNodeMap method: always fails)

removeNamedItemNS

public Node removeNamedItemNS(String uri, String localName)
Remove named attribute (DOM NamedNodeMap method: always fails)

setNamedItem

public Node setNamedItem(Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)

setNamedItemNS

public Node setNamedItemNS(Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)