comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/DischargeState.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
19 19
20 import org.dive4elements.river.model.DischargeZone; 20 import org.dive4elements.river.model.DischargeZone;
21 import org.dive4elements.river.model.River; 21 import org.dive4elements.river.model.River;
22 22
23 import org.dive4elements.river.artifacts.FLYSArtifact; 23 import org.dive4elements.river.artifacts.FLYSArtifact;
24 import org.dive4elements.river.utils.FLYSUtils; 24 import org.dive4elements.river.utils.RiverUtils;
25 25
26 26
27 public class DischargeState extends MultiIntArrayState { 27 public class DischargeState extends MultiIntArrayState {
28 28
29 public static final String MAIN_CHANNEL = "main_channel"; 29 public static final String MAIN_CHANNEL = "main_channel";
139 } 139 }
140 140
141 141
142 /** 142 /**
143 * Returns all discharge zones for a given river. The river information is 143 * Returns all discharge zones for a given river. The river information is
144 * extracted from <i>artifact</i> using FLYSUtils.getRiver(). 144 * extracted from <i>artifact</i> using RiverUtils.getRiver().
145 * 145 *
146 * @param artifact Needs to be a FLYSArtifact that stores a rivername. 146 * @param artifact Needs to be a FLYSArtifact that stores a rivername.
147 * 147 *
148 * @return a list of DischargeZones. 148 * @return a list of DischargeZones.
149 * 149 *
151 * <i>artifact</i>. 151 * <i>artifact</i>.
152 */ 152 */
153 protected List<DischargeZone> getDischargeZones(Artifact artifact) 153 protected List<DischargeZone> getDischargeZones(Artifact artifact)
154 throws IllegalArgumentException 154 throws IllegalArgumentException
155 { 155 {
156 River river = FLYSUtils.getRiver((FLYSArtifact) artifact); 156 River river = RiverUtils.getRiver((FLYSArtifact) artifact);
157 157
158 if (river == null) { 158 if (river == null) {
159 throw new IllegalArgumentException("No river found"); 159 throw new IllegalArgumentException("No river found");
160 } 160 }
161 161

http://dive4elements.wald.intevation.org