teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.shared.model; ingo@12: ingo@12: ingo@12: /** ingo@12: * The default implementation of a {@link DataItem}. This class just implements ingo@12: * constructors to create instances and the necessary methods of the interface. ingo@12: * ingo@12: * @author Ingo Weinzierl ingo@12: */ ingo@12: public class DefaultDataItem implements DataItem { ingo@12: felix@855: /** The label. */ ingo@12: protected String label; ingo@12: felix@855: /** The description. */ ingo@12: protected String description; ingo@12: felix@855: /** The value. */ ingo@12: protected String value; ingo@12: ingo@12: ingo@12: public DefaultDataItem() { ingo@12: } ingo@12: ingo@12: ingo@12: /** ingo@12: * The default constructor to create new instances. ingo@12: * ingo@12: * @param label The label. ingo@12: * @param description The description. ingo@12: * @param value The value. ingo@12: */ ingo@12: public DefaultDataItem(String label, String description, String value) { ingo@12: this.label = label; ingo@12: this.description = description; ingo@12: this.value = value; ingo@12: } ingo@12: ingo@12: ingo@12: public String getLabel() { ingo@12: return label; ingo@12: } ingo@12: ingo@12: ingo@12: public String getDescription() { ingo@12: return description; ingo@12: } ingo@12: ingo@12: ingo@12: public String getStringValue() { ingo@12: return value; ingo@12: } ingo@12: } ingo@12: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :