Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/RiverFactory.java @ 114:394b9580ceae
Added mockup classes for working with rivers.
flys-artifacts/trunk@1303 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 08 Feb 2011 09:02:18 +0000 |
parents | |
children | 8be4a837f20a |
comparison
equal
deleted
inserted
replaced
113:f077df8ad54c | 114:394b9580ceae |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.List; | |
5 | |
6 | |
7 /** | |
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
9 */ | |
10 public class RiverFactory { | |
11 | |
12 /** We don't need to instantiate concrete objects of this class. */ | |
13 private RiverFactory() { | |
14 } | |
15 | |
16 | |
17 /** | |
18 * Returns all rivers that were found in the backend. | |
19 * | |
20 * @return all rivers. | |
21 */ | |
22 public static List<River> getRivers() { | |
23 List<River> rivers = new ArrayList<River>(); | |
24 | |
25 rivers.add(new River("Mosel")); | |
26 rivers.add(new River("Saar")); | |
27 | |
28 return rivers; | |
29 } | |
30 } | |
31 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |