Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java @ 6504:7664ab97b4c7
Backend: Store source of a wst column if available.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 28 Jun 2013 17:00:55 +0200 |
parents | 224d7c4b5291 |
children | 128ab9169db1 1c68d4b2a1c0 |
comparison
equal
deleted
inserted
replaced
6501:7cb247824ed1 | 6504:7664ab97b4c7 |
---|---|
109 int columnCount = 0; | 109 int columnCount = 0; |
110 | 110 |
111 String [] lsBezeichner = null; | 111 String [] lsBezeichner = null; |
112 String [] langBezeichner = null; | 112 String [] langBezeichner = null; |
113 int [] colNaWidths = null; | 113 int [] colNaWidths = null; |
114 // String [] quellen = null; | 114 String [] quellen = null; |
115 String [] daten = null; | 115 String [] daten = null; |
116 | 116 |
117 BigDecimal [] aktAbfluesse = null; | 117 BigDecimal [] aktAbfluesse = null; |
118 BigDecimal [] firstAbfluesse = null; | 118 BigDecimal [] firstAbfluesse = null; |
119 | 119 |
213 } | 213 } |
214 else if (spezial.startsWith(COLUMN_QUELLE)) { | 214 else if (spezial.startsWith(COLUMN_QUELLE)) { |
215 if (spezial.length() == 0) { | 215 if (spezial.length() == 0) { |
216 continue; | 216 continue; |
217 } | 217 } |
218 // quellen = StringUtil.splitQuoted(spezial, '"'); | 218 quellen = StringUtil.splitQuoted(spezial, '"'); |
219 } | 219 } |
220 else if (spezial.startsWith(COLUMN_DATUM)) { | 220 else if (spezial.startsWith(COLUMN_DATUM)) { |
221 spezial = spezial.substring(COLUMN_DATUM.length()).trim(); | 221 spezial = spezial.substring(COLUMN_DATUM.length()).trim(); |
222 if (spezial.length() == 0) { | 222 if (spezial.length() == 0) { |
223 continue; | 223 continue; |
276 " (" + collision + ")"; | 276 " (" + collision + ")"; |
277 ++collision; | 277 ++collision; |
278 } | 278 } |
279 ImportWstColumn iwc = wst.getColumn(i); | 279 ImportWstColumn iwc = wst.getColumn(i); |
280 iwc.setName(candidate); | 280 iwc.setName(candidate); |
281 if (quellen != null && i < quellen.length) { | |
282 iwc.setSource(quellen[i]); | |
283 } | |
281 String potentialDate = daten != null && i < daten.length | 284 String potentialDate = daten != null && i < daten.length |
282 ? daten[i] | 285 ? daten[i] |
283 : candidate; | 286 : candidate; |
284 iwc.setTimeInterval(guessDate(potentialDate)); | 287 iwc.setTimeInterval(guessDate(potentialDate)); |
285 } | 288 } |