comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/CalculationSelectUinfo.java @ 9481:787fc085459b

TSV introduced; uinfo.inundationWMS-Config
author gernotbelger
date Wed, 12 Sep 2018 10:55:09 +0200
parents f692f5a0536a
children 63bbd5e45839
comparison
equal deleted inserted replaced
9480:7228bd10a8cc 9481:787fc085459b
17 import org.dive4elements.artifacts.CallContext; 17 import org.dive4elements.artifacts.CallContext;
18 import org.dive4elements.artifacts.CallMeta; 18 import org.dive4elements.artifacts.CallMeta;
19 import org.dive4elements.artifacts.common.utils.XMLUtils; 19 import org.dive4elements.artifacts.common.utils.XMLUtils;
20 import org.dive4elements.river.artifacts.resources.Resources; 20 import org.dive4elements.river.artifacts.resources.Resources;
21 import org.dive4elements.river.artifacts.states.DefaultState; 21 import org.dive4elements.river.artifacts.states.DefaultState;
22 import org.dive4elements.river.artifacts.uinfo.inundationduration.UedauernPropertiesHelper; 22 import org.dive4elements.river.artifacts.uinfo.inundationduration.UedauernConfiguration;
23 import org.w3c.dom.Element; 23 import org.w3c.dom.Element;
24 24
25 /** 25 /**
26 * @author Gernot Belger 26 * @author Gernot Belger
27 */ 27 */
58 final UINFOArtifact uinfo = (UINFOArtifact) artifact; 58 final UINFOArtifact uinfo = (UINFOArtifact) artifact;
59 final String calcmode = uinfo.getCalculationMode().toString(); // "toString()" is important 59 final String calcmode = uinfo.getCalculationMode().toString(); // "toString()" is important
60 if (calcmode.equals("uinfo_inundation_duration")) { 60 if (calcmode.equals("uinfo_inundation_duration")) {
61 61
62 final String river = uinfo.getRiver(); 62 final String river = uinfo.getRiver();
63 if (!UedauernPropertiesHelper.fileExistsForRiver(river)) { 63 if (!UedauernConfiguration.filesExistsForRiver(river))
64 throw new IllegalArgumentException("error_no_data_for_river"); 64 throw new IllegalArgumentException("error_no_data_for_river");
65 }
66 } 65 }
67
68 return true; 66 return true;
69 } 67 }
70 } 68 }

http://dive4elements.wald.intevation.org