KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > jarbundler > JavaProperty


1 package net.sourceforge.jarbundler;
2
3 public class JavaProperty {
4
5     /** The JavaProperties' name and value */
6
7     private String JavaDoc name = null;
8     private String JavaDoc value = null;
9
10     /**
11      * Construct an empty JavaProperty
12      */

13
14     public JavaProperty() {
15     }
16
17     /**
18      * Set the JavaProperties's name; required
19      *
20      * @param name
21      * the JavaProperties' name
22      */

23     public void setName(String JavaDoc name) {
24         this.name = name;
25     }
26
27     /**
28      * Get the JavaProperties' name
29      *
30      * @return the JavaProperties' name.
31      */

32     public String JavaDoc getName() {
33
34         if (this.name == null)
35             return null;
36
37         return this.name.trim();
38     }
39
40     /**
41      * Set the JavaProperties' value; required
42      *
43      * @param value
44      * the JavaProperties' value
45      */

46
47     public void setValue(String JavaDoc value) {
48         this.value = value;
49     }
50
51     /**
52      * Get the JavaProperties' value.
53      *
54      * @return the JavaProperties' value.
55      */

56     public String JavaDoc getValue() {
57
58         if (this.value == null)
59             return null;
60
61         return this.value.trim();
62     }
63
64 }
65
Popular Tags