teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5993: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5993: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.shared.model; ingo@29: ingo@29: ingo@29: /** ingo@29: * The simpliest default implementation of a River that just stores a name. ingo@29: * ingo@29: * @author Ingo Weinzierl ingo@29: */ ingo@29: public class DefaultRiver implements River { ingo@29: ingo@29: /** The name of the river.*/ ingo@29: protected String name; ingo@29: rrenkert@7758: /** The model uuid of the river */ rrenkert@7758: protected String modelUuid; rrenkert@7758: ingo@29: /** ingo@29: * The default constructor that creates empty river objects. ingo@29: */ ingo@29: public DefaultRiver() { ingo@29: } ingo@29: ingo@29: ingo@29: /** ingo@29: * This constructor should be used to create new rivers. ingo@29: * ingo@29: * @param name The name of the river. ingo@29: */ rrenkert@7758: public DefaultRiver(String name, String modelUuid) { ingo@29: this.name = name; rrenkert@7758: this.modelUuid = modelUuid; ingo@29: } ingo@29: ingo@29: ingo@29: /** ingo@29: * Sets the name of the river. ingo@29: * ingo@29: * @param name The name of the river. ingo@29: */ ingo@29: public void setName(String name) { ingo@29: this.name = name; ingo@29: } ingo@29: ingo@29: ingo@29: /** ingo@29: * Returns the name of the river. ingo@29: * ingo@29: * @return the name of the river. ingo@29: */ ingo@29: public String getName() { ingo@29: return name; ingo@29: } rrenkert@7758: rrenkert@7758: rrenkert@7758: rrenkert@7758: /** rrenkert@7758: * @return the modelUuid rrenkert@7758: */ rrenkert@7758: public String getModelUuid() { rrenkert@7758: return modelUuid; rrenkert@7758: } rrenkert@7758: rrenkert@7758: rrenkert@7758: rrenkert@7758: /** rrenkert@7758: * @param modelUuid the modelUuid to set rrenkert@7758: */ rrenkert@7758: public void setModelUuid(String modelUuid) { rrenkert@7758: this.modelUuid = modelUuid; rrenkert@7758: } ingo@29: } ingo@29: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :