1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import java.util.Vector ; 61 62 import org.w3c.dom.DOMStringList ; 63 64 71 public class DOMStringListImpl implements DOMStringList { 72 73 private Vector fStrings; 75 76 79 public DOMStringListImpl() { 80 fStrings = new Vector (); 81 } 82 83 86 public DOMStringListImpl(Vector params) { 87 fStrings = params; 88 } 89 90 93 public String item(int index) { 94 try { 95 return (String ) fStrings.elementAt(index); 96 } catch (ArrayIndexOutOfBoundsException e) { 97 return null; 98 } 99 } 100 101 104 public int getLength() { 105 return fStrings.size(); 106 } 107 108 111 public boolean contains(String param) { 112 return fStrings.contains(param) ; 113 } 114 115 121 public void add(String param) { 122 fStrings.add(param); 123 } 124 125 } 126 | Popular Tags |