KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > invicta > project > PropertyImpl


1 package net.sf.invicta.project;
2
3 import net.sf.invicta.api.Property;
4  
5 /**
6  * An implementation of the Property interface that represents a property
7  * specified for a project (project properties) or a property specified
8  * for a component (component properties).
9  *
10  */

11 public class PropertyImpl implements Property {
12     protected String JavaDoc name;
13     protected String JavaDoc value;
14     protected String JavaDoc description;
15
16     /**
17      *
18      */

19     public PropertyImpl() {
20             
21     }
22
23     /**
24      *
25      * @param name
26      * @param value
27      * @param description
28      */

29     public PropertyImpl(String JavaDoc name, String JavaDoc value, String JavaDoc description) {
30         
31         this.name = name;
32         this.value = value;
33         this.description = description;
34     }
35     
36     /**
37      * Returns the name of the property.
38      * @return String. Property name.
39      */

40     public String JavaDoc getName() {
41         return name;
42     }
43
44     /**
45      * Returns the value of the property.
46      * @return String. Property value.
47      */

48     public String JavaDoc getValue() {
49         return value;
50     }
51
52     /**
53      * Sets the name.
54      * @param name The name to set
55      */

56     public void setName(String JavaDoc name) {
57         this.name = name;
58     }
59
60     /**
61      * Sets the value.
62      * @param value The value to set
63      */

64     public void setValue(String JavaDoc value) {
65         this.value = value;
66     }
67
68
69     /**
70      * Returns the description of the property.
71      * Note: description is optional and may be null.
72      * @return String. Property description.
73      */

74     public String JavaDoc getDescription() {
75         return description;
76     }
77
78     /**
79      * @param string
80      */

81     public void setDescription(String JavaDoc description) {
82         this.description = description;
83     }
84 }
85
Popular Tags