Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveExporter.java @ 7077:0a337f0005c2 generator-refactoring
Extended init() of OutGenerator to take name of the out to serve.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 20 Sep 2013 16:34:09 +0200 |
parents | a0078e5e3b39 |
children | 41567bf1e131 |
comparison
equal
deleted
inserted
replaced
7074:a2abd87c0d3b | 7077:0a337f0005c2 |
---|---|
71 public static final String JASPER_FILE = "export.duration.pdf.file"; | 71 public static final String JASPER_FILE = "export.duration.pdf.file"; |
72 | 72 |
73 /** The storage that contains all WQKms objects for the different facets. */ | 73 /** The storage that contains all WQKms objects for the different facets. */ |
74 protected List<WQDay> data; | 74 protected List<WQDay> data; |
75 | 75 |
76 | 76 public DurationCurveExporter() { |
77 public void init(Document request, OutputStream out, CallContext context) { | 77 data = new ArrayList<WQDay>(); |
78 logger.debug("DurationCurveExporter.init"); | 78 } |
79 | |
80 super.init(request, out, context); | |
81 | |
82 this.data = new ArrayList<WQDay>(); | |
83 } | |
84 | |
85 | 79 |
86 @Override | 80 @Override |
87 protected void addData(Object d) { | 81 protected void addData(Object d) { |
88 if (d instanceof CalculationResult) { | 82 if (d instanceof CalculationResult) { |
89 d = ((CalculationResult)d).getData(); | 83 d = ((CalculationResult)d).getData(); |