Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultKeyValueDescribeData.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | a6a33ef35809 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.state.describedata; | |
5 | |
6 /** | |
7 * @author Tim Englich <tim.englich@intevation.de> | |
8 * | |
9 */ | |
10 public class DefaultKeyValueDescribeData implements KeyValueDescibeData { | |
11 | |
12 /** | |
13 * | |
14 */ | |
15 private static final long serialVersionUID = -924469415242703108L; | |
16 | |
17 private String key; | |
18 | |
19 private String value = null; | |
20 | |
21 private String state; | |
22 | |
23 private boolean selected = false; | |
24 | |
25 public DefaultKeyValueDescribeData(String key, String value) { | |
26 this(key, value, null); | |
27 } | |
28 | |
29 public DefaultKeyValueDescribeData(String key, String value, String state) { | |
30 super(); | |
31 this.key = key; | |
32 this.value = value; | |
33 this.state = state; | |
34 } | |
35 | |
36 /** | |
37 * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#getKey() | |
38 */ | |
39 public String getKey() { | |
40 return this.key; | |
41 } | |
42 | |
43 /** | |
44 * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#getValue() | |
45 */ | |
46 public String getValue() { | |
47 return this.value; | |
48 } | |
49 | |
50 /** | |
51 * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#isSelected() | |
52 */ | |
53 public boolean isSelected() { | |
54 return this.selected; | |
55 } | |
56 | |
57 /** | |
58 * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#setSelected(boolean) | |
59 */ | |
60 public void setSelected(boolean selected) { | |
61 this.selected = selected; | |
62 } | |
63 | |
64 | |
65 public String getState() { | |
66 return this.state; | |
67 } | |
68 | |
69 } |