ingo@1022: /*
ingo@1022: * Copyright (c) 2010 by Intevation GmbH
ingo@1022: *
ingo@1022: * This program is free software under the LGPL (>=v2.1)
ingo@1022: * Read the file LGPL.txt coming with the software for details
ingo@1022: * or visit http://www.gnu.org/licenses/ if it does not exist.
ingo@1022: */
ingo@1022:
tim@164: package de.intevation.gnv.artifactdatabase.objects;
tim@164:
tim@164: import java.util.ArrayList;
tim@164: import java.util.Collection;
tim@164:
tim@164: /**
ingo@690: * The default implementation of ArtifactStatisticsSet
.
sascha@699: *
sascha@684: * @author Tim Englich
tim@164: *
tim@164: */
tim@164: public class DefaultArtifactStatisticsSet implements ArtifactStatisticsSet{
tim@164:
tim@165: /**
tim@165: * The UID of this Class.
tim@165: */
tim@165: private static final long serialVersionUID = 6738878381515708602L;
tim@165:
tim@958: /**
tim@958: * The name of the StatisticsSet.
tim@958: */
tim@164: private String name = null;
sascha@681:
tim@958: /**
tim@958: * The statisticsvalues which belong to this set.
tim@958: */
sascha@681: private Collection statisticValues =
tim@164: new ArrayList();
tim@164: /**
tim@164: * Constructor
tim@958: * @param name the name of the StatisticsSet
tim@164: */
tim@164: public DefaultArtifactStatisticsSet(String name) {
tim@164: this.name = name;
tim@164: }
tim@164:
ingo@690:
tim@164: public void addStatisticValues(ArtifactStatisticValue value) {
tim@164: this.statisticValues.add(value);
tim@164: }
tim@164:
ingo@690:
tim@164: public String getName() {
tim@164: return this.name;
tim@164: }
tim@164:
ingo@690:
tim@164: public Collection getStatisticValues() {
tim@164: return this.statisticValues;
tim@164: }
tim@164: }
sascha@700: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :