[Lada-commits] [PATCH] Write raw data on exit probe context in laf listener
Wald Commits
scm-commit at wald.intevation.org
Wed Nov 9 10:18:57 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1478683131 -3600
# Node ID 315df94c679b46d9302b9cd496438350e076d64f
# Parent 5d2c68a4c344eb8bdcddd8a90a3b8d886186acae
Write raw data on exit probe context in laf listener.
diff -r 5d2c68a4c344 -r 315df94c679b src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java
--- 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());
More information about the Lada-commits
mailing list