Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/ReferenceGaugeState.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 73da40528cf2 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
19 import org.dive4elements.artifacts.common.utils.XMLUtils; | 19 import org.dive4elements.artifacts.common.utils.XMLUtils; |
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.D4EArtifact; |
25 import org.dive4elements.river.utils.RiverUtils; | 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> |
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 = RiverUtils.getRiver((FLYSArtifact) artifact); | 43 River river = RiverUtils.getRiver((D4EArtifact) 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 |