DTMAxisNodeList 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 IntVector | |
| private DTM | |
| private DTMAxisIterator | |
| private int |
| Access | Constructor and Description |
|---|---|
| private | |
| public | DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator)
Public constructor: Wrap a DTMNodeList around an existing and preconfigured DTMAxisIterator |
| Modifier and Type | Method and Description |
|---|---|
| public DTMAxisIterator | |
| 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_cachedNodes | back to summary |
|---|---|
| private IntVector m_cachedNodes | |
| m_dtm | back to summary |
|---|---|
| private DTM m_dtm | |
| m_iter | back to summary |
|---|---|
| private DTMAxisIterator m_iter | |
| m_last | back to summary |
|---|---|
| private int m_last | |
| DTMAxisIterNodeList | back to summary |
|---|---|
| private DTMAxisIterNodeList() | |
| DTMAxisIterNodeList | back to summary |
|---|---|
| public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) Public constructor: Wrap a DTMNodeList around an existing and preconfigured DTMAxisIterator | |
| getDTMAxisIterator | back to summary |
|---|---|
| public DTMAxisIterator getDTMAxisIterator() 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
| |