01: package net.sourceforge.jarbundler;
02:
03: public class JavaProperty {
04:
05: /** The JavaProperties' name and value */
06:
07: private String name = null;
08: private String value = null;
09:
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 name) {
24: this .name = name;
25: }
26:
27: /**
28: * Get the JavaProperties' name
29: *
30: * @return the JavaProperties' name.
31: */
32: public String 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 value) {
48: this .value = value;
49: }
50:
51: /**
52: * Get the JavaProperties' value.
53: *
54: * @return the JavaProperties' value.
55: */
56: public String getValue() {
57:
58: if (this.value == null)
59: return null;
60:
61: return this.value.trim();
62: }
63:
64: }
|