PageRenderTime 82ms CodeModel.GetById 60ms app.highlight 3ms RepoModel.GetById 18ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/net/sourceforge/jarbundler/JavaProperty.java

#
Java | 64 lines | 23 code | 15 blank | 26 comment | 4 complexity | 03cb1110e059682b1bd25febb6a329a4 MD5 | raw file
 1package net.sourceforge.jarbundler;
 2
 3public class JavaProperty {
 4
 5	/** The JavaProperties' name and value */
 6
 7	private String name = null;
 8	private String 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 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}