ingo@29: package de.intevation.flys.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: 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: */ ingo@29: public DefaultRiver(String name) { ingo@29: this.name = name; 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: } ingo@29: } ingo@29: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :