Package net.sf.saxon.dom
Class DOMNodeList
- java.lang.Object
-
- net.sf.saxon.dom.DOMNodeList
-
- All Implemented Interfaces:
org.w3c.dom.NodeList
public final class DOMNodeList extends java.lang.Object implements org.w3c.dom.NodeListThis class wraps a list of nodes as a DOM NodeList
-
-
Constructor Summary
Constructors Constructor Description DOMNodeList(java.util.List extent)Construct an node list that wraps a supplied SequenceExtent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 NodesintgetLength()return the number of nodes in the list (DOM method)org.w3c.dom.Nodeitem(int index)Return the n'th item in the list (DOM method)
-
-
-
Method Detail
-
checkAndMake
public static DOMNodeList checkAndMake(SequenceExtent extent) throws XPathException
Construct an node list that wraps a supplied SequenceExtent, checking that all the items in the sequence are wrappers around DOM Nodes- Throws:
XPathException
-
getLength
public int getLength()
return the number of nodes in the list (DOM method)- Specified by:
getLengthin interfaceorg.w3c.dom.NodeList
-
item
public org.w3c.dom.Node item(int index)
Return the n'th item in the list (DOM method)- Specified by:
itemin interfaceorg.w3c.dom.NodeList- Throws:
java.lang.ClassCastException- if the item is not a DOM Node
-
-