comparison artifacts/src/main/java/org/dive4elements/river/exports/ShapeExporter.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 41567bf1e131
children 5e38e2924c07
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
19 19
20 20
21 public class ShapeExporter implements OutGenerator 21 public class ShapeExporter implements OutGenerator
22 { 22 {
23 private static final String XPATH_FACET = "/art:action/@art:type"; 23 private static final String XPATH_FACET = "/art:action/@art:type";
24 private static Logger logger = Logger.getLogger(ShapeExporter.class); 24 private static Logger log = Logger.getLogger(ShapeExporter.class);
25 private Artifact master; 25 private Artifact master;
26 private Document request; 26 private Document request;
27 private OutputStream out; 27 private OutputStream out;
28 private CallContext context; 28 private CallContext context;
29 private D4EArtifactCollection collection; 29 private D4EArtifactCollection collection;
31 private File dir; 31 private File dir;
32 private String outName; 32 private String outName;
33 33
34 @Override 34 @Override
35 public void setup(Object config) { 35 public void setup(Object config) {
36 logger.debug("ShapeExporter.setup"); 36 log.debug("ShapeExporter.setup");
37 } 37 }
38 38
39 @Override 39 @Override
40 public void init(String outName, Document request, OutputStream out, CallContext context) { 40 public void init(String outName, Document request, OutputStream out, CallContext context) {
41 this.outName = outName; 41 this.outName = outName;
57 @Override 57 @Override
58 public void doOut(ArtifactAndFacet bundle, ThemeDocument attr, boolean visible) { 58 public void doOut(ArtifactAndFacet bundle, ThemeDocument attr, boolean visible) {
59 String name = bundle.getFacetName(); 59 String name = bundle.getFacetName();
60 60
61 if (!isFacetValid(name)) { 61 if (!isFacetValid(name)) {
62 logger.debug("Facet '" + name + "' is not valid for this exporter!"); 62 log.debug("Facet '" + name + "' is not valid for this exporter!");
63 return; 63 return;
64 } 64 }
65 65
66 addData(bundle.getData(context)); 66 addData(bundle.getData(context));
67 } 67 }

http://dive4elements.wald.intevation.org