Package net.sf.saxon.dom
Class DOMAttributeMap
- java.lang.Object
-
- net.sf.saxon.dom.DOMAttributeMap
-
- All Implemented Interfaces:
org.w3c.dom.NamedNodeMap
class DOMAttributeMap extends java.lang.Object implements org.w3c.dom.NamedNodeMapImplementation 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.Note that namespaces are treated as attributes.
-
-
Constructor Summary
Constructors Constructor Description DOMAttributeMap(NodeInfo parent)Construct an AttributeMap for a given element node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Get number of attributes and namespaces (DOM NamedNodeMap method).org.w3c.dom.NodegetNamedItem(java.lang.String name)Get named attribute (DOM NamedNodeMap method)org.w3c.dom.NodegetNamedItemNS(java.lang.String uri, java.lang.String localName)Get named attribute (DOM NamedNodeMap method)org.w3c.dom.Nodeitem(int index)Get n'th attribute (DOM NamedNodeMap method).org.w3c.dom.NoderemoveNamedItem(java.lang.String name)Remove named attribute (DOM NamedNodeMap method: always fails)org.w3c.dom.NoderemoveNamedItemNS(java.lang.String uri, java.lang.String localName)Remove named attribute (DOM NamedNodeMap method: always fails)org.w3c.dom.NodesetNamedItem(org.w3c.dom.Node arg)Set named attribute (DOM NamedNodeMap method: always fails)org.w3c.dom.NodesetNamedItemNS(org.w3c.dom.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
-
getNamedItem
public org.w3c.dom.Node getNamedItem(java.lang.String name)
Get named attribute (DOM NamedNodeMap method)- Specified by:
getNamedItemin interfaceorg.w3c.dom.NamedNodeMap
-
item
public org.w3c.dom.Node item(int index)
Get n'th attribute (DOM NamedNodeMap method). In this implementation we number the attributes as follows: 0 - the xmlns:xml namespace declaration 1-n further namespace declarations n+1... "real" attribute declarations- Specified by:
itemin interfaceorg.w3c.dom.NamedNodeMap
-
getLength
public int getLength()
Get number of attributes and namespaces (DOM NamedNodeMap method).- Specified by:
getLengthin interfaceorg.w3c.dom.NamedNodeMap
-
getNamedItemNS
public org.w3c.dom.Node getNamedItemNS(java.lang.String uri, java.lang.String localName)Get named attribute (DOM NamedNodeMap method)- Specified by:
getNamedItemNSin interfaceorg.w3c.dom.NamedNodeMap
-
setNamedItem
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg) throws org.w3c.dom.DOMExceptionSet named attribute (DOM NamedNodeMap method: always fails)- Specified by:
setNamedItemin interfaceorg.w3c.dom.NamedNodeMap- Throws:
org.w3c.dom.DOMException
-
removeNamedItem
public org.w3c.dom.Node removeNamedItem(java.lang.String name) throws org.w3c.dom.DOMExceptionRemove named attribute (DOM NamedNodeMap method: always fails)- Specified by:
removeNamedItemin interfaceorg.w3c.dom.NamedNodeMap- Throws:
org.w3c.dom.DOMException
-
setNamedItemNS
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.DOMExceptionSet named attribute (DOM NamedNodeMap method: always fails)- Specified by:
setNamedItemNSin interfaceorg.w3c.dom.NamedNodeMap- Throws:
org.w3c.dom.DOMException
-
removeNamedItemNS
public org.w3c.dom.Node removeNamedItemNS(java.lang.String uri, java.lang.String localName) throws org.w3c.dom.DOMExceptionRemove named attribute (DOM NamedNodeMap method: always fails)- Specified by:
removeNamedItemNSin interfaceorg.w3c.dom.NamedNodeMap- Throws:
org.w3c.dom.DOMException
-
-