comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultInputData.java @ 335:e964a3d8f7bc

Some Refactoring work done. Moved Transition to State gnv-artifacts/trunk@401 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 08 Dec 2009 08:39:03 +0000
parents
children 9681ac6b6527
comparison
equal deleted inserted replaced
334:e37930705daa 335:e964a3d8f7bc
1 /**
2 *
3 */
4 package de.intevation.gnv.state;
5
6 /**
7 * @author Tim Englich <tim.englich@intevation.de>
8 *
9 */
10 public class DefaultInputData implements InputData {
11
12 /**
13 *
14 */
15 private static final long serialVersionUID = 4308041648698108066L;
16 private String name = null;
17 private String value = null;
18
19 /**
20 * Constructor
21 */
22 public DefaultInputData(String name, String value) {
23 this.name = name;
24 this.value = value;
25 }
26
27 /**
28 * @see de.intevation.gnv.state.InputData#getName()
29 */
30 public String getName() {
31 return this.name;
32 }
33
34 /**
35 * @see de.intevation.gnv.state.InputData#getValue()
36 */
37 public String getValue() {
38 return this.value;
39 }
40
41 /**
42 * @see java.lang.Object#toString()
43 */
44 @Override
45 public String toString() {
46 return this.name + "==> " + this.value;
47 }
48
49 /**
50 * @see de.intevation.gnv.state.InputData#concartValue(java.lang.String)
51 */
52 public void concartValue(String value) {
53 this.value = this.value + " , " + value;
54 }
55
56 }

http://dive4elements.wald.intevation.org