Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/ReferenceGaugeState.java @ 5865:73da40528cf2
River artifacts: Renamed FLYSUtils to RiverUtils.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:09:31 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5864:f2e46a668fe6 | 5865:73da40528cf2 |
---|---|
20 | 20 |
21 import org.dive4elements.river.model.Gauge; | 21 import org.dive4elements.river.model.Gauge; |
22 import org.dive4elements.river.model.River; | 22 import org.dive4elements.river.model.River; |
23 | 23 |
24 import org.dive4elements.river.artifacts.FLYSArtifact; | 24 import org.dive4elements.river.artifacts.FLYSArtifact; |
25 import org.dive4elements.river.utils.FLYSUtils; | 25 import org.dive4elements.river.utils.RiverUtils; |
26 | 26 |
27 | 27 |
28 /** | 28 /** |
29 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 29 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
30 */ | 30 */ |
38 XMLUtils.ElementCreator cr, | 38 XMLUtils.ElementCreator cr, |
39 Artifact artifact, | 39 Artifact artifact, |
40 String name, | 40 String name, |
41 CallContext context) | 41 CallContext context) |
42 { | 42 { |
43 River river = FLYSUtils.getRiver((FLYSArtifact) artifact); | 43 River river = RiverUtils.getRiver((FLYSArtifact) artifact); |
44 List<Gauge> gauges = river.getGauges(); | 44 List<Gauge> gauges = river.getGauges(); |
45 Collections.sort(gauges); | 45 Collections.sort(gauges); |
46 | 46 |
47 int num = gauges != null ? gauges.size() : 0; | 47 int num = gauges != null ? gauges.size() : 0; |
48 | 48 |