Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/HWSDatacageState.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 | af13ceeba52a |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
19 | 19 |
20 public class HWSDatacageState | 20 public class HWSDatacageState |
21 extends DefaultState | 21 extends DefaultState |
22 { | 22 { |
23 | 23 |
24 private static final Logger logger = Logger.getLogger(HWSDatacageState.class); | 24 private static final Logger log = Logger.getLogger(HWSDatacageState.class); |
25 | 25 |
26 @Override | 26 @Override |
27 protected String getUIProvider() { | 27 protected String getUIProvider() { |
28 return "hws_datacage_panel"; | 28 return "hws_datacage_panel"; |
29 } | 29 } |
51 return dataElement; | 51 return dataElement; |
52 } | 52 } |
53 | 53 |
54 | 54 |
55 public static String getLabel(CallContext cc, String value) { | 55 public static String getLabel(CallContext cc, String value) { |
56 logger.debug("Create label for value: " + value); | 56 log.debug("Create label for value: " + value); |
57 | 57 |
58 return value; | 58 return value; |
59 } | 59 } |
60 | 60 |
61 | 61 |
63 public boolean validate(Artifact artifact) | 63 public boolean validate(Artifact artifact) |
64 throws IllegalArgumentException | 64 throws IllegalArgumentException |
65 { | 65 { |
66 D4EArtifact flys = (D4EArtifact) artifact; | 66 D4EArtifact flys = (D4EArtifact) artifact; |
67 String hws = flys.getDataAsString("uesk.hws"); | 67 String hws = flys.getDataAsString("uesk.hws"); |
68 logger.debug("hws: " + hws); | 68 log.debug("hws: " + hws); |
69 return true; | 69 return true; |
70 } | 70 } |
71 | 71 |
72 | 72 |
73 /** | 73 /** |
86 String hws= flys.getDataAsString("uesk.hws"); | 86 String hws= flys.getDataAsString("uesk.hws"); |
87 if (hws == null) { | 87 if (hws == null) { |
88 return null; | 88 return null; |
89 } | 89 } |
90 | 90 |
91 logger.debug("Found selected hws: '" + hws + "'"); | 91 log.debug("Found selected hws: '" + hws + "'"); |
92 | 92 |
93 return hws; | 93 return hws; |
94 } | 94 } |
95 | 95 |
96 | 96 |