java: isac.util.tactics .. end renamed, formatted, inst_var_, import cleaned
2 * Created on Oct 9, 2003
4 * To change the template for this generated file go to
5 * Window>Preferences>Java>Code Generation>Code and Comments
7 package isac.util.tactics;
9 import java.util.Iterator;
10 import java.util.Vector;
15 * To change the template for this generated type comment go to
16 * Window>Preferences>Java>Code Generation>Code and Comments
18 public class StringListTactic extends Tactic {
20 private Vector string_list_ = new Vector();
22 public StringListTactic() {
25 public StringListTactic(String name) {
29 public StringListTactic(String name, Vector keyList) {
31 this.string_list_ = keyList;
34 public void addKey(String key) {
35 this.string_list_.add(key);
38 public String toSMLString() {
39 StringBuffer sb = new StringBuffer();
41 if (string_list_.size() > 0) {
43 Iterator it = string_list_.iterator();
44 while (it.hasNext()) {
45 sb.append("\"" + it.next() + "\",");
47 sb.deleteCharAt(sb.length() - 1); // remove last ","