net.sf.saxon.dom

Class DOMNodeList

public final class DOMNodeList extends Object implements NodeList

This class wraps a list of nodes as a DOM NodeList
Constructor Summary
DOMNodeList(List<Node> extent)
Construct an node list that wraps a supplied list of DOM Nodes.
Method Summary
static DOMNodeListcheckAndMake(SequenceExtent extent)
Construct an node list that wraps a supplied SequenceExtent, checking that all the items in the sequence are wrappers around DOM Nodes
intgetLength()
return the number of nodes in the list (DOM method)
Nodeitem(int index)
Return the n'th item in the list (DOM method)

Constructor Detail

DOMNodeList

public DOMNodeList(List<Node> extent)
Construct an node list that wraps a supplied list of DOM Nodes.

Method Detail

checkAndMake

public static DOMNodeList checkAndMake(SequenceExtent extent)
Construct an node list that wraps a supplied SequenceExtent, checking that all the items in the sequence are wrappers around DOM Nodes

getLength

public int getLength()
return the number of nodes in the list (DOM method)

item

public Node item(int index)
Return the n'th item in the list (DOM method)

Throws: java.lang.ClassCastException if the item is not a DOM Node