1 16 17 package com.sun.org.apache.xerces.internal.dom; 18 19 import java.util.Vector ; 20 import org.w3c.dom.DOMImplementationList ; 21 import org.w3c.dom.DOMImplementation ; 22 23 29 public class DOMImplementationListImpl implements DOMImplementationList { 30 31 private Vector fImplementations; 33 34 37 public DOMImplementationListImpl() { 38 fImplementations = new Vector (); 39 } 40 41 44 public DOMImplementationListImpl(Vector params) { 45 fImplementations = params; 46 } 47 48 53 public DOMImplementation item(int index) { 54 try { 55 return (DOMImplementation ) fImplementations.elementAt(index); 56 } catch (ArrayIndexOutOfBoundsException e) { 57 return null; 58 } 59 } 60 61 66 public int getLength() { 67 return fImplementations.size(); 68 } 69 } 70 | Popular Tags |