comparison src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java @ 1335:b9eb9229df21

Accept values for 'umweltbereich' with length of 1 - 3 characters.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Apr 2017 10:08:47 +0200
parents 1d9552e05b76
children
comparison
equal deleted inserted replaced
1334:739ad8e78fca 1335:b9eb9229df21
1084 if (ctx.getChildCount() < 2) { 1084 if (ctx.getChildCount() < 2) {
1085 return; 1085 return;
1086 } 1086 }
1087 String value = ctx.getChild(1).toString(); 1087 String value = ctx.getChild(1).toString();
1088 value = value.replaceAll("\"", ""); 1088 value = value.replaceAll("\"", "");
1089 if (!value.matches(LafDataTypes.SC3)) { 1089 if (!value.matches(LafDataTypes.C3)) {
1090 ReportItem err = new ReportItem(); 1090 ReportItem err = new ReportItem();
1091 err.setKey(ctx.getChild(0).toString()); 1091 err.setKey(ctx.getChild(0).toString());
1092 err.setValue(value); 1092 err.setValue(value);
1093 err.setCode(670); 1093 err.setCode(670);
1094 currentErrors.add(err);; 1094 currentErrors.add(err);;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)