KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > util > Param


1 package org.sapia.soto.util;
2
3
4 /**
5  * Models a name-value pair.
6  *
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class Param {
15   private String JavaDoc _name;
16   private Object JavaDoc _value;
17
18   /**
19    * Constructor for Param.
20    */

21   public Param() {
22     super();
23   }
24
25   /**
26    * Sets this instance's name.
27    *
28    * @param a name.
29    */

30   public void setName(String JavaDoc name) {
31     _name = name;
32   }
33
34   /**
35    * Returns this instance's name.
36    *
37    * @return a name.
38    */

39   public String JavaDoc getName() {
40     return _name;
41   }
42
43   /**
44    * Sets this instance's value.
45    *
46    * @param a value.
47    */

48   public void setValue(Object JavaDoc value) {
49     _value = value;
50   }
51
52   /**
53    * Returns this instance's value.
54    *
55    * @return value.
56    */

57   public Object JavaDoc getValue() {
58     return _value;
59   }
60 }
61
Popular Tags