comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/ParametersExporter.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 e3c7a3228bc2
comparison
equal deleted inserted replaced
3222:116b342893e3 3223:282c9da923ab
54 FixResult result = (FixResult)data; 54 FixResult result = (FixResult)data;
55 parametersList.add(result.getParameters()); 55 parametersList.add(result.getParameters());
56 } 56 }
57 57
58 @Override 58 @Override
59 public void generate()
60 throws IOException
61 {
62 log.debug("ParametersExporter.generate");
63
64 if (facet == null) {
65 throw new IOException("invalid (null) facet for exporter");
66 }
67
68 if (facet.equals(FIX_PARAMETERS)) {
69 generateCSV();
70 }
71 else {
72 throw new IOException(
73 "invalid facet for exporter: '" + facet + "'");
74 }
75 }
76
77 @Override
59 protected void writeCSVData(final CSVWriter writer) throws IOException { 78 protected void writeCSVData(final CSVWriter writer) throws IOException {
60 79
61 if (parametersList.isEmpty()) { 80 if (parametersList.isEmpty()) {
62 return; 81 return;
63 } 82 }

http://dive4elements.wald.intevation.org