comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultRiver.java @ 7758:cc214753adca

Added model_uuid to river model.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 27 Feb 2014 15:10:04 +0100
parents ea9eef426962
children
comparison
equal deleted inserted replaced
7757:f4e4ee473472 7758:cc214753adca
17 public class DefaultRiver implements River { 17 public class DefaultRiver implements River {
18 18
19 /** The name of the river.*/ 19 /** The name of the river.*/
20 protected String name; 20 protected String name;
21 21
22 /** The model uuid of the river */
23 protected String modelUuid;
24
22 /** 25 /**
23 * The default constructor that creates empty river objects. 26 * The default constructor that creates empty river objects.
24 */ 27 */
25 public DefaultRiver() { 28 public DefaultRiver() {
26 } 29 }
29 /** 32 /**
30 * This constructor should be used to create new rivers. 33 * This constructor should be used to create new rivers.
31 * 34 *
32 * @param name The name of the river. 35 * @param name The name of the river.
33 */ 36 */
34 public DefaultRiver(String name) { 37 public DefaultRiver(String name, String modelUuid) {
35 this.name = name; 38 this.name = name;
39 this.modelUuid = modelUuid;
36 } 40 }
37 41
38 42
39 /** 43 /**
40 * Sets the name of the river. 44 * Sets the name of the river.
52 * @return the name of the river. 56 * @return the name of the river.
53 */ 57 */
54 public String getName() { 58 public String getName() {
55 return name; 59 return name;
56 } 60 }
61
62
63
64 /**
65 * @return the modelUuid
66 */
67 public String getModelUuid() {
68 return modelUuid;
69 }
70
71
72
73 /**
74 * @param modelUuid the modelUuid to set
75 */
76 public void setModelUuid(String modelUuid) {
77 this.modelUuid = modelUuid;
78 }
57 } 79 }
58 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 80 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org