Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultArtifactStatisticsSet.java @ 164:5570d9b3282f
Implemented a better GUI-Structure for displaying the Statisticdata. issue83
gnv/trunk@327 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 12 Nov 2009 10:22:30 +0000 |
parents | |
children | 183850730a90 |
comparison
equal
deleted
inserted
replaced
163:1fe52a0cbd1f | 164:5570d9b3282f |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifactdatabase.objects; | |
5 | |
6 import java.util.ArrayList; | |
7 import java.util.Collection; | |
8 | |
9 /** | |
10 * @author Tim Englich <tim.englich@intevation.de> | |
11 * | |
12 */ | |
13 public class DefaultArtifactStatisticsSet implements ArtifactStatisticsSet{ | |
14 | |
15 private String name = null; | |
16 | |
17 private Collection<ArtifactStatisticValue> statisticValues = | |
18 new ArrayList<ArtifactStatisticValue>(); | |
19 /** | |
20 * Constructor | |
21 */ | |
22 public DefaultArtifactStatisticsSet(String name) { | |
23 this.name = name; | |
24 } | |
25 | |
26 /** | |
27 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet#addStatisticValues(de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticValue) | |
28 */ | |
29 public void addStatisticValues(ArtifactStatisticValue value) { | |
30 this.statisticValues.add(value); | |
31 } | |
32 | |
33 /** | |
34 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet#getName() | |
35 */ | |
36 public String getName() { | |
37 return this.name; | |
38 } | |
39 | |
40 /** | |
41 * @see de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet#getStatisticValues() | |
42 */ | |
43 public Collection<ArtifactStatisticValue> getStatisticValues() { | |
44 return this.statisticValues; | |
45 } | |
46 | |
47 } |