Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BunduWstExporter.java @ 9313:6ffcbb4f35d5
bundu.bezugswst first result stump
author | gernotbelger |
---|---|
date | Thu, 26 Jul 2018 15:58:08 +0200 |
parents | |
children | 7b2b086e45f0 |
comparison
equal
deleted
inserted
replaced
9312:740d65e4aa14 | 9313:6ffcbb4f35d5 |
---|---|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.river.artifacts.bundu.bezugswst; | |
10 | |
11 import org.apache.log4j.Logger; | |
12 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; | |
13 import org.dive4elements.river.artifacts.common.ExportContextCSV; | |
14 import org.dive4elements.river.artifacts.common.ExportContextPDF; | |
15 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; | |
16 | |
17 /** | |
18 * Generates different output formats (wst, csv, pdf) of data that resulted from | |
19 * a waterlevel computation. | |
20 * | |
21 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
22 */ | |
23 public class BunduWstExporter extends AbstractCommonExporter<BezugswstCalculationResult, BezugswstCalculationResults> { | |
24 | |
25 /** The log used in this exporter. */ | |
26 private static Logger log = Logger.getLogger(BunduWstExporter.class); | |
27 | |
28 @Override | |
29 protected void writeCSVGlobalMetadata(final ExportContextCSV exportContext, final BezugswstCalculationResults results) { | |
30 exportContext.writeCSVGlobalMetadataDefaults(); | |
31 | |
32 } | |
33 | |
34 @Override | |
35 protected void writePDFGlobalMetadata(final ExportContextPDF exportContext, final MetaAndTableJRDataSource source) { | |
36 exportContext.addJRMetaDataUSINFO(source); | |
37 // source.addMetaData("flowdepthdevelopment_header_label", | |
38 // SInfoResultType.flowdepthDevelopment.getCsvHeader(this.context.getMeta()));// (this.context.getMeta())); | |
39 | |
40 } | |
41 | |
42 } | |
43 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |