annotate gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultArtifactStatisticValue.java @ 1022:28a0628b11b0

Added license file and license header. gnv/trunk@1258 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 02 Nov 2010 17:15:08 +0000
parents d5d4dbda17cc
children
rev   line source
1022
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
1 /*
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
2 * Copyright (c) 2010 by Intevation GmbH
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
3 *
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
4 * This program is free software under the LGPL (>=v2.1)
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
5 * Read the file LGPL.txt coming with the software for details
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
7 */
28a0628b11b0 Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 958
diff changeset
8
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 package de.intevation.gnv.artifactdatabase.objects;
36
ad381cc47217 Format Code to max 80 Chars per Row
Tim Englich <tim.englich@intevation.de>
parents: 32
diff changeset
10
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11 /**
693
d4d1eb56d725 Added more JavaDocs
Tim Englich <tim.englich@intevation.de>
parents: 684
diff changeset
12 * The Defaultimplementation of <code>ArtifactStatisticValue</code>
684
57fa8019fbdc Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>'
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 683
diff changeset
13 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 165
diff changeset
14 *
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 */
36
ad381cc47217 Format Code to max 80 Chars per Row
Tim Englich <tim.englich@intevation.de>
parents: 32
diff changeset
16 public class DefaultArtifactStatisticValue implements ArtifactStatisticValue {
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17
165
183850730a90 Made all Interfaces Serailizable and add UID to all Objects issue71
Tim Englich <tim.englich@intevation.de>
parents: 36
diff changeset
18 /**
183850730a90 Made all Interfaces Serailizable and add UID to all Objects issue71
Tim Englich <tim.englich@intevation.de>
parents: 36
diff changeset
19 * The UID of this Class.
183850730a90 Made all Interfaces Serailizable and add UID to all Objects issue71
Tim Englich <tim.englich@intevation.de>
parents: 36
diff changeset
20 */
183850730a90 Made all Interfaces Serailizable and add UID to all Objects issue71
Tim Englich <tim.englich@intevation.de>
parents: 36
diff changeset
21 private static final long serialVersionUID = -8409111023127835398L;
183850730a90 Made all Interfaces Serailizable and add UID to all Objects issue71
Tim Englich <tim.englich@intevation.de>
parents: 36
diff changeset
22
958
d5d4dbda17cc Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 693
diff changeset
23 /**
d5d4dbda17cc Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 693
diff changeset
24 * The key of the new Value.
d5d4dbda17cc Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 693
diff changeset
25 */
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 private String key = null;
36
ad381cc47217 Format Code to max 80 Chars per Row
Tim Englich <tim.englich@intevation.de>
parents: 32
diff changeset
27
958
d5d4dbda17cc Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 693
diff changeset
28 /**
d5d4dbda17cc Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 693
diff changeset
29 * The value of the Object.
d5d4dbda17cc Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 693
diff changeset
30 */
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
31 private String value = null;
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
32
693
d4d1eb56d725 Added more JavaDocs
Tim Englich <tim.englich@intevation.de>
parents: 684
diff changeset
33 /**
d4d1eb56d725 Added more JavaDocs
Tim Englich <tim.englich@intevation.de>
parents: 684
diff changeset
34 * Constructor
d4d1eb56d725 Added more JavaDocs
Tim Englich <tim.englich@intevation.de>
parents: 684
diff changeset
35 * @param key the key of the new Value
d4d1eb56d725 Added more JavaDocs
Tim Englich <tim.englich@intevation.de>
parents: 684
diff changeset
36 * @param value the value of the Object.
d4d1eb56d725 Added more JavaDocs
Tim Englich <tim.englich@intevation.de>
parents: 684
diff changeset
37 */
32
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 public DefaultArtifactStatisticValue(String key, String value) {
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
39 super();
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
40 this.key = key;
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 this.value = value;
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42 }
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
44 public String getKey() {
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
45 return this.key;
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
46 }
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
47
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
48 public String getValue() {
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
49 return this.value;
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
50 }
0f4362d75e9e Adding StatisticsOutput to the GUI
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
51 }

http://dive4elements.wald.intevation.org