comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.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 2c21fd1ade39
children 0bf888783683
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
25 25
26 /** Service delivering info about sediment loads. */ 26 /** Service delivering info about sediment loads. */
27 public class SedimentLoadInfoService 27 public class SedimentLoadInfoService
28 extends D4EService 28 extends D4EService
29 { 29 {
30 /** The logger used in this service. */ 30 /** The log used in this service. */
31 private static Logger logger = Logger.getLogger(SedimentLoadInfoService.class); 31 private static Logger log = Logger.getLogger(SedimentLoadInfoService.class);
32 32
33 public static final String RIVER_XPATH = "/art:river/text()"; 33 public static final String RIVER_XPATH = "/art:river/text()";
34 public static final String TYPE_XPATH = "/art:river/art:type/text()"; 34 public static final String TYPE_XPATH = "/art:river/art:type/text()";
35 public static final String FROM_XPATH = "/art:river/art:location/art:from/text()"; 35 public static final String FROM_XPATH = "/art:river/art:location/art:from/text()";
36 public static final String TO_XPATH = "/art:river/art:location/art:to/text()"; 36 public static final String TO_XPATH = "/art:river/art:location/art:to/text()";
64 try { 64 try {
65 fromD = Double.parseDouble(from); 65 fromD = Double.parseDouble(from);
66 toD = Double.parseDouble(to); 66 toD = Double.parseDouble(to);
67 } 67 }
68 catch (NumberFormatException nfe) { 68 catch (NumberFormatException nfe) {
69 logger.warn("Invalid locations. Cannot return sediment loads."); 69 log.warn("Invalid locations. Cannot return sediment loads.");
70 return XMLUtils.newDocument(); 70 return XMLUtils.newDocument();
71 } 71 }
72 72
73 /* This call initializes the sedimentloaddata for the river. Might be 73 /* This call initializes the sedimentloaddata for the river. Might be
74 * expensive but has to be done anyway for the calculation later on. */ 74 * expensive but has to be done anyway for the calculation later on. */

http://dive4elements.wald.intevation.org