1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sf.ginp;
20
21 /**
22 * Class to represent a Command parameter.
23 *
24 * @author Doug Culnane
25 * @version $Revision: 264 $
26 */
27 public class CommandParameter {
28
29 String name = "";
30 String value = "";
31 Object object;
32
33
34 /**
35 * Constructor for the CommandParameter object requiring a name and value.
36 *
37 * @param cmdName Name to identify the Command parameter.
38 * @param cmdValue Value of the conmand parameter.
39 */
40 public CommandParameter(String cmdName, String cmdValue) {
41 name = cmdName;
42 value = cmdValue;
43 }
44
45
46 /**
47 * Gets the name attribute of the CommandParameter
48 *
49 * @return The Command Parameter's name
50 */
51 public String getName() {
52 return name;
53 }
54
55
56 /**
57 * Gets the value attribute of the CommandParameter
58 *
59 * @return he Command Parameter's value
60 */
61 public String getValue() {
62 return value;
63 }
64
65 public void setObject(Object object) {
66 this.object = object;
67 }
68
69 public Object getObject(){
70 return object;
71 }
72 }
73