Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WQFixing.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | 1a169e10c0f3 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
17 * State to input W/Q data for fixings | 17 * State to input W/Q data for fixings |
18 * @author <a href="mailto:aheinecke@intevation.de">Andre Heinecke</a> | 18 * @author <a href="mailto:aheinecke@intevation.de">Andre Heinecke</a> |
19 */ | 19 */ |
20 public class WQFixing extends WQAdapted { | 20 public class WQFixing extends WQAdapted { |
21 | 21 |
22 /** The logger used in this state.*/ | 22 /** The log used in this state.*/ |
23 private static Logger logger = Logger.getLogger(WQFixing.class); | 23 private static Logger log = Logger.getLogger(WQFixing.class); |
24 | 24 |
25 /** Simple sanity check if values are positive numbers **/ | 25 /** Simple sanity check if values are positive numbers **/ |
26 @Override | 26 @Override |
27 public boolean validate(Artifact artifact) | 27 public boolean validate(Artifact artifact) |
28 throws IllegalArgumentException | 28 throws IllegalArgumentException |
29 { | 29 { |
30 logger.debug("WQFixing.validate"); | 30 log.debug("WQFixing.validate"); |
31 | 31 |
32 RangeWithValues[] rwvs = extractInput(getData((D4EArtifact) artifact, "wq_values")); | 32 RangeWithValues[] rwvs = extractInput(getData((D4EArtifact) artifact, "wq_values")); |
33 | 33 |
34 if (rwvs == null) { | 34 if (rwvs == null) { |
35 throw new IllegalArgumentException("error_missing_wq_data"); | 35 throw new IllegalArgumentException("error_missing_wq_data"); |