1 22 package fr.dyade.aaa.admin.script; 23 24 import java.lang.*; 25 import java.io.*; 26 import java.util.*; 27 import fr.dyade.aaa.admin.cmd.*; 28 import fr.dyade.aaa.agent.conf.*; 29 30 39 public class StopScript implements Serializable { 40 41 private Vector commands = null; 42 43 48 public StopScript() { 49 commands = new Vector(); 50 } 51 52 public void add(StopAdminCmd cmd) { 53 commands.addElement(cmd); 54 } 55 56 public boolean remove(StopAdminCmd cmd) { 57 return commands.removeElement(cmd); 58 } 59 60 public boolean contains(StopAdminCmd cmd) { 61 return commands.contains(cmd); 62 } 63 64 public Enumeration elements() { 65 return commands.elements(); 66 } 67 68 public int size() { 69 return commands.size(); 70 } 71 72 public Object elementAt(int i) 73 throws ArrayIndexOutOfBoundsException { 74 return commands.elementAt(i); 75 } 76 77 public String toString() { 78 return commands.toString(); 79 } 80 81 } 82 | Popular Tags |