comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultSingleValueDescribeData.java @ 1119:7c4f81f74c47

merged gnv-artifacts
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:00 +0200
parents f953c9a559d8
children
comparison
equal deleted inserted replaced
1027:fca4b5eb8d2f 1119:7c4f81f74c47
1 /*
2 * Copyright (c) 2010 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8
9 package de.intevation.gnv.state.describedata;
10
11 /**
12 * This is the default implementation of <code>SingleValueDescribeData</code>.
13 * This object is used to store a single value for a specific name.
14 *
15 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
16 */
17 public class DefaultSingleValueDescribeData implements SingleValueDescribeData {
18
19 private static final long serialVersionUID = 3580176842483316917L;
20
21 private String name = null;
22
23 private String value = null;
24
25 private String state = null;
26
27 /**
28 * Constructor to create new objects without a specific state.
29 *
30 * @param name The name of this object.
31 * @param value The value of this object.
32 */
33 public DefaultSingleValueDescribeData(String name, String value) {
34 this(name, value, null);
35 }
36
37 /**
38 * Constructor to create new objects with a specific state.
39 *
40 * @param name The name of this object.
41 * @param value The value of this object.
42 * @param state The state this object belongs to.
43 */
44 public DefaultSingleValueDescribeData(
45 String name,
46 String value,
47 String state
48 ) {
49 super();
50 this.name = name;
51 this.value = value;
52 this.state = state;
53 }
54
55 public String getName() {
56 return this.name;
57 }
58
59 public String getValue() {
60 return this.value;
61 }
62
63 public void setValue(String value) {
64 this.value = value;
65 }
66
67 public String getState() {
68 return this.state;
69 }
70 }
71 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org