Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/AbstractExporter.java @ 3223:282c9da923ab
FixA: flys/issue689: Export CSV for facet 'fix_parameters'
flys-artifacts/trunk@4849 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 02 Jul 2012 10:13:00 +0000 |
parents | 79dd823733e2 |
children | 4ac581062c40 |
comparison
equal
deleted
inserted
replaced
3222:116b342893e3 | 3223:282c9da923ab |
---|---|
35 public abstract class AbstractExporter implements OutGenerator { | 35 public abstract class AbstractExporter implements OutGenerator { |
36 | 36 |
37 /** The logger used in this exporter.*/ | 37 /** The logger used in this exporter.*/ |
38 private static Logger logger = Logger.getLogger(AbstractExporter.class); | 38 private static Logger logger = Logger.getLogger(AbstractExporter.class); |
39 | 39 |
40 /* XXX: Why does AbstractExporter do not implement FacetTypes? */ | |
41 public static String FIX_PARAMETERS = "fix_parameters"; | |
40 | 42 |
41 /** The name of the CSV facet which triggers the CSV creation. */ | 43 /** The name of the CSV facet which triggers the CSV creation. */ |
42 public static final String FACET_CSV = "csv"; | 44 public static final String FACET_CSV = "csv"; |
43 | 45 |
44 /** The name of the PDF facet which triggers the PDF creation. */ | 46 /** The name of the PDF facet which triggers the PDF creation. */ |
160 } | 162 } |
161 else if (facet.equals(FACET_PDF)) { | 163 else if (facet.equals(FACET_PDF)) { |
162 generatePDF(); | 164 generatePDF(); |
163 } | 165 } |
164 else { | 166 else { |
165 throw new IOException("invalid facet for exporter."); | 167 throw new IOException( |
168 "invalid facet for exporter: '" + facet + "'"); | |
166 } | 169 } |
167 } | 170 } |
168 | 171 |
169 | 172 |
170 /** | 173 /** |