KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > ConfigParameter


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet;
6
7 import java.io.Serializable JavaDoc;
8
9 /**
10  * Allows to set configuration parameters that will be included in the element as attribute value pair.<br/>
11  * The following input<p/>
12  *
13  * &lt;configParam name="foo" value="bar"/&gt;<p/>
14  *
15  * will give <p/>
16  *
17  * &lt;foo&gt;bar&lt;/foo&gt;
18  *
19  * @author Ara Abrahamian (ara_e@email.com)
20  * @created Jan 21, 2002
21  * @version $Revision: 1.7 $
22  * @ant.element name="configParam"
23  */

24 public final class ConfigParameter implements Serializable JavaDoc
25 {
26     private String JavaDoc name = null;
27     private String JavaDoc value = null;
28
29     /**
30      * Gets the Name attribute of the ConfigParameter object
31      *
32      * @return The Name value
33      */

34     public String JavaDoc getName()
35     {
36         return name;
37     }
38
39     /**
40      * Gets the Value attribute of the ConfigParameter object
41      *
42      * @return The Value value
43      */

44     public String JavaDoc getValue()
45     {
46         return value;
47     }
48
49     /**
50      * The name of the parameter.
51      *
52      * @param name The new Name value
53      * @ant.required Yes
54      */

55     public void setName(String JavaDoc name)
56     {
57         this.name = name;
58     }
59
60     /**
61      * The value of the parameter.
62      *
63      * @param value The new Value value
64      * @ant.required Yes
65      */

66     public void setValue(String JavaDoc value)
67     {
68         this.value = value;
69     }
70 }
71
Popular Tags