comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultRiver.java @ 29:44c63e7fd0d0

Added a service to list the supported rivers of the artifact server. The FLYS instance serves a method that retrieves this list. flys-client/trunk@1431 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Mar 2011 08:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
28:dfdb927b137d 29:44c63e7fd0d0
1 package de.intevation.flys.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 :

http://dive4elements.wald.intevation.org