DTMNodeList gives us an implementation of the DOM's
NodeList interface wrapped around a DTM Iterator. The author
considers this something of an abominations, since NodeList was not
intended to be a general purpose "list of nodes" API and is
generally considered by the DOM WG to have be a mistake... but I'm
told that some of the XPath/XSLT folks say they must have this
solution.
Please note that this is not necessarily equivlaent to a DOM
NodeList operating over the same document. In particular:
State: In progress!!
| Modifier and Type | Field and Description |
|---|---|
| private DTMIterator |
| Access | Constructor and Description |
|---|---|
| private | |
| public | DTMNodeList(DTMIterator dtmIterator)
Public constructor: Wrap a DTMNodeList around an existing and preconfigured DTMIterator Warning THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true) AGAINST THE DTMIterator. |
| Modifier and Type | Method and Description |
|---|---|
| public DTMIterator | |
| public int | getLength()
Overrides com. Implements org. The number of nodes in the list. |
| public Node | Returns: The node at theindexth position in the
NodeList, or null if that is not a valid
index.Index into the collection. index)Overrides com. Implements org. Returns the |
| m_iter | back to summary |
|---|---|
| private DTMIterator m_iter | |
| DTMNodeList | back to summary |
|---|---|
| private DTMNodeList() | |
| DTMNodeList | back to summary |
|---|---|
| public DTMNodeList(DTMIterator dtmIterator) Public constructor: Wrap a DTMNodeList around an existing and preconfigured DTMIterator Warning THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true) AGAINST THE DTMIterator. | |
| getDTMIterator | back to summary |
|---|---|
| public DTMIterator getDTMIterator() Access the wrapped DTMIterator. I'm not sure whether anyone will need this or not, but let's write it and think about it. | |
| getLength | back to summary |
|---|---|
| public int getLength() Overrides com. Implements org. The number of nodes in the list. The range of valid child node indices
is 0 to | |
| item | back to summary |
|---|---|
| public Node item(int index) Overrides com. Implements org. Returns the
| |