Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.saxon.dom
Class DOMNodeList

    java.lang.Object
      net.sf.saxon.dom.DOMNodeList

All Implemented Interfaces:
  NodeList

    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
`int` | `getLength()` return the number of nodes in the list (DOM method)
`Node` | `item(int index)` Return the n'th item in the list (DOM method)

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DOMNodeList

    public DOMNodeList(List<Node> extent)

  Construct an node list that wraps a supplied list of DOM Nodes.

  Parameters:
    `extent` - the list of nodes to be wrapped

Method Detail

### getLength

    public int getLength()

  return the number of nodes in the list (DOM method)

  Specified by:
    `getLength` in interface `NodeList`

### item

    public Node item(int index)

  Return the n'th item in the list (DOM method)

  Specified by:
    `item` in interface `NodeList`
  Throws:
    `ClassCastException` - if the item is not a DOM Node

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.