1 /*
2 * ginp - Java Web Application for Viewing Photo Collections
3 * Copyright (C) 2004 Douglas John Culnane <doug@culnane.net>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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