Mercurial > lada > lada-server
changeset 1163:315df94c679b
Write raw data on exit probe context in laf listener.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 09 Nov 2016 10:18:51 +0100 |
parents | 5d2c68a4c344 |
children | 84ff77bba9b0 |
files | src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java Tue Nov 08 17:46:06 2016 +0100 +++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java Wed Nov 09 10:18:51 2016 +0100 @@ -133,6 +133,20 @@ */ @Override public void exitProbe(LafParser.ProbeContext ctx) { data.addProbe(currentProbe); + if (currentMessung != null) { + currentProbe.addMessung(currentMessung); + currentMessung = null; + } + if (currentUOrt != null && !currentUOrt.isEmpty()) { + currentProbe.addUrsprungsOrt(currentUOrt); + currentUOrt.clear(); + } + if (currentEOrt != null && !currentEOrt.isEmpty()) { + currentProbe.addEntnahmeOrt(currentEOrt); + currentEOrt.clear(); + } + currentEOrt = new HashMap<String, String>(); + currentProbe = data.new Probe(); if (!currentErrors.isEmpty()) { errors.put(currentProbe.getIdentifier(), (ArrayList)currentErrors.clone());