1 5 package com.opensymphony.webwork.views.xslt; 6 7 import org.w3c.dom.Node ; 8 import org.w3c.dom.NodeList ; 9 10 import java.util.List ; 11 12 13 18 public class CollectionNodeList implements NodeList { 19 21 private List nodes; 22 23 25 public CollectionNodeList(List nodes) { 26 this.nodes = nodes; 27 } 28 29 31 public int getLength() { 32 return nodes.size(); 33 } 34 35 public Node item(int i) { 36 return (Node ) nodes.get(i); 37 } 38 } 39 | Popular Tags |