Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/RiverFactory.java Tue Feb 08 09:02:18 2011 +0000 @@ -0,0 +1,31 @@ +package de.intevation.flys.artifacts.model; + +import java.util.ArrayList; +import java.util.List; + + +/** + * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> + */ +public class RiverFactory { + + /** We don't need to instantiate concrete objects of this class. */ + private RiverFactory() { + } + + + /** + * Returns all rivers that were found in the backend. + * + * @return all rivers. + */ + public static List<River> getRivers() { + List<River> rivers = new ArrayList<River>(); + + rivers.add(new River("Mosel")); + rivers.add(new River("Saar")); + + return rivers; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :