1 23 package org.objectweb.clif.scenario.util.isac.plugin; 24 25 import org.apache.log4j.Category; 26 import org.objectweb.clif.scenario.util.isac.util.tree.NodeDescription; 27 28 import java.util.*; 29 35 public class TestDescription implements ActionDescription { 36 static Category cat = Category.getInstance(TestDescription.class.getName()); 37 private String name; 38 private String number; 39 private Vector params; 40 private Vector help; 41 private String guiKey; 42 43 50 public TestDescription(String n, String nb, Vector p, Vector h) { 51 cat.debug("-> constructor") ; 52 this.name = n; 53 this.number = nb; 54 this.params = p; 55 this.help = h; 56 this.guiKey = null; 57 } 58 59 62 public void createNodeDescription(NodeDescription desc) { 63 cat.debug("-> createNodeDescription") ; 64 desc.setActionName(this.name); 65 Hashtable paramsValues = new Hashtable(); 66 for (int i = 0; i < this.params.size(); i++) 67 paramsValues.put( 68 ((ParameterDescription) this.params.elementAt(i)).getName(), 69 ""); 70 desc.setParams(paramsValues); 71 } 72 73 76 public String getGUIKey() { 77 cat.debug("-> getGUIKey") ; 78 return guiKey; 79 } 80 81 84 public void setGUIKey(String key) { 85 cat.debug("-> setGUIKey") ; 86 this.guiKey = key ; 87 } 88 92 public Vector getHelp() { 93 cat.debug("-> getHelp") ; 94 return help; 95 } 96 97 101 public String getName() { 102 cat.debug("-> getName") ; 103 return name; 104 } 105 106 110 public String getNumber() { 111 cat.debug("-> getNumber") ; 112 return number; 113 } 114 115 119 public Vector getParams() { 120 cat.debug("-> getParams") ; 121 return params; 122 } 123 } 124 | Popular Tags |