Class DTMNamedNodeMap

java.lang.Object
org.loboevolution.apache.xml.dtm.ref.DTMNamedNodeMap
All Implemented Interfaces:
NamedNodeMap

public class DTMNamedNodeMap extends Object implements NamedNodeMap
DTMNamedNodeMap is a quickie (as opposed to quick) implementation of the DOM's NamedNodeMap interface, intended to support DTMProxy's getAttributes() call.

***** Note: this does _not_ current attempt to cache any of the data; if you ask for attribute 27 and then 28, you'll have to rescan the first 27. It should probably at least keep track of the last one retrieved, and possibly buffer the whole array.

***** Also note that there's no fastpath for the by-name query; we search linearly until we find it or fail to find it. Again, that could be optimized at some cost in object creation/storage.