comparison gwt-client/src/main/java/org/dive4elements/river/client/server/MapHelper.java @ 8203:238fc722f87a

sed 's/logger/log/g' src/**/*.java
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 13:19:22 +0200
parents ea9eef426962
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8202:e4606eae8ea5 8203:238fc722f87a
18 import org.dive4elements.river.client.shared.model.MapConfig; 18 import org.dive4elements.river.client.shared.model.MapConfig;
19 19
20 20
21 public class MapHelper { 21 public class MapHelper {
22 22
23 private static final Logger logger = Logger.getLogger(MapHelper.class); 23 private static final Logger log = Logger.getLogger(MapHelper.class);
24 24
25 25
26 public static final String XPATH_SRID = 26 public static final String XPATH_SRID =
27 "/art:floodmap/art:srid/text()"; 27 "/art:floodmap/art:srid/text()";
28 28
36 private MapHelper() { 36 private MapHelper() {
37 } 37 }
38 38
39 39
40 public static MapConfig parseConfig(Document raw) { 40 public static MapConfig parseConfig(Document raw) {
41 logger.debug("MapHelper.parseConfig"); 41 log.debug("MapHelper.parseConfig");
42 42
43 if (logger.isDebugEnabled()) { 43 if (log.isDebugEnabled()) {
44 logger.debug(XMLUtils.toString(raw)); 44 log.debug(XMLUtils.toString(raw));
45 } 45 }
46 46
47 MapConfig config = new MapConfig(); 47 MapConfig config = new MapConfig();
48 48
49 setSrid(config, raw); 49 setSrid(config, raw);
58 String srid = (String) XMLUtils.xpathString( 58 String srid = (String) XMLUtils.xpathString(
59 raw, 59 raw,
60 XPATH_SRID, 60 XPATH_SRID,
61 ArtifactNamespaceContext.INSTANCE); 61 ArtifactNamespaceContext.INSTANCE);
62 62
63 logger.debug("Found srid: '" + srid + "'"); 63 log.debug("Found srid: '" + srid + "'");
64 64
65 if (srid != null && srid.length() > 0) { 65 if (srid != null && srid.length() > 0) {
66 logger.debug("Set srid: '" + srid + "'"); 66 log.debug("Set srid: '" + srid + "'");
67 config.setSrid(srid); 67 config.setSrid(srid);
68 } 68 }
69 } 69 }
70 70
71 71
73 String maxExtent = (String) XMLUtils.xpathString( 73 String maxExtent = (String) XMLUtils.xpathString(
74 raw, 74 raw,
75 XPATH_MAX_EXTENT, 75 XPATH_MAX_EXTENT,
76 ArtifactNamespaceContext.INSTANCE); 76 ArtifactNamespaceContext.INSTANCE);
77 77
78 logger.debug("Found max extent: '" + maxExtent + "'"); 78 log.debug("Found max extent: '" + maxExtent + "'");
79 79
80 if (maxExtent != null && maxExtent.length() > 0) { 80 if (maxExtent != null && maxExtent.length() > 0) {
81 logger.debug("Set max extent: '" + maxExtent + "'"); 81 log.debug("Set max extent: '" + maxExtent + "'");
82 config.setMaxExtent(maxExtent); 82 config.setMaxExtent(maxExtent);
83 } 83 }
84 } 84 }
85 85
86 86
89 raw, 89 raw,
90 XPATH_INITIAL_EXTENT, 90 XPATH_INITIAL_EXTENT,
91 ArtifactNamespaceContext.INSTANCE); 91 ArtifactNamespaceContext.INSTANCE);
92 92
93 if (initialExtent != null && initialExtent.length() > 0) { 93 if (initialExtent != null && initialExtent.length() > 0) {
94 logger.debug("Set initial extent: '" + initialExtent + "'"); 94 log.debug("Set initial extent: '" + initialExtent + "'");
95 config.setInitialExtent(initialExtent); 95 config.setInitialExtent(initialExtent);
96 } 96 }
97 } 97 }
98 } 98 }
99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org