1 16 17 package org.jboss.axis.message; 18 19 import org.w3c.dom.NodeList ; 20 21 import java.util.ArrayList ; 22 import java.util.List ; 23 24 29 class SOAPNodeList implements NodeList 30 { 31 32 private List nodeList = new ArrayList (); 33 34 37 SOAPNodeList() 38 { 39 } 40 41 SOAPNodeList(List nodes) 42 { 43 nodeList = new ArrayList (nodes); 44 } 45 46 void addNode(javax.xml.soap.Node node) 47 { 48 nodeList.add(node); 49 } 50 51 53 public org.w3c.dom.Node item(int index) 54 { 55 56 if (-1 < index && index < nodeList.size()) 57 return (javax.xml.soap.Node )nodeList.get(index); 58 else 59 return null; 60 } 61 62 public int getLength() 63 { 64 return nodeList.size(); 65 } 66 } 67 | Popular Tags |