Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/AbstractExporter.java @ 3217:79dd823733e2
FixA: Added parameter exporter.
flys-artifacts/trunk@4840 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 30 Jun 2012 22:02:37 +0000 |
parents | 70469e3d34b9 |
children | 282c9da923ab |
comparison
equal
deleted
inserted
replaced
3216:a46910e61dfb | 3217:79dd823733e2 |
---|---|
149 public void generate() | 149 public void generate() |
150 throws IOException | 150 throws IOException |
151 { | 151 { |
152 logger.debug("AbstractExporter.generate"); | 152 logger.debug("AbstractExporter.generate"); |
153 | 153 |
154 if (facet != null && facet.equals(FACET_CSV)) { | 154 if (facet == null) { |
155 throw new IOException("invalid (null) facet for exporter"); | |
156 } | |
157 | |
158 if (facet.equals(FACET_CSV)) { | |
155 generateCSV(); | 159 generateCSV(); |
156 } | 160 } |
157 else if (facet != null && facet.equals(FACET_PDF)) { | 161 else if (facet.equals(FACET_PDF)) { |
158 generatePDF(); | 162 generatePDF(); |
159 } | 163 } |
160 else { | 164 else { |
161 throw new IOException("invalid facet for exporter."); | 165 throw new IOException("invalid facet for exporter."); |
162 } | 166 } |