1 16 17 package org.apache.xerces.dom; 18 19 import java.util.Vector ; 20 import org.w3c.dom.DOMImplementationList ; 21 import org.w3c.dom.DOMImplementation ; 22 23 31 public class DOMImplementationListImpl implements DOMImplementationList { 32 33 private Vector fImplementations; 35 36 39 public DOMImplementationListImpl() { 40 fImplementations = new Vector (); 41 } 42 43 46 public DOMImplementationListImpl(Vector params) { 47 fImplementations = params; 48 } 49 50 55 public DOMImplementation item(int index) { 56 try { 57 return (DOMImplementation ) fImplementations.elementAt(index); 58 } catch (ArrayIndexOutOfBoundsException e) { 59 return null; 60 } 61 } 62 63 68 public int getLength() { 69 return fImplementations.size(); 70 } 71 } 72 | Popular Tags |