Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultRiver.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultRiver.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.shared.model; | |
2 | |
3 | |
4 /** | |
5 * The simpliest default implementation of a River that just stores a name. | |
6 * | |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
8 */ | |
9 public class DefaultRiver implements River { | |
10 | |
11 /** The name of the river.*/ | |
12 protected String name; | |
13 | |
14 /** | |
15 * The default constructor that creates empty river objects. | |
16 */ | |
17 public DefaultRiver() { | |
18 } | |
19 | |
20 | |
21 /** | |
22 * This constructor should be used to create new rivers. | |
23 * | |
24 * @param name The name of the river. | |
25 */ | |
26 public DefaultRiver(String name) { | |
27 this.name = name; | |
28 } | |
29 | |
30 | |
31 /** | |
32 * Sets the name of the river. | |
33 * | |
34 * @param name The name of the river. | |
35 */ | |
36 public void setName(String name) { | |
37 this.name = name; | |
38 } | |
39 | |
40 | |
41 /** | |
42 * Returns the name of the river. | |
43 * | |
44 * @return the name of the river. | |
45 */ | |
46 public String getName() { | |
47 return name; | |
48 } | |
49 } | |
50 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |