1 17 package org.apache.excalibur.xml.xpath; 18 19 import java.util.List ; 20 21 import org.w3c.dom.Node ; 22 import org.w3c.dom.NodeList ; 23 24 30 final class SimpleNodeList 31 implements NodeList  32 { 33 private final List m_list; 34 35 SimpleNodeList( final List list ) 36 { 37 m_list = list; 38 } 39 40 public Node item( final int index ) 41 { 42 return (Node )m_list.get( index ); 43 } 44 45 public int getLength() 46 { 47 return m_list.size(); 48 } 49 } 50 | Popular Tags |