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 SampleDescription implements ActionDescription { 36 static Category cat = Category.getInstance(SampleDescription.class 37 .getName()); 38 private String name; 39 private String clazz; 40 private String method; 41 private Vector params; 42 private Vector help; 43 private String guiKey; 44 45 59 public SampleDescription(String n, String c, String m, Vector p, Vector h) { 60 cat.debug("-> constructor"); 61 this.name = n; 62 this.clazz = c; 63 this.method = m; 64 this.params = p; 65 this.help = h; 66 this.guiKey = null; 67 } 68 69 72 public void createNodeDescription(NodeDescription desc) { 73 cat.debug("-> createNodeDescription"); 74 desc.setActionName(this.name); 75 Hashtable paramsValues = new Hashtable(); 78 for (int i = 0; i < this.params.size(); i++) { 79 paramsValues.put(((ParameterDescription) this.params.elementAt(i)) 80 .getName(), ""); 81 } 82 desc.setParams(paramsValues); 83 } 84 85 88 public String getGUIKey() { 89 cat.debug("-> getGUIKey"); 90 return this.guiKey; 91 } 92 93 96 public void setGUIKey(String key) { 97 cat.debug("-> setGUIKey"); 98 this.guiKey = key; 99 } 100 101 106 public String getClazz() { 107 cat.debug("-> getClazz"); 108 return clazz; 109 } 110 111 116 public Vector getHelp() { 117 cat.debug("-> getHelp"); 118 return help; 119 } 120 121 126 public String getMethod() { 127 cat.debug("-> getMethod"); 128 return method; 129 } 130 131 136 public String getName() { 137 cat.debug("-> getName"); 138 return name; 139 } 140 141 146 public Vector getParams() { 147 cat.debug("-> getParams"); 148 return params; 149 } 150 } | Popular Tags |