Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/AnnotationProcessor.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 | b7b839557282 |
children | 1cc7653ca84f 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
22 * Add data to chart/generator. | 22 * Add data to chart/generator. |
23 * | 23 * |
24 */ | 24 */ |
25 public class AnnotationProcessor extends DefaultProcessor { | 25 public class AnnotationProcessor extends DefaultProcessor { |
26 | 26 |
27 /** Private logger. */ | 27 /** Private log. */ |
28 private static final Logger logger = | 28 private static final Logger log = |
29 Logger.getLogger(AnnotationProcessor.class); | 29 Logger.getLogger(AnnotationProcessor.class); |
30 | 30 |
31 @Override | 31 @Override |
32 public void doOut( | 32 public void doOut( |
33 DiagramGenerator generator, | 33 DiagramGenerator generator, |
39 return; | 39 return; |
40 } | 40 } |
41 CallContext context = generator.getCallContext(); | 41 CallContext context = generator.getCallContext(); |
42 if (!(bundle.getData(context) instanceof RiverAnnotation)) { | 42 if (!(bundle.getData(context) instanceof RiverAnnotation)) { |
43 // Just a bit defensive should not happen | 43 // Just a bit defensive should not happen |
44 logger.error("Incompatible facet in doOut"); | 44 log.error("Incompatible facet in doOut"); |
45 return; | 45 return; |
46 } | 46 } |
47 RiverAnnotation ra = (RiverAnnotation)bundle.getData(context); | 47 RiverAnnotation ra = (RiverAnnotation)bundle.getData(context); |
48 ra.setTheme(theme); | 48 ra.setTheme(theme); |
49 ra.setLabel(bundle.getFacetDescription()); | 49 ra.setLabel(bundle.getFacetDescription()); |
63 return; | 63 return; |
64 } | 64 } |
65 CallContext context = generator.getCallContext(); | 65 CallContext context = generator.getCallContext(); |
66 if (!(bundle.getData(context) instanceof RiverAnnotation)) { | 66 if (!(bundle.getData(context) instanceof RiverAnnotation)) { |
67 // Just a bit defensive should not happen | 67 // Just a bit defensive should not happen |
68 logger.error("Incompatible facet in doOut"); | 68 log.error("Incompatible facet in doOut"); |
69 return; | 69 return; |
70 } | 70 } |
71 RiverAnnotation ra = (RiverAnnotation)bundle.getData(context); | 71 RiverAnnotation ra = (RiverAnnotation)bundle.getData(context); |
72 ra.setTheme(theme); | 72 ra.setTheme(theme); |
73 ra.setLabel(bundle.getFacetDescription()); | 73 ra.setLabel(bundle.getFacetDescription()); |