public final class DOMNodeList
extends java.lang.Object
implements org.w3c.dom.NodeList
Constructor and Description |
---|
DOMNodeList(java.util.List<org.w3c.dom.Node> extent)
Construct an node list that wraps a supplied list of DOM Nodes.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength()
return the number of nodes in the list (DOM method)
|
org.w3c.dom.Node |
item(int index)
Return the n'th item in the list (DOM method)
|
public DOMNodeList(java.util.List<org.w3c.dom.Node> extent)
extent
- the list of nodes to be wrappedpublic int getLength()
getLength
in interface org.w3c.dom.NodeList
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
java.lang.ClassCastException
- if the item is not a DOM NodeCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.