Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/CalculationSelect.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 | 5b20cf9926b7 |
children | 6c1ebf2220f5 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
26 /** | 26 /** |
27 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 27 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
28 */ | 28 */ |
29 public class CalculationSelect extends DefaultState { | 29 public class CalculationSelect extends DefaultState { |
30 | 30 |
31 /** The logger that is used in this class. */ | 31 /** The log that is used in this class. */ |
32 private static Logger logger = Logger.getLogger(CalculationSelect.class); | 32 private static Logger log = Logger.getLogger(CalculationSelect.class); |
33 | 33 |
34 /** Name of data item. */ | 34 /** Name of data item. */ |
35 public static final String FIELD_MODE = "calculation_mode"; | 35 public static final String FIELD_MODE = "calculation_mode"; |
36 | 36 |
37 /** Constant value for the reference line calculation. */ | 37 /** Constant value for the reference line calculation. */ |
125 /** Validate the chosen calculation. */ | 125 /** Validate the chosen calculation. */ |
126 @Override | 126 @Override |
127 public boolean validate(Artifact artifact) | 127 public boolean validate(Artifact artifact) |
128 throws IllegalArgumentException | 128 throws IllegalArgumentException |
129 { | 129 { |
130 logger.debug("CalculationSelect.validate"); | 130 log.debug("CalculationSelect.validate"); |
131 D4EArtifact flys = (D4EArtifact) artifact; | 131 D4EArtifact flys = (D4EArtifact) artifact; |
132 | 132 |
133 StateData data = getData(flys, FIELD_MODE); | 133 StateData data = getData(flys, FIELD_MODE); |
134 String calc = (data != null) ? (String) data.getValue() : null; | 134 String calc = (data != null) ? (String) data.getValue() : null; |
135 | 135 |