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 int | |
private DTM |
Access | Constructor and Description |
---|---|
private | |
public | DTMChildIterNodeList(DTM
The DTM containing this node parentDTM, int DTM node-handle integer parentHandle)Public constructor: Create a NodeList to support DTMNodeProxy.getChildren(). |
Modifier and Type | Method and Description |
---|---|
public int | getLength()
Overrides com. Implements org. The number of nodes in the list. |
public Node | Returns: The node at theindex th 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_firstChild | back to summary |
---|---|
private int m_firstChild |
m_parentDTM | back to summary |
---|---|
private DTM m_parentDTM |
DTMChildIterNodeList | back to summary |
---|---|
private DTMChildIterNodeList() |
DTMChildIterNodeList | back to summary |
---|---|
public DTMChildIterNodeList(DTM parentDTM, int parentHandle) Public constructor: Create a NodeList to support DTMNodeProxy.getChildren(). Unfortunately AxisIterators and DTMIterators don't share an API, so I can't use the existing Axis.CHILD iterator. Rather than create Yet Another Class, let's set up a special case of this one.
|
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
|