Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/Module.java @ 7755:4a85cc6add7f
Added list of rivers a module supports.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 27 Feb 2014 14:55:38 +0100 |
parents | af13ceeba52a |
children | c26fb37899ca |
comparison
equal
deleted
inserted
replaced
7754:9aa0bd26ce7f | 7755:4a85cc6add7f |
---|---|
6 * documentation coming with Dive4Elements River for details. | 6 * documentation coming with Dive4Elements River for details. |
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.artifacts.model; | 9 package org.dive4elements.river.artifacts.model; |
10 | 10 |
11 import java.util.List; | |
12 | |
11 /** | 13 /** |
12 * Represents a Module as is is loaded from the config | 14 * Represents a Module as is is loaded from the config |
13 */ | 15 */ |
14 public class Module { | 16 public class Module { |
15 | 17 |
16 private String name; | 18 private String name; |
19 List<String> rivers; | |
17 private boolean selected; | 20 private boolean selected; |
18 | 21 |
19 public Module(String name, boolean selected) { | 22 public Module(String name, boolean selected, List<String> rivers) { |
20 this.name = name; | 23 this.name = name; |
24 this.rivers = rivers; | |
21 this.selected = selected; | 25 this.selected = selected; |
22 } | 26 } |
23 | 27 |
24 public String getName() { | 28 public String getName() { |
25 return this.name; | 29 return this.name; |
26 } | 30 } |
27 | 31 |
28 public boolean isSelected() { | 32 public boolean isSelected() { |
29 return this.selected; | 33 return this.selected; |
30 } | 34 } |
35 | |
36 public List<String> getRivers() { | |
37 return this.rivers; | |
38 } | |
31 } | 39 } |
32 | 40 |
33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80: | 41 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80: |