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 ObjectDescription implements ActionDescription { 36 static Category cat = Category.getInstance(ObjectDescription.class.getName()); 37 private String name; 38 private String clazz; 39 private Vector params; 40 private Vector help; 41 private String guiKey; 42 43 50 public ObjectDescription(String n, String c, Vector p, Vector h) { 51 cat.debug("-> constructor") ; 52 cat.warn("SIZE OF THE PARAMS IS : " + p.size()) ; 53 this.name = n; 54 this.clazz = c; 55 this.params = p; 56 this.help = h; 57 this.guiKey = null; 58 } 59 60 63 public void createNodeDescription(NodeDescription desc) { 64 cat.debug("-> createNodeDescription") ; 65 desc.setActionName(this.name); 66 Hashtable paramsValues = new Hashtable(); 68 for (int i = 0; i < this.params.size(); i++) 69 paramsValues.put( 70 ((ParameterDescription) this.params.elementAt(i)).getName(), 71 ""); 72 desc.setParams(paramsValues); 73 } 74 75 78 public String getGUIKey() { 79 cat.debug("-> getGUIKey") ; 80 return guiKey ; 81 } 82 83 86 public void setGUIKey(String key) { 87 cat.debug("-> setGUIKey") ; 88 this.guiKey = key ; 89 } 90 94 public String getClazz() { 95 cat.debug("-> getClazz") ; 96 return clazz; 97 } 98 99 103 public Vector getHelp() { 104 cat.debug("-> getHelp") ; 105 return help; 106 } 107 108 112 public String getName() { 113 cat.debug("-> getName") ; 114 return name; 115 } 116 117 121 public Vector getParams() { 122 cat.debug("-> getParams") ; 123 cat.warn("-> getParams, SIZE IS : " + params.size()) ; 124 return params; 125 } 126 } 127 | Popular Tags |