Mercurial > lada > lada-server
changeset 1069:fdc752cd17fe schema-update
Removed old importer stuff and added new Importer based on antlr4 grammar.
WIP! Currently only the parser without mapping to objects
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 30 Sep 2016 14:05:28 +0200 |
parents | 21ab4d35135a |
children | 2ea53256157a |
files | pom.xml src/main/antlr4/de/intevation/lada/importer/laf/Laf.g4 src/main/java/de/intevation/lada/importer/laf/AttributeMapper.java src/main/java/de/intevation/lada/importer/laf/EntryFormat.java src/main/java/de/intevation/lada/importer/laf/LafDataTypes.java src/main/java/de/intevation/lada/importer/laf/LafErrorListener.java src/main/java/de/intevation/lada/importer/laf/LafFormat.java src/main/java/de/intevation/lada/importer/laf/LafImporter.java src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java src/main/java/de/intevation/lada/importer/laf/LafParser.java src/main/java/de/intevation/lada/importer/laf/LafParserException.java src/main/java/de/intevation/lada/importer/laf/LafProducer.java src/main/java/de/intevation/lada/importer/laf/LafRawData.java src/main/java/de/intevation/lada/importer/laf/LafWriter.java src/main/java/de/intevation/lada/importer/laf/OrtCreator.java src/main/java/de/intevation/lada/rest/importer/LafImportService.java |
diffstat | 17 files changed, 11316 insertions(+), 2773 deletions(-) [+] |
line wrap: on
line diff
--- a/pom.xml Tue Sep 20 16:01:02 2016 +0200 +++ b/pom.xml Fri Sep 30 14:05:28 2016 +0200 @@ -122,6 +122,12 @@ <version>4.3</version> </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr4-runtime</artifactId> + <version>4.5</version> + </dependency> + <!-- Logging --> <dependency> <groupId>log4j</groupId> @@ -204,6 +210,21 @@ </compilerArguments> </configuration> </plugin> + <plugin> + <groupId>org.antlr</groupId> + <artifactId>antlr4-maven-plugin</artifactId> + <version>4.5</version> + <configuration> + <outputDirectory>${basedir}/src/main/java</outputDirectory> + </configuration> + <executions> + <execution> + <goals> + <goal>antlr4</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </profile>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/antlr4/de/intevation/lada/importer/laf/Laf.g4 Fri Sep 30 14:05:28 2016 +0200 @@ -0,0 +1,359 @@ +grammar Laf; + +probendatei : probe* end? EOF; + +end : '%ENDE%'; + +probe : '%PROBE%' probedaten+ ; + +probedaten: db + | version + | uebertragungsformat + | netzkennung + | erzeuger + | sdm + | messstelle + | messlabor + | probe_id + | pnh + | mp + | messprogramm_land + | probenahmeinstitution + | probenart + | zb + | probenahme_datum_uhrzeit_a + | probenahme_datum_uhrzeit_e + | soll_datum_uhrzeit_a + | soll_datum_uhrzeit_e + | ub + | deskriptoren + | rei + | referenz_datum_uhrzeit + | testdaten + | szenario + | sek_datenbasis + | us + | ph + | pg + | p_orts_zusatzkennzahl + | pk + | p_orts_zusatzcode + | p_orts_zusatztext + | p_nuts_code + | p_site_id + | p_site_name + | p_hoehe_nn + | p_hoehe_land + | mehrzweckfeld + | messung + | pzb + | pkom +; + +messung: + mess_header? + messungdaten+ +; + +mess_header : '%MESSUNG%' ; + +messungdaten: messungs_id + | pn + | mess_datum_uhrzeit + | messzeit_sekunden + | mm + | bearbeitungsstatus + | pep_flag + | erfassung_abgeschlossen + | messwert + | mess_kommentar +; + +db : datenbasis + | datenbasis_s + ; + + +mp : messprogramm_c + | messprogramm_s + ; + +ub : umweltbereich_c + | umweltbereich_s + ; + +rei : rei_programmpunkt + | rei_programmpunktgruppe + ; + +ph : p_herkunftsland_lang + | p_herkunftsland_kurz + | p_herkunftsland_s + ; + +pg : p_gemeindeschluessel + | p_gemeindename + ; + +pk : p_koordinaten + | p_koordinaten_s + ; + +zb : zeitbasis + | zeitbasis_s + ; + +pzb : probenzusatzbeschreibung + | pzb_s + ; + +pkom : probenkommentar + | probenkommentar_t + ; + +sdm : staat_der_messstelle_lang + | staat_der_messstelle_kurz + | staat_der_messstelle_s + ; + +pnh : proben_nr + | hauptprobennummer + ; + +// MESSUNG +mm : messmethode_c + | messmethode_s + ; + +mw : messwert + | messwert_s + | messwert_i + | messwert_g + | messwert_nwg + | messwert_nwg_s + | messwert_nwg_i + | messwert_nwg_g + ; + +mess_kommentar : kommentar + | kommentar_t + ; + +pn : proben_nr + | nebenprobennummer + ; + +// URSPRUNGSORT +us : '%URSPRUNGSORT%' + ursprungsortdaten* + ; + +ursprungsortdaten : uh + | ug + | u_orts_zusatzkennzahl + | uk + | u_orts_zusatzcode + | u_orts_zusatztext + | u_nuts_code +; + +uh : u_herkunftsland_lang + | u_herkunftsland_kurz + | u_herkunftsland_s + ; + +ug : u_gemeindeschluessel + | u_gemeindename + ; + +uk : u_koordinaten + | u_koordinaten_s + ; + + + + +version : VERSION (STRING_ESC | STRING) ; // C4 +uebertragungsformat : UEBERTRAGUNGSFORMAT (STRING_ESC | STRING) ; // C1; + +datenbasis : DATENBASIS (STRING_ESC | STRING) ; // C6 +datenbasis_s : DATENBASIS_S STRING ; // SI2 +netzkennung : NETZKENNUNG (STRING_ESC | STRING) ; // C2 +erzeuger : ERZEUGER (STRING_ESC | STRING) ; // C2 +staat_der_messstelle_lang : STAAT_DER_MESSSTELLE_LANG (STRING_ESC | STRING) ; //C50 +staat_der_messstelle_kurz : STAAT_DER_MESSSTELLE_KURZ (STRING_ESC | STRING) ; // C5 +staat_der_messstelle_s : STAAT_DER_MESSSTELLE_S STRING ; // SI8 +messstelle : MESSSTELLE (STRING_ESC | STRING) ; // SC5 +messlabor : MESSLABOR (STRING_ESC | STRING) ; // SC5 +probe_id : PROBE_ID (STRING_ESC | STRING) ; // C16 +messungs_id : MESSUNGS_ID STRING ; // I2 +proben_nr : PROBEN_NR (STRING_ESC | STRING) ; // C13 +hauptprobennummer : HAUPTPROBENNUMMER (STRING_ESC | STRING) ; // C20 +nebenprobennummer : NEBENPROBENNUMMER (STRING_ESC | STRING) ; // C4 +messprogramm_c : MESSPROGRAMM_C (STRING_ESC | STRING) ; // C50 +messprogramm_s : MESSPROGRAMM_S (STRING_ESC | STRING) ; // SC1 +messprogramm_land : MESSPROGRAMM_LAND (STRING_ESC | STRING) ; // C3 +probenahmeinstitution : PROBENAHMEINSTITUTION (STRING_ESC | STRING) ; // C9 +probenart : PROBENART (STRING_ESC | STRING) ; // C1 +zeitbasis : ZEITBASIS (STRING_ESC | STRING) ; // C30 +zeitbasis_s : ZEITBASIS_S STRING ; // SI1 +soll_datum_uhrzeit_a : SOLL_DATUM_UHRZEIT_A STRING (' ')* STRING ; // D8 T4 +soll_datum_uhrzeit_e : SOLL_DATUM_UHRZEIT_E STRING (' ')* STRING ; // D8 T4 +ursprungs_datum_uhrzeit : URSPRUNGS_DATUM_UHRZEIT STRING (' ')* STRING ; // D8 T4 +probenahme_datum_uhrzeit_a : PROBENAHME_DATUM_UHRZEIT_A STRING (' ')* STRING ; // D8 T4 +probenahme_datum_uhrzeit_e : PROBENAHME_DATUM_UHRZEIT_E STRING (' ')* STRING ; // D8 T4 +umweltbereich_c : UMWELTBEREICH_C (STRING_ESC | STRING) ; // C80 +umweltbereich_s : UMWELTBEREICH_S (STRING_ESC | STRING) ; // SC3 +deskriptoren : DESKRIPTOREN (STRING_ESC | STRING) ; // C26 +rei_programmpunkt : REI_PROGRAMMPUNKT (STRING_ESC | STRING) ; // C10 +rei_programmpunktgruppe : REI_PROGRAMMPUNKTGRUPPE (STRING_ESC | STRING) ; // C21 +referenz_datum_uhrzeit : REFERENZ_DATUM_UHRZEIT STRING (' ')* STRING ; //D8 T4 +testdaten : TESTDATEN STRING ; // I1 (0 or 1 represents a boolean value) +szenario : SZENARIO (STRING_ESC | STRING) ; // C20 +sek_datenbasis : SEK_DATENBASIS (STRING_ESC | STRING) ; // C6* +sek_datenbasis_s : SEK_DATENBASIS_S STRING ; //SI2 +u_herkunftsland_lang : U_HERKUNFTSLAND_LANG (STRING_ESC | STRING) ; //C50 +u_herkunftsland_kurz : U_HERKUNFTSLAND_KURZ (STRING_ESC | STRING) ; // C5 +u_herkunftsland_s : U_HERKUNFTSLAND_S STRING ; // SI8 +u_gemeindeschluessel : U_GEMEINDESCHLUESSEL STRING ; // I8 +u_gemeindename : U_GEMEINDENAME (STRING_ESC | STRING) ; // C80* +u_orts_zusatzkennzahl : U_ORTS_ZUSATZKENNZAHL STRING ; // I3 +u_koordinaten : U_KOORDINATEN (STRING_ESC | STRING) (' ')* (STRING_ESC | STRING) (' ')* (STRING_ESC | STRING) ; // C50 C22 C22 +u_koordinaten_s : U_KOORDINATEN_S STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING_ESC | STRING) ; // SI2 C22 C22 +u_orts_zusatzcode : U_ORTS_ZUSATZCODE (STRING_ESC | STRING) ; // C8 +u_orts_zusatztext : U_ORTS_ZUSATZTEXT (STRING_ESC | STRING) ; // MC50 +u_nuts_code : U_NUTS_CODE STRING ; // I10 +p_herkunftsland_lang : P_HERKUNFTSLAND_LANG (STRING_ESC | STRING) ; //C50* +p_herkunftsland_kurz : P_HERKUNFTSLAND_KURZ (STRING_ESC | STRING) ; // C5 +p_herkunftsland_s : P_HERKUNFTSLAND_S STRING ; // SI8 +p_gemeindeschluessel : P_GEMEINDESCHLUESSEL STRING ; // I8 +p_gemeindename : P_GEMEINDENAME (STRING_ESC | STRING) ; // C80* +p_orts_zusatzkennzahl : P_ORTS_ZUSATZKENNZAHL STRING ; // I3 +p_koordinaten : P_KOORDINATEN (STRING_ESC | STRING) (' ')* (STRING_ESC | STRING) (' ')* (STRING_ESC | STRING) ; // C50* C22 C22 +p_koordinaten_s : P_KOORDINATEN_S STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING_ESC | STRING) ; // SI2 C22 C22 +p_orts_zusatzcode : P_ORTS_ZUSATZCODE (STRING_ESC | STRING) ; // C8 +p_orts_zusatztext : P_ORTS_ZUSATZTEXT (STRING_ESC | STRING) ; // MC50 +p_nuts_code : P_NUTS_CODE STRING ; // I10 +p_site_id : P_SITE_ID (STRING_ESC | STRING) ; // C8 +p_site_name : P_SITE_NAME (STRING_ESC | STRING) ; // C50* +p_hoehe_nn : P_HOEHE_NN STRING ; // F10 +p_hoehe_land : P_HOEHE_LAND STRING ; // F10 +mehrzweckfeld : MEHRZWECKFELD (STRING_ESC | STRING) ; // MC300 +mess_datum_uhrzeit : MESS_DATUM_UHRZEIT STRING (' ')* STRING ; // D8 T4 +messzeit_sekunden : MESSZEIT_SEKUNDEN STRING ; // I8 +messmethode_c : MESSMETHODE_C (STRING_ESC | STRING) ; // C50* +messmethode_s : MESSMETHODE_S (STRING_ESC | STRING) ; // SC2 +bearbeitungsstatus : BEARBEITUNGSSTATUS (STRING_ESC | STRING) ; // C4 +pep_flag : PEP_FLAG STRING ; // I1 +erfassung_abgeschlossen : ERFASSUNG_ABGESCHLOSSEN STRING ; // I1 +probenzusatzbeschreibung : PROBENZUSATZBESCHREIBUNG (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* STRING ; // C7* F12 C9 F9 +pzb_s : PZB_S (STRING_ESC | STRING) (' ')* STRING (' ')* STRING (' ')* STRING ; // SC8 F12 SI3 F9 +messwert : MESSWERT (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING)? ; // C50* F12 C9 F9** +messwert_s : MESSWERT_S STRING (' ')* STRING (' ')* STRING (' ')* (STRING)? ; // SI8 F12 SI3 F9** +messwert_i : MESSWERT_I (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING (' ')*)? (STRING (' ')*)? (STRING (' ')*)? (STRING_ESC | STRING)? ; // C50* F12 C9 F9** F9** F9** C50* +messwert_g : MESSWERT_G (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING (' ')*)? (STRING (' ')*)? (STRING (' ')*)? (STRING_ESC | STRING)? ; // C50* F12 C9 F9** F9** F9** C1 +messwert_nwg : MESSWERT_NWG (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING (' ')*)? (STRING)? ; // C50* F12 C9 F9** F12 +messwert_nwg_s : MESSWERT_NWG_S STRING (' ')* STRING (' ')* STRING (' ')* (STRING (' ')*)? (STRING)? ; // SI8 F12 SI3 F9** F12 +messwert_nwg_i : MESSWERT_NWG_I (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING (' ')*)? (STRING (' ')*)? (STRING (' ')*)? (STRING (' ')*)? (STRING_ESC | STRING) ; // C50* F12 C9 F9** F12 F9** F9** C50 +messwert_nwg_g : MESSWERT_NWG_G (STRING_ESC | STRING) (' ')* STRING (' ')* (STRING_ESC | STRING) (' ')* (STRING (' ')*)? STRING (' ')* (STRING (' ')*)? (STRING (' ')*)? (STRING_ESC | STRING)? ; // C50* F12 C9 F9** F12 F9** F9** C1 +kommentar : KOMMENTAR (STRING_ESC | STRING) (' ')* STRING (' ')* STRING (' ')* (STRING_ESC | STRING) ; // C5 D8 T4 MC300 +kommentar_t : KOMMENTAR_T (STRING_ESC | STRING) ; // MC300 +probenkommentar : PROBENKOMMENTAR (STRING_ESC | STRING) (' ')* STRING (' ')* STRING (' ')* (STRING_ESC | STRING) ; // C5 D8 T4 MC300 +probenkommentar_t : PROBENKOMMENTAR_T (STRING_ESC | STRING) ; // MC300 + +VERSION : ('V'|'v')('E'|'e')('R'|'r')('S'|'s')('I'|'i')('O'|'o')('N'|'n') ; +UEBERTRAGUNGSFORMAT : ('U'|'u')('E'|'e')('B'|'b')('E'|'e')('R'|'r')('T'|'t')('R'|'r')('A'|'a')('G'|'g')('U'|'u')('N'|'n')('G'|'g')('S'|'s')('F'|'f')('O'|'o')('R'|'r')('M'|'m')('A'|'a')('T'|'t') ; +DATENBASIS : ('D'|'d')('A'|'a')('T'|'t')('E'|'e')('N'|'n')('B'|'b')('A'|'a')('S'|'s')('I'|'i')('S'|'s') ; +DATENBASIS_S : ('D'|'d')('A'|'a')('T'|'t')('E'|'e')('N'|'n')('B'|'b')('A'|'a')('S'|'s')('I'|'i')('S'|'s')('_')('S'|'s') ; +NETZKENNUNG : ('N'|'n')('E'|'e')('T'|'t')('Z'|'z')('K'|'k')('E'|'e')('N'|'n')('N'|'n')('U'|'u')('N'|'n')('G'|'g') ; +ERZEUGER : ('E'|'e')('R'|'r')('Z'|'z')('E'|'e')('U'|'u')('G'|'g')('E'|'e')('R'|'r') ; +STAAT_DER_MESSSTELLE_LANG : ('S'|'s')('T'|'t')('A'|'a')('A'|'a')('T'|'t')('_')('D'|'d')('E'|'e')('R'|'r')('_')('M'|'m')('E'|'e')('S'|'s')('S'|'s')('S'|'s')('T'|'t')('E'|'e')('L'|'l')('L'|'l')('E'|'e')('_')('L'|'l')('A'|'a')('N'|'n')('G'|'g') ; +STAAT_DER_MESSSTELLE_KURZ : ('S'|'s')('T'|'t')('A'|'a')('A'|'a')('T'|'t')('_')('D'|'d')('E'|'e')('R'|'r')('_')('M'|'m')('E'|'e')('S'|'s')('S'|'s')('S'|'s')('T'|'t')('E'|'e')('L'|'l')('L'|'l')('E'|'e')('_')('K'|'k')('U'|'u')('R'|'r')('Z'|'z') ; +STAAT_DER_MESSSTELLE_S : ('S'|'s')('T'|'t')('A'|'a')('A'|'a')('T'|'t')('_')('D'|'d')('E'|'e')('R'|'r')('_')('M'|'m')('E'|'e')('S'|'s')('S'|'s')('S'|'s')('T'|'t')('E'|'e')('L'|'l')('L'|'l')('E'|'e')('_')('S'|'s') ; +MESSSTELLE : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('S'|'s')('T'|'t')('E'|'e')('L'|'l')('L'|'l')('E'|'e') ; +MESSLABOR : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('L'|'l')('A'|'a')('B'|'b')('O'|'o')('R'|'r') ; +PROBE_ID : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('_')('I'|'i')('D'|'d') ; +MESSUNGS_ID : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('U'|'u')('N'|'n')('G'|'g')('S'|'s')('_')('I'|'i')('D'|'d') ; +PROBEN_NR : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('_')('N'|'n')('R'|'r') ; +HAUPTPROBENNUMMER : ('H'|'h')('A'|'a')('U'|'u')('P'|'p')('T'|'t')('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('N'|'n')('U'|'u')('M'|'m')('M'|'m')('E'|'e')('R'|'r') ; +NEBENPROBENNUMMER : ('N'|'n')('E'|'e')('B'|'b')('E'|'e')('N'|'n')('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('N'|'n')('U'|'u')('M'|'m')('M'|'m')('E'|'e')('R'|'r') ; +MESSPROGRAMM_C : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('P'|'p')('R'|'r')('O'|'o')('G'|'g')('R'|'r')('A'|'a')('M'|'m')('M'|'m')('_')('C'|'c') ; +MESSPROGRAMM_S : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('P'|'p')('R'|'r')('O'|'o')('G'|'g')('R'|'r')('A'|'a')('M'|'m')('M'|'m')('_')('S'|'s') ; +MESSPROGRAMM_LAND : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('P'|'p')('R'|'r')('O'|'o')('G'|'g')('R'|'r')('A'|'a')('M'|'m')('M'|'m')('_')('L'|'l')('A'|'a')('N'|'n')('D'|'d') ; +PROBENAHMEINSTITUTION : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('A'|'a')('H'|'h')('M'|'m')('E'|'e')('I'|'i')('N'|'n')('S'|'s')('T'|'t')('I'|'i')('T'|'t')('U'|'u')('T'|'t')('I'|'i')('O'|'o')('N'|'n') ; +PROBENART : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('A'|'a')('R'|'r')('T'|'t') ; +ZEITBASIS : ('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('B'|'b')('A'|'a')('S'|'s')('I'|'i')('S'|'s') ; +ZEITBASIS_S : ('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('B'|'b')('A'|'a')('S'|'s')('I'|'i')('S'|'s')('_')('S'|'s') ; +SOLL_DATUM_UHRZEIT_A : ('S'|'s')('O'|'o')('L'|'l')('L'|'l')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('_')('A'|'a') ; +SOLL_DATUM_UHRZEIT_E : ('S'|'s')('O'|'o')('L'|'l')('L'|'l')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('_')('E'|'e') ; +URSPRUNGS_DATUM_UHRZEIT : ('U'|'u')('R'|'r')('S'|'s')('P'|'p')('R'|'r')('U'|'u')('N'|'n')('G'|'g')('S'|'s')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t') ; +PROBENAHME_DATUM_UHRZEIT_A : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('A'|'a')('H'|'h')('M'|'m')('E'|'e')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('_')('A'|'a') ; +PROBENAHME_DATUM_UHRZEIT_E : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('A'|'a')('H'|'h')('M'|'m')('E'|'e')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('_')('E'|'e') ; +UMWELTBEREICH_C : ('U'|'u')('M'|'m')('W'|'w')('E'|'e')('L'|'l')('T'|'t')('B'|'b')('E'|'e')('R'|'r')('E'|'e')('I'|'i')('C'|'c')('H'|'h')('_')('C'|'c') ; +UMWELTBEREICH_S : ('U'|'u')('M'|'m')('W'|'w')('E'|'e')('L'|'l')('T'|'t')('B'|'b')('E'|'e')('R'|'r')('E'|'e')('I'|'i')('C'|'c')('H'|'h')('_')('S'|'s') ; +DESKRIPTOREN : ('D'|'d')('E'|'e')('S'|'s')('K'|'k')('R'|'r')('I'|'i')('P'|'p')('T'|'t')('O'|'o')('R'|'r')('E'|'e')('N'|'n') ; +REI_PROGRAMMPUNKT : ('R'|'r')('E'|'e')('I'|'i')('_')('P'|'p')('R'|'r')('O'|'o')('G'|'g')('R'|'r')('A'|'a')('M'|'m')('M'|'m')('P'|'p')('U'|'u')('N'|'n')('K'|'k')('T'|'t') ; +REI_PROGRAMMPUNKTGRUPPE : ('R'|'r')('E'|'e')('I'|'i')('_')('P'|'p')('R'|'r')('O'|'o')('G'|'g')('R'|'r')('A'|'a')('M'|'m')('M'|'m')('P'|'p')('U'|'u')('N'|'n')('K'|'k')('T'|'t')('G'|'g')('R'|'r')('U'|'u')('P'|'p')('P'|'p')('E'|'e') ; +REFERENZ_DATUM_UHRZEIT : ('R'|'r')('E'|'e')('F'|'f')('E'|'e')('R'|'r')('E'|'e')('N'|'n')('Z'|'z')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t') ; +TESTDATEN : ('T'|'t')('E'|'e')('S'|'s')('T'|'t')('D'|'d')('A'|'a')('T'|'t')('E'|'e')('N'|'n') ; +SZENARIO : ('S'|'s')('Z'|'z')('E'|'e')('N'|'n')('A'|'a')('R'|'r')('I'|'i')('O'|'o') ; +SEK_DATENBASIS : ('S'|'s')('E'|'e')('K'|'k')('_')('D'|'d')('A'|'a')('T'|'t')('E'|'e')('N'|'n')('B'|'b')('A'|'a')('S'|'s')('I'|'i')('S'|'s') ; +SEK_DATENBASIS_S : ('S'|'s')('E'|'e')('K'|'k')('_')('D'|'d')('A'|'a')('T'|'t')('E'|'e')('N'|'n')('B'|'b')('A'|'a')('S'|'s')('I'|'i')('S'|'s')('_')('S'|'s') ; +U_HERKUNFTSLAND_LANG : ('U'|'u')('_')('H'|'h')('E'|'e')('R'|'r')('K'|'k')('U'|'u')('N'|'n')('F'|'f')('T'|'t')('S'|'s')('L'|'l')('A'|'a')('N'|'n')('D'|'d')('_')('L'|'l')('A'|'a')('N'|'n')('G'|'g') ; +U_HERKUNFTSLAND_KURZ : ('U'|'u')('_')('H'|'h')('E'|'e')('R'|'r')('K'|'k')('U'|'u')('N'|'n')('F'|'f')('T'|'t')('S'|'s')('L'|'l')('A'|'a')('N'|'n')('D'|'d')('_')('K'|'k')('U'|'u')('R'|'r')('Z'|'z') ; +U_HERKUNFTSLAND_S : ('U'|'u')('_')('H'|'h')('E'|'e')('R'|'r')('K'|'k')('U'|'u')('N'|'n')('F'|'f')('T'|'t')('S'|'s')('L'|'l')('A'|'a')('N'|'n')('D'|'d')('_')('S'|'s') ; +U_GEMEINDESCHLUESSEL : ('U'|'u')('_')('G'|'g')('E'|'e')('M'|'m')('E'|'e')('I'|'i')('N'|'n')('D'|'d')('E'|'e')('S'|'s')('C'|'c')('H'|'h')('L'|'l')('U'|'u')('E'|'e')('S'|'s')('S'|'s')('E'|'e')('L'|'l') ; +U_GEMEINDENAME : ('U'|'u')('_')('G'|'g')('E'|'e')('M'|'m')('E'|'e')('I'|'i')('N'|'n')('D'|'d')('E'|'e')('N'|'n')('A'|'a')('M'|'m')('E'|'e') ; +U_ORTS_ZUSATZKENNZAHL : ('U'|'u')('_')('O'|'o')('R'|'r')('T'|'t')('S'|'s')('_')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('K'|'k')('E'|'e')('N'|'n')('N'|'n')('Z'|'z')('A'|'a')('H'|'h')('L'|'l') ; +U_KOORDINATEN : ('U'|'u')('_')('K'|'k')('O'|'o')('O'|'o')('R'|'r')('D'|'d')('I'|'i')('N'|'n')('A'|'a')('T'|'t')('E'|'e')('N'|'n') ; +U_KOORDINATEN_S : ('U'|'u')('_')('K'|'k')('O'|'o')('O'|'o')('R'|'r')('D'|'d')('I'|'i')('N'|'n')('A'|'a')('T'|'t')('E'|'e')('N'|'n')('_')('S'|'s') ; +U_ORTS_ZUSATZCODE : ('U'|'u')('_')('O'|'o')('R'|'r')('T'|'t')('S'|'s')('_')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('C'|'c')('O'|'o')('D'|'d')('E'|'e') ; +U_ORTS_ZUSATZTEXT : ('U'|'u')('_')('O'|'o')('R'|'r')('T'|'t')('S'|'s')('_')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('T'|'t')('E'|'e')('X'|'x')('T'|'t') ; +U_NUTS_CODE : ('U'|'u')('_')('N'|'n')('U'|'u')('T'|'t')('S'|'s')('_')('C'|'c')('O'|'o')('D'|'d')('E'|'e') ; +P_HERKUNFTSLAND_LANG : ('P'|'p')('_')('H'|'h')('E'|'e')('R'|'r')('K'|'k')('U'|'u')('N'|'n')('F'|'f')('T'|'t')('S'|'s')('L'|'l')('A'|'a')('N'|'n')('D'|'d')('_')('L'|'l')('A'|'a')('N'|'n')('G'|'g') ; +P_HERKUNFTSLAND_KURZ : ('P'|'p')('_')('H'|'h')('E'|'e')('R'|'r')('K'|'k')('U'|'u')('N'|'n')('F'|'f')('T'|'t')('S'|'s')('L'|'l')('A'|'a')('N'|'n')('D'|'d')('_')('K'|'k')('U'|'u')('R'|'r')('Z'|'z') ; +P_HERKUNFTSLAND_S : ('P'|'p')('_')('H'|'h')('E'|'e')('R'|'r')('K'|'k')('U'|'u')('N'|'n')('F'|'f')('T'|'t')('S'|'s')('L'|'l')('A'|'a')('N'|'n')('D'|'d')('_')('S'|'s') ; +P_GEMEINDESCHLUESSEL : ('P'|'p')('_')('G'|'g')('E'|'e')('M'|'m')('E'|'e')('I'|'i')('N'|'n')('D'|'d')('E'|'e')('S'|'s')('C'|'c')('H'|'h')('L'|'l')('U'|'u')('E'|'e')('S'|'s')('S'|'s')('E'|'e')('L'|'l') ; +P_GEMEINDENAME : ('P'|'p')('_')('G'|'g')('E'|'e')('M'|'m')('E'|'e')('I'|'i')('N'|'n')('D'|'d')('E'|'e')('N'|'n')('A'|'a')('M'|'m')('E'|'e') ; +P_ORTS_ZUSATZKENNZAHL : ('P'|'p')('_')('O'|'o')('R'|'r')('T'|'t')('S'|'s')('_')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('K'|'k')('E'|'e')('N'|'n')('N'|'n')('Z'|'z')('A'|'a')('H'|'h')('L'|'l') ; +P_KOORDINATEN : ('P'|'p')('_')('K'|'k')('O'|'o')('O'|'o')('R'|'r')('D'|'d')('I'|'i')('N'|'n')('A'|'a')('T'|'t')('E'|'e')('N'|'n') ; +P_KOORDINATEN_S : ('P'|'p')('_')('K'|'k')('O'|'o')('O'|'o')('R'|'r')('D'|'d')('I'|'i')('N'|'n')('A'|'a')('T'|'t')('E'|'e')('N'|'n')('_')('S'|'s') ; +P_ORTS_ZUSATZCODE : ('P'|'p')('_')('O'|'o')('R'|'r')('T'|'t')('S'|'s')('_')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('C'|'c')('O'|'o')('D'|'d')('E'|'e') ; +P_ORTS_ZUSATZTEXT : ('P'|'p')('_')('O'|'o')('R'|'r')('T'|'t')('S'|'s')('_')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('T'|'t')('E'|'e')('X'|'x')('T'|'t') ; +P_NUTS_CODE : ('P'|'p')('_')('N'|'n')('U'|'u')('T'|'t')('S'|'s')('_')('C'|'c')('O'|'o')('D'|'d')('E'|'e') ; +P_SITE_ID : ('P'|'p')('_')('S'|'s')('I'|'i')('T'|'t')('E'|'e')('_')('I'|'i')('D'|'d') ; +P_SITE_NAME : ('P'|'p')('_')('S'|'s')('I'|'i')('T'|'t')('E'|'e')('_')('N'|'n')('A'|'a')('M'|'m')('E'|'e') ; +P_HOEHE_NN : ('P'|'p')('_')('H'|'h')('O'|'o')('E'|'e')('H'|'h')('E'|'e')('_')('N'|'n')('N'|'n') ; +P_HOEHE_LAND : ('P'|'p')('_')('H'|'h')('O'|'o')('E'|'e')('H'|'h')('E'|'e')('_')('L'|'l')('A'|'a')('N'|'n')('D'|'d') ; +MEHRZWECKFELD : ('M'|'m')('E'|'e')('H'|'h')('R'|'r')('Z'|'z')('W'|'w')('E'|'e')('C'|'c')('K'|'k')('F'|'f')('E'|'e')('L'|'l')('D'|'d') ; +MESS_DATUM_UHRZEIT : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('_')('D'|'d')('A'|'a')('T'|'t')('U'|'u')('M'|'m')('_')('U'|'u')('H'|'h')('R'|'r')('Z'|'z')('E'|'e')('I'|'i')('T'|'t') ; +MESSZEIT_SEKUNDEN : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('Z'|'z')('E'|'e')('I'|'i')('T'|'t')('_')('S'|'s')('E'|'e')('K'|'k')('U'|'u')('N'|'n')('D'|'d')('E'|'e')('N'|'n') ; +MESSMETHODE_C : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('M'|'m')('E'|'e')('T'|'t')('H'|'h')('O'|'o')('D'|'d')('E'|'e')('_')('C'|'c') ; +MESSMETHODE_S : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('M'|'m')('E'|'e')('T'|'t')('H'|'h')('O'|'o')('D'|'d')('E'|'e')('_')('S'|'s') ; +BEARBEITUNGSSTATUS : ('B'|'b')('E'|'e')('A'|'a')('R'|'r')('B'|'b')('E'|'e')('I'|'i')('T'|'t')('U'|'u')('N'|'n')('G'|'g')('S'|'s')('S'|'s')('T'|'t')('A'|'a')('T'|'t')('U'|'u')('S'|'s') ; +PEP_FLAG : ('P'|'p')('E'|'e')('P'|'p')('_')('F'|'f')('L'|'l')('A'|'a')('G'|'g') ; +ERFASSUNG_ABGESCHLOSSEN : ('E'|'e')('R'|'r')('F'|'f')('A'|'a')('S'|'s')('S'|'s')('U'|'u')('N'|'n')('G'|'g')('_')('A'|'a')('B'|'b')('G'|'g')('E'|'e')('S'|'s')('C'|'c')('H'|'h')('L'|'l')('O'|'o')('S'|'s')('S'|'s')('E'|'e')('N'|'n') ; +PROBENZUSATZBESCHREIBUNG : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('Z'|'z')('U'|'u')('S'|'s')('A'|'a')('T'|'t')('Z'|'z')('B'|'b')('E'|'e')('S'|'s')('C'|'c')('H'|'h')('R'|'r')('E'|'e')('I'|'i')('B'|'b')('U'|'u')('N'|'n')('G'|'g') ; +PZB_S : ('P'|'p')('Z'|'z')('B'|'b')('_')('S'|'s') ; +MESSWERT : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t') ; +MESSWERT_S : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('S'|'s') ; +MESSWERT_I : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('I'|'i') ; +MESSWERT_G : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('G'|'g') ; +MESSWERT_NWG : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('N'|'n')('W'|'w')('G'|'g') ; +MESSWERT_NWG_S : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('N'|'n')('W'|'w')('G'|'g')('_')('S'|'s') ; +MESSWERT_NWG_I : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('N'|'n')('W'|'w')('G'|'g')('_')('I'|'i') ; +MESSWERT_NWG_G : ('M'|'m')('E'|'e')('S'|'s')('S'|'s')('W'|'w')('E'|'e')('R'|'r')('T'|'t')('_')('N'|'n')('W'|'w')('G'|'g')('_')('G'|'g') ; +KOMMENTAR : ('K'|'k')('O'|'o')('M'|'m')('M'|'m')('E'|'e')('N'|'n')('T'|'t')('A'|'a')('R'|'r') ; +KOMMENTAR_T : ('K'|'k')('O'|'o')('M'|'m')('M'|'m')('E'|'e')('N'|'n')('T'|'t')('A'|'a')('R'|'r')('_')('T'|'t') ; +PROBENKOMMENTAR : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('K'|'k')('O'|'o')('M'|'m')('M'|'m')('E'|'e')('N'|'n')('T'|'t')('A'|'a')('R'|'r') ; +PROBENKOMMENTAR_T : ('P'|'p')('R'|'r')('O'|'o')('B'|'b')('E'|'e')('N'|'n')('K'|'k')('O'|'o')('M'|'m')('M'|'m')('E'|'e')('N'|'n')('T'|'t')('A'|'a')('R'|'r')('_')('T'|'t') ; + + +WS : (' ')+ -> skip; +NEWLINE : ['\r' '\n' | '\r' | '\n'] -> skip; +STRING_ESC : '"' (C | [ \r\n])* '"' ; +STRING : C+ ; +C : CHAR ; +fragment CHAR : ~[ "\r\n] ; +fragment CHAR_WS : ~["\r\n] ; +fragment CHAR_WS_NL : ~["] ;
--- a/src/main/java/de/intevation/lada/importer/laf/AttributeMapper.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,599 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -import java.sql.Timestamp; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.inject.Inject; - -import de.intevation.lada.importer.ReportItem; -import de.intevation.lada.model.land.KommentarM; -import de.intevation.lada.model.land.KommentarP; -import de.intevation.lada.model.land.Messung; -import de.intevation.lada.model.land.Messwert; -import de.intevation.lada.model.land.Probe; -import de.intevation.lada.model.land.ZusatzWert; -import de.intevation.lada.model.stammdaten.Datenbasis; -import de.intevation.lada.model.stammdaten.MessEinheit; -import de.intevation.lada.model.stammdaten.Messgroesse; -import de.intevation.lada.model.stammdaten.ProbenZusatz; -import de.intevation.lada.model.stammdaten.Probenart; -import de.intevation.lada.model.stammdaten.Umwelt; -import de.intevation.lada.util.annotation.RepositoryConfig; -import de.intevation.lada.util.data.QueryBuilder; -import de.intevation.lada.util.data.Repository; -import de.intevation.lada.util.data.RepositoryType; - -/** - * The AttributeMapper is used to set object attributes via string based - * key value pairs. The key represents a member of an entity object. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class AttributeMapper -{ - - /** - * The repository used to read data. - */ - @Inject - @RepositoryConfig(type=RepositoryType.RO) - private Repository repository; - - /** - * List of warnings. - */ - private List<ReportItem> warnings; - - /** - * List of errors. - */ - private List<ReportItem> errors; - - /** - * Default constructor to create a new AttributeMapper object. - */ - public AttributeMapper() { - this.warnings = new ArrayList<ReportItem>(); - this.errors = new ArrayList<ReportItem>(); - } - - /** - * Add an attribute to the given LProbe object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param probe The entity object. - * @return The updated entity object. - */ - @SuppressWarnings("unchecked") - public Probe addAttribute(String key, Object value, Probe probe) { - DateFormat format = new SimpleDateFormat("yyyyMMdd HHmm"); - if ("datenbasis_s".equals(key) && probe.getDatenbasisId() == null) { - Integer v = Integer.valueOf(value.toString()); - probe.setDatenbasisId(v); - } - else if ("datenbasis_s".equals(key) && probe.getDatenbasisId() != null){ - this.warnings.add(new ReportItem(key, value.toString(), 672)); - } - - if ("datenbasis".equals(key) && probe.getDatenbasisId() == null) { - QueryBuilder<Datenbasis> builder = - new QueryBuilder<Datenbasis>( - repository.entityManager("stamm"), - Datenbasis.class); - builder.and("datenbasis", value.toString()); - List<Datenbasis> datenbasis = - (List<Datenbasis>)repository.filter( - builder.getQuery(), - "stamm").getData(); - - Integer v = datenbasis.get(0).getId(); - probe.setDatenbasisId(v); - } - else if ("datenbasis".equals(key) && probe.getDatenbasisId() != null){ - this.warnings.add(new ReportItem(key, value.toString(), 672)); - } - - if ("hauptprobennummer".equals(key)) { - probe.setHauptprobenNr(value.toString()); - } - - if ("mpr_id".equals(key)) { - Integer v = Integer.valueOf(value.toString()); - probe.setMprId(v); - } - - if ("messstelle".equals(key)) { - probe.setMstId(value.toString()); - } - - if ("messprogramm_s".equals(key) && probe.getBaId() == null) { - probe.setBaId(Integer.parseInt(value.toString())); - } - else if ("messprogramm_s".equals(key) && probe.getBaId() != null){ - this.warnings.add(new ReportItem(key, value.toString(), 672)); - } - - if ("soll_datum_uhrzeit_a".equals(key)) { - try { - Date d = format.parse(value.toString()); - probe.setSolldatumBeginn(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - } - if ("soll_datum_uhrzeit_e".equals(key)) { - try { - Date d = format.parse(value.toString()); - probe.setSolldatumEnde(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - } - if ("probenahme_datum_uhrzeit_a".equals(key)) { - try { - Date d = format.parse(value.toString()); - probe.setProbeentnahmeBeginn(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - } - if ("probenahme_datum_uhrzeit_e".equals(key)) { - try { - Date d = format.parse(value.toString()); - probe.setProbeentnahmeEnde(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - } - - if ("umweltbereich_s".equals(key) && probe.getUmwId() == null) { - probe.setUmwId(value.toString()); - } - else if ("umweltbereich_s".equals(key) && probe.getUmwId() != null){ - this.warnings.add(new ReportItem(key, value.toString(), 672)); - } - if ("umweltbereich_c".equals(key) && probe.getUmwId() == null) { - QueryBuilder<Umwelt> builder = - new QueryBuilder<Umwelt>( - repository.entityManager("stamm"), - Umwelt.class); - int length = value.toString().length() > 80 ? 80 : value.toString().length(); - builder.and("umweltBereich", value.toString().substring(0, length)); - List<Umwelt> umwelt = - (List<Umwelt>)repository.filter( - builder.getQuery(), - "stamm").getData(); - probe.setUmwId(umwelt.get(0).getId()); - } - else if ("umweltbereich_c".equals(key) && probe.getUmwId() != null){ - this.warnings.add(new ReportItem(key, value.toString(), 672)); - } - - if ("deskriptoren".equals(key)) { - probe.setMediaDesk(value.toString()); - } - - if ("testdaten".equals(key)) { - if (!value.toString().equals("0")) { - probe.setTest(true); - } - else { - probe.setTest(false); - } - } - - if ("medium".equals(key)) { - probe.setMedia(value.toString()); - } - - if ("probenart".equals(key)) { - QueryBuilder<Probenart> builder = - new QueryBuilder<Probenart>( - repository.entityManager("stamm"), - Probenart.class); - builder.and("probenart", value.toString()); - List<Probenart> probenart = - (List<Probenart>)repository.filter( - builder.getQuery(), - "stamm").getData(); - probe.setProbenartId(probenart.get(0).getId()); - } - return probe; - } - - /** - * Add an attribute to the given ProbeTranslation object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param probeTranslation The entity object. - * @return The updated entity. - * - @SuppressWarnings("unchecked") - public ProbeTranslation addAttribute( - String key, - Object value, - ProbeTranslation probeTranslation - ) { - if ("probe_id".equals(key)) { - QueryBuilder<ProbeTranslation> builder = - new QueryBuilder<ProbeTranslation>( - repository.entityManager("land"), ProbeTranslation.class); - builder.and("probeIdAlt", value); - Response response = - repository.filter(builder.getQuery(), "land"); - List<ProbeTranslation> info = (List<ProbeTranslation>)response.getData(); - if (info != null && info.size() > 0) { - errors.add(new ReportItem("probe_id", value.toString(), 671)); - return null; - } - probeTranslation.setProbeIdAlt(value.toString()); - } - return probeTranslation; - }*/ - - /** - * Add an attribute to the given LKommentarP object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param kommentar The entity object. - * @return The updated entity object. - */ - public KommentarP addAttribute( - String key, - Object value, - KommentarP kommentar - ) { - DateFormat format = new SimpleDateFormat("yyyyMMdd HHmm"); - String v = value.toString(); - String erzeuger = v.substring(1, 6); - String date = v.substring(8, 21); - Date d; - try { - d = format.parse(date); - kommentar.setDatum(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - String text = v.substring(23, v.length() -1); - kommentar.setMstId(erzeuger); - kommentar.setText(text); - return kommentar; - } - - /** - * Add an attribute to the given LKommentarM object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param kommentar The entity object. - * @return The updated entity object. - */ - public KommentarM addAttribute( - String key, - Object value, - KommentarM kommentar - ) { - DateFormat format = new SimpleDateFormat("yyyyMMdd HHmm"); - String v = value.toString(); - String erzeuger = v.substring(1, 6); - String date = v.substring(8, 21); - Date d; - try { - d = format.parse(date); - kommentar.setDatum(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - String text = v.substring(23, v.length() -1); - kommentar.setMstId(erzeuger); - kommentar.setText(text); - return kommentar; - } - - /** - * Add an attribute to the given LMessung object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param messung The entity object. - * @return The updated entity object. - */ - public Messung addAttribute( - String key, - Object value, - Messung messung - ) { - DateFormat format = new SimpleDateFormat("yyyyMMdd HHmm"); - if ("nebenprobennummer".equals(key)) { - messung.setNebenprobenNr(value.toString()); - } - else if ("mess_datum_uhrzeit".equals(key)) { - try { - Date d = format.parse(value.toString()); - messung.setMesszeitpunkt(new Timestamp(d.getTime())); - } - catch (ParseException e) { - this.warnings.add(new ReportItem(key, value.toString(), 674)); - } - } - else if ("messzeit_sekunden".equals(key)) { - Integer i = Integer.valueOf(value.toString()); - messung.setMessdauer(i); - } - else if ("messmethode_s".equals(key)) { - messung.setMmtId(value.toString()); - } - else if ("bearbeitungsstatus".equals(key)) { - //ignored.!? - } - else if ("erfassung_abgeschlossen".equals(key)) { - if(!value.toString().equals("0")) { - messung.setFertig(true); - } - else { - messung.setFertig(false); - } - } - return messung; - } - - /** - * Add an attribute to the given MessungTranslation object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param mt The entity object. - * @return The updated entity. - * - public MessungTranslation addAttribute( - String key, - Object value, - MessungTranslation mt - ) { - if ("messungs_id".equals(key)) { - mt.setMessungsIdAlt(Integer.valueOf(value.toString())); - } - return mt; - } - */ - - /** - * Add an attribute to the given LMesswert object. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param messwert The entity object. - * @return The updated entity object. - */ - @SuppressWarnings("unchecked") - public Messwert addAttribute( - String key, - Object value, - Messwert messwert - ) { - Pattern p = Pattern.compile( - "(\".+\")( .+ )(\".+\")( .*)( .{1,12})( .{1,9})(.{0,9})(.{0,3})"); - //TODO Does not perfectly match... Use better matching for floats. - Matcher m = p.matcher(value.toString()); - if (m.matches()) { - String messgroesse = m.group(1).substring(1, m.group(1).length() - 1); - String wert = m.group(2); - String einheit = m.group(3).substring(1, m.group(3).length() - 1); - if (wert.startsWith(" <")) { - wert = wert.substring(2); - messwert.setGrenzwertueberschreitung(false); - } - else if (wert.startsWith(" >")) { - wert = wert.substring(2); - messwert.setGrenzwertueberschreitung(true); - } - messwert.setMesswert(Double.valueOf(wert)); - - QueryBuilder<MessEinheit> builder = - new QueryBuilder<MessEinheit>( - repository.entityManager("stamm"), - MessEinheit.class); - builder.and("einheit", einheit); - List<MessEinheit> messeinheit = - (List<MessEinheit>)repository.filter( - builder.getQuery(), - "stamm").getData(); - if (messeinheit.isEmpty()) { - this.errors.add(new ReportItem("messeinheit", "null", 673)); - return null; - } - else { - messwert.setMehId(messeinheit.get(0).getId()); - } - - QueryBuilder<Messgroesse> mgBuilder = - new QueryBuilder<Messgroesse>( - repository.entityManager("stamm"), - Messgroesse.class); - mgBuilder.and("messgroesse", messgroesse); - List<Messgroesse> messgroessen = - (List<Messgroesse>)repository.filter( - mgBuilder.getQuery(), - "stamm").getData(); - - if (messgroessen.isEmpty()) { - this.errors.add(new ReportItem("messgroesse", "null", 673)); - return null; - } - else { - messwert.setMessgroesseId(messgroessen.get(0).getId()); - } - } - return messwert; - } - - /** - * Add an attribute to the OrtCreator. The creator is used to build the - * two objects Ort and LOrt. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param ort The creator object. - * @return The updated creator object. - */ - public OrtCreator addAttribute( - String key, - Object value, - OrtCreator ort - ) { - if ("ort_code".equals(key)) { - ort.setOrtCode(value.toString()); - } - if ("ort_typ".equals(key)) { - ort.setOrtTyp(value.toString()); - } - if ("ort_zusatz".equals(key)) { - ort.setZusatztext(value.toString()); - } - if ("ort_land_lang".equals(key)) { - ort.setLandLang(value.toString()); - } - if ("ort_land_kurz".equals(key)) { - ort.setLandKurz(value.toString()); - } - if ("ort_land_s".equals(key)) { - ort.setLandS(value.toString()); - } - if ("ort_gemeindeschlüssel".equals(key)) { - ort.setGemSchluessel(value.toString()); - } - if ("ort_bezeichnung".equals(key)) { - ort.setBezeichnung(value.toString()); - } - if ("ort_beschreibung".equals(key)) { - ort.setBeschreibung(value.toString()); - } - if ("ort_nuts_code".equals(key)) { - ort.setNuts(value.toString()); - } - if ("ort_hoehe_land".equals(key)) { - ort.setHoehe(value.toString()); - } - if ("ort_koordinaten".equals(key)) { - ort.setKoordinaten(value.toString()); - } - if ("ort_koordinaten_s".equals(key)) { - ort.setKoordinatenS(value.toString()); - } - return ort; - } - - /** - * Add an attribute to the given LZusatzwert object. - * - * @param lKey The key mapping to a object member. - * @param value The value to set. - * @param wert The entity object. - * @return The updated entity object. - */ - @SuppressWarnings("unchecked") - public ZusatzWert addAttribute( - String lKey, - Object value, - ZusatzWert wert - ) { - String v = value.toString().substring(1); - int ndx = v.indexOf("\""); - String groesse = v.substring(0, ndx); - v = v.substring(ndx + 2); - ndx = v.indexOf(" "); - String w = v.substring(0, ndx); - v = v.substring(ndx + 2); - ndx = v.indexOf("\""); - String fehler = v.substring(ndx + 2); - - QueryBuilder<ProbenZusatz> builder = - new QueryBuilder<ProbenZusatz>( - repository.entityManager("stamm"), - ProbenZusatz.class); - builder.and("zusatzwert", groesse); - List<ProbenZusatz> zusatz= - (List<ProbenZusatz>)repository.filter( - builder.getQuery(), - "stamm").getData(); - - if (zusatz == null || zusatz.isEmpty()) { - this.errors.add(new ReportItem(lKey, "zusatzwert", 673)); - return null; - } - wert.setPzsId(zusatz.get(0).getId()); - wert.setMesswertPzs(Double.valueOf(w)); - wert.setMessfehler(Float.valueOf(fehler)); - return wert; - } - - /** - * Add an attribute to the given LZusatzwert object. - * - * @param lKey The key mapping to a object member. - * @param value The value to set. - * @param wert The entity object. - * @return The updated entity object. - */ - public ZusatzWert addAttributeS( - String lKey, - Object value, - ZusatzWert wert - ) { - String v = value.toString().substring(1); - int ndx = v.indexOf("\""); - String groesse = v.substring(0, ndx); - v = v.substring(ndx + 2); - ndx = v.indexOf(" "); - String w = v.substring(0, ndx); - v = v.substring(ndx + 2); - ndx = v.indexOf(" "); - String fehler = v.substring(ndx + 2); - wert.setPzsId(groesse); - wert.setMesswertPzs(Double.valueOf(w)); - wert.setMessfehler(Float.valueOf(fehler)); - return wert; - } - - /** - * @return the warnings - */ - public List<ReportItem> getWarnings() { - return warnings; - } - - /** - * @return the errors - */ - public List<ReportItem> getErrors() { - return errors; - } - - public void reset() { - errors = new ArrayList<ReportItem>(); - warnings = new ArrayList<ReportItem>(); - } -}
--- a/src/main/java/de/intevation/lada/importer/laf/EntryFormat.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -import java.util.regex.Pattern; - -/** - * An EntryFormat describes the internal structure of LAF-based key-value pairs. - * The pattern is a regular expression used to match the value in the LAF - * importer. - * The entry formats are defined in a config file - * (see wiki-doc: https://bfs-intern.intevation.de/Server/Importer). - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class EntryFormat -{ - private String key; - private Pattern pattern; - private Object defaultValue; - - /** - * Default constructor to create a new EntryFormat object. - */ - public EntryFormat() { - } - - /** - * @return the key. - */ - public String getKey() { - return key; - } - - /** - * @param key The key to set. - */ - public void setKey(String key) { - this.key = key; - } - - /** - * @return the pattern - */ - public Pattern getPattern() { - return pattern; - } - - /** - * @param pattern The pattern to set. - */ - public void setPattern(Pattern pattern) { - this.pattern = pattern; - } - - /** - * @return the default value. - */ - public Object getDefaultValue() { - return defaultValue; - } - - /** - * @param defaultValue the default value to set. - */ - public void setDefaultValue(Object defaultValue) { - this.defaultValue = defaultValue; - } -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/importer/laf/LafDataTypes.java Fri Sep 30 14:05:28 2016 +0200 @@ -0,0 +1,65 @@ +package de.intevation.lada.importer.laf; + +public class LafDataTypes { + + public static String BOOL = "[01]"; + + public static String C1 = "[\\S ]{0,1}"; + public static String C2 = "[\\S ]{0,2}"; + public static String C3 = "[\\S ]{0,3}"; + public static String C4 = "[\\S ]{0,4}"; + public static String C5 = "[\\S ]{0,5}"; + public static String C6 = "[\\S ]{0,6}"; + public static String C7 = "[\\S ]{0,7}"; + public static String C8 = "[\\S ]{0,8}"; + public static String C9 = "[\\S ]{0,9}"; + public static String C10 = "[\\S ]{0,10}"; + public static String C16 = "[\\S ]{0,16}"; + public static String C20 = "[\\S ]{0,20}"; + public static String C21 = "[\\S ]{0,21}"; + public static String C22 = "[\\S ]{0,22}"; + public static String C26 = "[\\S ]{0,26}"; + public static String C_STAR = "[\\S ]{0,}"; + + public static String SC1 = "\\S{1}"; + public static String SC2 = "\\S{2}"; + public static String SC3 = "\\S{3}"; + public static String SC4 = "\\S{4}"; + public static String SC5 = "\\S{5}"; + public static String SC6 = "\\S{6}"; + public static String SC7 = "\\S{7}"; + public static String SC8 = "\\S{8}"; + public static String SC9 = "\\S{9}"; + public static String SC10 = "\\S{10}"; + + public static String MC50 = "[^\"]{0,50}"; + public static String MC300 = "[^\"]{0,300}"; + + public static String I1 = "\\d{0,1}"; + public static String I2 = "\\d{0,2}"; + public static String I3 = "\\d{0,3}"; + public static String I4 = "\\d{0,4}"; + public static String I5 = "\\d{0,5}"; + public static String I6 = "\\d{0,6}"; + public static String I7 = "\\d{0,7}"; + public static String I8 = "\\d{0,8}"; + public static String I9 = "\\d{0,9}"; + public static String I10 = "\\d{0,10}"; + + public static String F9 = "<?[-+]?[0-9]*[.,]?[0-9]+([eE][-+]?[0-9]+)?"; + public static String F10 = "<?[-+]?[0-9]*[.,]?[0-9]+([eE][-+]?[0-9]+)?"; + public static String F12 = "<?[-+]?[0-9]*[.,]?[0-9]+([eE][-+]?[0-9]+)?"; + + public static String SI1 = "\\d{1}"; + public static String SI2 = "\\d{2}"; + public static String SI3 = "\\d{3}"; + public static String SI4 = "\\d{4}"; + public static String SI5 = "\\d{5}"; + public static String SI6 = "\\d{6}"; + public static String SI7 = "\\d{7}"; + public static String SI8 = "\\d{8}"; + public static String SI9 = "\\d{9}"; + + public static String D8 = "[12][0-9][0-9][0-9][01][0-9][0-3][0-9]"; + public static String T4 = "[0-2][0-9][0-5][0-9]"; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/importer/laf/LafErrorListener.java Fri Sep 30 14:05:28 2016 +0200 @@ -0,0 +1,35 @@ +package de.intevation.lada.importer.laf; + +import java.util.ArrayList; +import java.util.List; + +import org.antlr.v4.runtime.BaseErrorListener; +import org.antlr.v4.runtime.RecognitionException; +import org.antlr.v4.runtime.Recognizer; + +import de.intevation.lada.importer.ReportItem; + +public class LafErrorListener extends BaseErrorListener { + public static LafErrorListener INSTANCE = + new LafErrorListener(); + + private List<ReportItem> errors = new ArrayList<ReportItem>(); + + @Override + public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, + int line, int charPositionInLine, + String msg, RecognitionException e) + { + String sourceName = e.getCtx().getText(); + ReportItem err = new ReportItem(); + err.setKey(sourceName); + err.setValue(line + ":" + charPositionInLine + " - " + e.getOffendingToken().getText()); + err.setCode(670); + this.errors.add(err); + System.err.println(err.getKey() + " - " +err.getValue() + " - " + err.getCode()); + } + + public List<ReportItem> getErrors() { + return this.errors; + } +}
--- a/src/main/java/de/intevation/lada/importer/laf/LafFormat.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -import java.io.IOException; -import java.io.InputStream; -import java.io.StringReader; -import java.util.LinkedList; -import java.util.List; -import java.util.regex.Pattern; - -import javax.json.Json; -import javax.json.JsonArray; -import javax.json.JsonException; -import javax.json.JsonObject; -import javax.json.JsonReader; - -/** - * The LAFFormat reads the config file - * (https://bfs-intern.intevation.de/Server/Importer) and creates format - * objects for each entry. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class LafFormat -{ - private JsonObject fileContent; - - /** - * Reads the config file. - * - * @param fileName Path to the config file. - * @return success - */ - public boolean readConfigFile(String fileName) { - try { - InputStream inputStream = - LafFormat.class.getResourceAsStream(fileName); - int ch; - StringBuilder builder = new StringBuilder(); - while((ch = inputStream.read()) != -1) { - builder.append((char)ch); - } - JsonReader reader = - Json.createReader(new StringReader(builder.toString())); - fileContent = reader.readObject(); - return true; - } - catch (IOException ioe) { - return false; - } - catch (JsonException je) { - return false; - } - } - - /** - * Returns a List of EntryFormat for the requested entity type. - * The Entity type can be one of: - * * "probe" - * * "messung" - * * "ort" - * - * @param dataType The entity type - * @return List of entry formats defined for the requested type. - */ - public List<EntryFormat> getFormat(String dataType) { - List<EntryFormat> formats = new LinkedList<EntryFormat>(); - try { - JsonArray block = fileContent.getJsonArray(dataType); - for (int i = 0; i < block.size(); i++) { - JsonObject jEntry = block.getJsonObject(i); - EntryFormat entry = new EntryFormat(); - entry.setKey(jEntry.getString("key")); - Pattern pattern = - Pattern.compile( - jEntry.getString("regex"), - Pattern.MULTILINE); - entry.setPattern(pattern); - entry.setDefaultValue(jEntry.get("default")); - formats.add(entry); - } - return formats; - } - catch (JsonException e) { - return null; - } - } -}
--- a/src/main/java/de/intevation/lada/importer/laf/LafImporter.java Tue Sep 20 16:01:02 2016 +0200 +++ b/src/main/java/de/intevation/lada/importer/laf/LafImporter.java Fri Sep 30 14:05:28 2016 +0200 @@ -1,98 +1,77 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ package de.intevation.lada.importer.laf; -import java.util.ArrayList; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.inject.Inject; +import org.antlr.v4.runtime.ANTLRInputStream; +import org.antlr.v4.runtime.CommonTokenStream; +import org.antlr.v4.runtime.tree.ParseTree; +import org.antlr.v4.runtime.tree.ParseTreeWalker; +import org.apache.log4j.Logger; + import de.intevation.lada.importer.ImportConfig; import de.intevation.lada.importer.ImportFormat; import de.intevation.lada.importer.Importer; import de.intevation.lada.importer.ReportItem; import de.intevation.lada.util.auth.UserInfo; -/** - * LAF importer implements Importer to read LAF formatted files. - * The importer parses the files and extracts probe objects and their children - * and persists them in the database. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ @ImportConfig(format=ImportFormat.LAF) -public class LafImporter implements Importer { - - /** - * The parser used for this importer. - */ - @Inject - private LafParser parser; +public class LafImporter implements Importer{ - private Map<String, List<ReportItem>> warnings; - private Map<String, List<ReportItem>> errors; + @Inject + private Logger logger; - /** - * Default constructor. - */ - public LafImporter() { + @Inject + private LafObjectMapper mapper; + + private Map<String, List<ReportItem>> errors = new HashMap<String, List<ReportItem>>(); + private Map<String, List<ReportItem>> warnings = new HashMap<String, List<ReportItem>>(); + + public void doImport(String lafString, UserInfo userInfo) { + errors = new HashMap<String, List<ReportItem>>(); warnings = new HashMap<String, List<ReportItem>>(); - errors = new HashMap<String, List<ReportItem>>(); - } - /** - * @return the warnings - */ - @Override - public Map<String, List<ReportItem>> getWarnings() { - return warnings; + InputStream is = new ByteArrayInputStream(lafString.getBytes(StandardCharsets.UTF_8)); + try { + ANTLRInputStream ais = new ANTLRInputStream(is); + LafLexer lexer = new LafLexer(ais); + CommonTokenStream cts = new CommonTokenStream(lexer); + LafParser parser = new LafParser(cts); + LafErrorListener errorListener = LafErrorListener.INSTANCE; + parser.addErrorListener(errorListener); + ParseTree tree = parser.probendatei(); + LafObjectListener listener = new LafObjectListener(); + ParseTreeWalker walker = new ParseTreeWalker(); + walker.walk(listener, tree); + logger.debug("Parsed Proben: " + listener.getData().count()); + errors.put("parser", errorListener.getErrors()); + errors.putAll(listener.getErrors()); + mapper.mapObjects(listener.getData()); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } } - /** - * @return the errors - */ - @Override - public Map<String, List<ReportItem>> getErrors() { - return errors; - } - - /** - * Reset the errors and warnings. Use this before calling doImport() - * to have a clean error and warning report. - */ @Override public void reset() { - parser.reset(); - warnings = new HashMap<String, List<ReportItem>>(); - errors = new HashMap<String, List<ReportItem>>(); + } - /** - * Start the import. - * - * @param content The laf data as string. - * @param userInfo The user information. - */ @Override - public void doImport(String content, UserInfo userInfo) { - this.warnings.clear(); - this.errors.clear(); - this.parser.reset(); - boolean success = parser.parse(userInfo, content); - if (!success) { - List<ReportItem> report = new ArrayList<ReportItem>(); - report.add(new ReportItem("parser", "no success", 660)); - errors.put("parser", report); - warnings.put("parser", new ArrayList<ReportItem>()); - } - this.warnings.putAll(this.parser.getWarnings()); - this.errors.putAll(this.parser.getErrors()); + public Map<String, List<ReportItem>> getWarnings() { + return this.errors; + } + + @Override + public Map<String, List<ReportItem>> getErrors() { + return this.warnings; } }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java Fri Sep 30 14:05:28 2016 +0200 @@ -0,0 +1,2526 @@ +package de.intevation.lada.importer.laf; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.antlr.v4.runtime.ParserRuleContext; +import org.antlr.v4.runtime.tree.ErrorNode; +import org.antlr.v4.runtime.tree.TerminalNode; + +import de.intevation.lada.importer.ReportItem; + +public class LafObjectListener extends LafBaseListener { + + LafRawData data; + LafRawData.Probe currentProbe; + LafRawData.Messung currentMessung; + Map<String, List<ReportItem>> errors; + List<ReportItem> currentErrors; + + public LafObjectListener() { + data = new LafRawData(); + errors = new HashMap<String, List<ReportItem>>(); + currentErrors = new ArrayList<ReportItem>(); + } + + public LafRawData getData() { + return data; + } + + /** + * @return the errors + */ + public Map<String, List<ReportItem>> getErrors() { + return errors; + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbendatei(LafParser.ProbendateiContext ctx) { + System.out.println("entering probe-datei"); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void exitProbendatei(LafParser.ProbendateiContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterEnd(LafParser.EndContext ctx) { + if (currentProbe != null) { + data.addProbe(currentProbe); + String identifier = currentProbe.getAttributes().get("PROBE_ID"); + identifier = identifier == null ? currentProbe.getAttributes().get("PROBEN_NR") : null; + identifier = identifier == null ? currentProbe.getAttributes().get("HAUPTPROBEN_NR") : "not identified"; + errors.put(identifier, currentErrors); + currentErrors.clear(); + currentProbe = null; + } + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbe(LafParser.ProbeContext ctx) { + if (currentMessung != null) { + currentProbe.addMessung(currentMessung); + currentMessung = null; + } + currentProbe = data.new Probe(); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void exitProbe(LafParser.ProbeContext ctx) { + data.addProbe(currentProbe); + String identifier = currentProbe.getAttributes().get("PROBE_ID"); + identifier = identifier == null ? currentProbe.getAttributes().get("PROBEN_NR") : null; + identifier = identifier == null ? currentProbe.getAttributes().get("HAUPTPROBEN_NR") : "not identified"; + errors.put(identifier, currentErrors); + currentErrors.clear(); + currentProbe = null; + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterDb(LafParser.DbContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUs(LafParser.UsContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMp(LafParser.MpContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUb(LafParser.UbContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterRei(LafParser.ReiContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPh(LafParser.PhContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPg(LafParser.PgContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPk(LafParser.PkContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterZb(LafParser.ZbContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPzb(LafParser.PzbContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPkom(LafParser.PkomContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterSdm(LafParser.SdmContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPnh(LafParser.PnhContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUh(LafParser.UhContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void exitUh(LafParser.UhContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUg(LafParser.UgContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUk(LafParser.UkContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessung(LafParser.MessungContext ctx) { + if (currentMessung != null) { + currentProbe.addMessung(currentMessung); + } + currentMessung = data.new Messung(); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void exitMessung(LafParser.MessungContext ctx) { + currentProbe.addMessung(currentMessung); + currentMessung = null; + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMm(LafParser.MmContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMw(LafParser.MwContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPn(LafParser.PnContext ctx) { + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUebertragungsformat(LafParser.UebertragungsformatContext ctx) { + System.out.println(ctx.getChild(0) + ": " + ctx.getChild(1)); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterVersion(LafParser.VersionContext ctx) { + System.out.println(ctx.getChild(0) + ": " + ctx.getChild(1)); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterDatenbasis(LafParser.DatenbasisContext ctx) { + String value = ctx.getChild(1).toString(); + // Trim double qoutes. + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C6)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterDatenbasis_s(LafParser.Datenbasis_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SI2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterNetzkennung(LafParser.NetzkennungContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterErzeuger(LafParser.ErzeugerContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterStaat_der_messstelle_lang(LafParser.Staat_der_messstelle_langContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterStaat_der_messstelle_kurz(LafParser.Staat_der_messstelle_kurzContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterStaat_der_messstelle_s(LafParser.Staat_der_messstelle_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SI8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessstelle(LafParser.MessstelleContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SC5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesslabor(LafParser.MesslaborContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SC5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbe_id(LafParser.Probe_idContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C16)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessungs_id(LafParser.Messungs_idContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProben_nr(LafParser.Proben_nrContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterHauptprobennummer(LafParser.HauptprobennummerContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C20)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterNebenprobennummer(LafParser.NebenprobennummerContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessprogramm_c(LafParser.Messprogramm_cContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessprogramm_s(LafParser.Messprogramm_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SC1)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessprogramm_land(LafParser.Messprogramm_landContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C3)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenahmeinstitution(LafParser.ProbenahmeinstitutionContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenart(LafParser.ProbenartContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C1)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterZeitbasis(LafParser.ZeitbasisContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterZeitbasis_s(LafParser.Zeitbasis_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SI1)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterSoll_datum_uhrzeit_a(LafParser.Soll_datum_uhrzeit_aContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterSoll_datum_uhrzeit_e(LafParser.Soll_datum_uhrzeit_eContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUrsprungs_datum_uhrzeit(LafParser.Ursprungs_datum_uhrzeitContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenahme_datum_uhrzeit_a(LafParser.Probenahme_datum_uhrzeit_aContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenahme_datum_uhrzeit_e(LafParser.Probenahme_datum_uhrzeit_eContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUmweltbereich_c(LafParser.Umweltbereich_cContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterUmweltbereich_s(LafParser.Umweltbereich_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SC3)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterDeskriptoren(LafParser.DeskriptorenContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C26)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterRei_programmpunkt(LafParser.Rei_programmpunktContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C10)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterRei_programmpunktgruppe(LafParser.Rei_programmpunktgruppeContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C21)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterReferenz_datum_uhrzeit(LafParser.Referenz_datum_uhrzeitContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterTestdaten(LafParser.TestdatenContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.BOOL)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterSzenario(LafParser.SzenarioContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C20)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterSek_datenbasis(LafParser.Sek_datenbasisContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterSek_datenbasis_s(LafParser.Sek_datenbasis_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SI2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_herkunftsland_lang(LafParser.U_herkunftsland_langContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_herkunftsland_kurz(LafParser.U_herkunftsland_kurzContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_herkunftsland_s(LafParser.U_herkunftsland_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SI8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_gemeindeschluessel(LafParser.U_gemeindeschluesselContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_gemeindename(LafParser.U_gemeindenameContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_orts_zusatzkennzahl(LafParser.U_orts_zusatzkennzahlContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I3)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_koordinaten(LafParser.U_koordinatenContext ctx) { + String art = ctx.getChild(1).toString(); + art = art.replaceAll("\"", ""); + if (!art.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(art); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord1 = ctx.getChild(3).toString(); + koord1 = koord1.replaceAll("\"", ""); + if (!koord1.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord1); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord2 = ctx.getChild(5).toString(); + koord2 = koord2.replaceAll("\"", ""); + if (!koord2.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord2); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + art + " " + koord1 + " " + koord2); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_koordinaten_s(LafParser.U_koordinaten_sContext ctx) { + String art = ctx.getChild(1).toString(); + art = art.replaceAll("\"", ""); + if (!art.matches(LafDataTypes.SI2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(art); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord1 = ctx.getChild(3).toString(); + koord1 = koord1.replaceAll("\"", ""); + if (!koord1.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord1); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord2 = ctx.getChild(5).toString(); + koord2 = koord2.replaceAll("\"", ""); + if (!koord2.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord2); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + art + " " + koord1 + " " + koord2); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_orts_zusatzcode(LafParser.U_orts_zusatzcodeContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_orts_zusatztext(LafParser.U_orts_zusatztextContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.MC50)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterU_nuts_code(LafParser.U_nuts_codeContext ctx) { + System.out.println(ctx.exception.getMessage()); + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I10)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "ursprungsort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_herkunftsland_lang(LafParser.P_herkunftsland_langContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_herkunftsland_kurz(LafParser.P_herkunftsland_kurzContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_herkunftsland_s(LafParser.P_herkunftsland_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SI8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_gemeindeschluessel(LafParser.P_gemeindeschluesselContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_gemeindename(LafParser.P_gemeindenameContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_orts_zusatzkennzahl(LafParser.P_orts_zusatzkennzahlContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I3)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_koordinaten(LafParser.P_koordinatenContext ctx) { + String art = ctx.getChild(1).toString(); + art = art.replaceAll("\"", ""); + if (!art.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(art); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord1 = ctx.getChild(3).toString(); + koord1 = koord1.replaceAll("\"", ""); + if (!koord1.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord1); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord2 = ctx.getChild(5).toString(); + koord2 = koord2.replaceAll("\"", ""); + if (!koord2.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord2); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + art + " " + koord1 + " " + koord2); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_koordinaten_s(LafParser.P_koordinaten_sContext ctx) { + String art = ctx.getChild(1).toString(); + art = art.replaceAll("\"", ""); + if (!art.matches(LafDataTypes.SI2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(art); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord1 = ctx.getChild(3).toString(); + koord1 = koord1.replaceAll("\"", ""); + if (!koord1.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord1); + err.setCode(670); + currentErrors.add(err);; + return; + } + String koord2 = ctx.getChild(5).toString(); + koord2 = koord2.replaceAll("\"", ""); + if (!koord2.matches(LafDataTypes.C22)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(koord2); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + art + " " + koord1 + " " + koord2); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_orts_zusatzcode(LafParser.P_orts_zusatzcodeContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_orts_zusatztext(LafParser.P_orts_zusatztextContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.MC50)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_nuts_code(LafParser.P_nuts_codeContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I10)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_site_id(LafParser.P_site_idContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_site_name(LafParser.P_site_nameContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_hoehe_nn(LafParser.P_hoehe_nnContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.F10)) { + System.out.println("F10 does not match in hoehe_nn"); + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterP_hoehe_land(LafParser.P_hoehe_landContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.F10)) { + System.out.println("F10 does not match in hoehe_land"); + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + // TODO: Add to "entnahmeort" + //currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMehrzweckfeld(LafParser.MehrzweckfeldContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.MC300)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + currentProbe.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMess_datum_uhrzeit(LafParser.Mess_datum_uhrzeitContext ctx) { + String date = ctx.getChild(1).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(3).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), date + ' ' + time); + System.out.println(ctx.getChild(0) + ": " + date + ' ' + time); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesszeit_sekunden(LafParser.Messzeit_sekundenContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.I8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessmethode_c(LafParser.Messmethode_cContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMessmethode_s(LafParser.Messmethode_sContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.SC2)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterBearbeitungsstatus(LafParser.BearbeitungsstatusContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.C4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPep_flag(LafParser.Pep_flagContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.BOOL)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterErfassung_abgeschlossen(LafParser.Erfassung_abgeschlossenContext ctx) { + String value = ctx.getChild(1).toString(); + value = value.replaceAll("\"", ""); + if (!value.matches(LafDataTypes.BOOL)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(value); + err.setCode(670); + currentErrors.add(err);; + return; + } + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addAttribute(ctx.getChild(0).toString().toUpperCase(), value); + System.out.println(ctx.getChild(0) + ": " + value); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenzusatzbeschreibung(LafParser.ProbenzusatzbeschreibungContext ctx) { + // c7* f12 c9 f9 + String groesse = ctx.getChild(1).toString(); + groesse = groesse.replaceAll("\"", ""); + if (!groesse.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(groesse); + err.setCode(670); + currentErrors.add(err);; + return; + } + String wert = ctx.getChild(3).toString(); + wert = wert.replaceAll("\"", ""); + if (!wert.matches(LafDataTypes.F12)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(wert); + err.setCode(670); + currentErrors.add(err);; + return; + } + String einheit = ctx.getChild(5).toString(); + einheit = einheit.replaceAll("\"", ""); + if (!einheit.matches(LafDataTypes.C9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(einheit); + err.setCode(670); + currentErrors.add(err);; + return; + } + String fehler = ctx.getChild(7).toString(); + fehler = fehler.replaceAll("\"", ""); + if (!fehler.matches(LafDataTypes.F9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(fehler); + err.setCode(670); + currentErrors.add(err);; + return; + } + Map<String, String> zusatzwert = new HashMap<String, String>(); + zusatzwert.put("PZS", groesse); + zusatzwert.put("MESSWERT_PZS", wert); + zusatzwert.put("EINHEIT", einheit); + zusatzwert.put("MESSFEHLER", fehler); + currentProbe.addZusatzwert(zusatzwert); + System.out.println("PZS: " + groesse + " MW: " + wert); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterPzb_s(LafParser.Pzb_sContext ctx) { + // sc8* f12 si3 f9 + String groesse = ctx.getChild(1).toString(); + groesse = groesse.replaceAll("\"", ""); + if (!groesse.matches(LafDataTypes.SC8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(groesse); + err.setCode(670); + currentErrors.add(err);; + return; + } + String wert = ctx.getChild(3).toString(); + wert = wert.replaceAll("\"", ""); + if (!wert.matches(LafDataTypes.F12)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(wert); + err.setCode(670); + currentErrors.add(err);; + return; + } + String einheit = ctx.getChild(5).toString(); + einheit = einheit.replaceAll("\"", ""); + if (!einheit.matches(LafDataTypes.SI3)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(einheit); + err.setCode(670); + currentErrors.add(err);; + return; + } + String fehler = ctx.getChild(7).toString(); + fehler = fehler.replaceAll("\"", ""); + if (!fehler.matches(LafDataTypes.F9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(fehler); + err.setCode(670); + currentErrors.add(err);; + return; + } + Map<String, String> zusatzwert = new HashMap<String, String>(); + zusatzwert.put("PZS_ID", groesse); + zusatzwert.put("MESSWERT_PZS", wert); + zusatzwert.put("EINHEIT_ID", einheit); + zusatzwert.put("MESSFEHLER", fehler); + currentProbe.addZusatzwert(zusatzwert); + System.out.println("PZS: " + groesse + " MW: " + wert); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert(LafParser.MesswertContext ctx) { + // c50* f12 c9 f9** + List<String> children = new ArrayList<String>(); + for (int i = 0; i < ctx.getChildCount(); i++) { + if (!ctx.getChild(i).toString().startsWith(" ")) { + children.add(ctx.getChild(i).toString()); + } + } + String groesse = children.get(1); + groesse = groesse.replaceAll("\"", ""); + if (!groesse.matches(LafDataTypes.C_STAR)) { + System.out.println("mw - groesse: " + groesse); + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(groesse); + err.setCode(670); + currentErrors.add(err);; + return; + } + String wert = children.get(2); + wert = wert.replaceAll("\"", ""); + System.out.println(wert); + if (!wert.matches(LafDataTypes.F12)) { + System.out.println("mw: wert"); + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(wert); + err.setCode(670); + currentErrors.add(err);; + return; + } + String einheit = children.get(3); + einheit = einheit.replaceAll("\"", ""); + if (!einheit.matches(LafDataTypes.C9)) { + System.out.println("mw: einheit"); + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(einheit); + err.setCode(670); + currentErrors.add(err);; + return; + } + String fehler = null; + if (ctx.getChildCount() >= 8) { + fehler = children.get(4); + fehler = fehler.replaceAll("\"", ""); + if (!fehler.matches(LafDataTypes.F9)) { + System.out.println("mw: fehler"); + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(fehler); + err.setCode(670); + currentErrors.add(err);; + return; + } + } + Map<String, String> messwert = new HashMap<String, String>(); + messwert.put("MESSGROESSE", groesse); + messwert.put("MESSWERT", wert); + messwert.put("MEH", einheit); + messwert.put("MESSFEHLER", fehler); + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addMesswert(messwert); + System.out.println("GROESSE: " + groesse + " MW: " + wert); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_s(LafParser.Messwert_sContext ctx) { + // si8 f12 si3 f9** + List<String> children = new ArrayList<String>(); + for (int i = 0; i < ctx.getChildCount(); i++) { + if (!ctx.getChild(i).toString().startsWith(" ")) { + children.add(ctx.getChild(i).toString()); + } + } + String groesse = children.get(1); + groesse = groesse.replaceAll("\"", ""); + if (!groesse.matches(LafDataTypes.SI8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(groesse); + err.setCode(670); + currentErrors.add(err);; + return; + } + String wert = children.get(2); + wert = wert.replaceAll("\"", ""); + if (!wert.matches(LafDataTypes.F12)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(wert); + err.setCode(670); + currentErrors.add(err);; + return; + } + String einheit = children.get(3); + einheit = einheit.replaceAll("\"", ""); + if (!einheit.matches(LafDataTypes.SI3)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(einheit); + err.setCode(670); + currentErrors.add(err);; + return; + } + String fehler = null; + if (ctx.getChildCount() >= 8) { + fehler = children.get(4); + fehler = fehler.replaceAll("\"", ""); + if (!fehler.matches(LafDataTypes.F9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(fehler); + err.setCode(670); + currentErrors.add(err);; + return; + } + } + Map<String, String> messwert = new HashMap<String, String>(); + messwert.put("MESSGROESSE_ID", groesse); + messwert.put("MESSWERT", wert); + messwert.put("MEH_ID", einheit); + messwert.put("MESSFEHLER", fehler); + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addMesswert(messwert); + System.out.println("GROESSE: " + groesse + " MW: " + wert); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_i(LafParser.Messwert_iContext ctx) { + // C50* f12 c9 f9** f9** f9** c50* + List<String> children = new ArrayList<String>(); + for (int i = 0; i < ctx.getChildCount(); i++) { + if (!ctx.getChild(i).toString().startsWith(" ")) { + children.add(ctx.getChild(i).toString()); + } + } + String groesse = children.get(1); + groesse = groesse.replaceAll("\"", ""); + if (!groesse.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(groesse); + err.setCode(670); + currentErrors.add(err);; + return; + } + String wert = children.get(2); + wert = wert.replaceAll("\"", ""); + if (!wert.matches(LafDataTypes.F12)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(wert); + err.setCode(670); + currentErrors.add(err);; + return; + } + String einheit = children.get(3); + einheit = einheit.replaceAll("\"", ""); + if (!einheit.matches(LafDataTypes.C9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(einheit); + err.setCode(670); + currentErrors.add(err);; + return; + } + String fehler = null; + if (ctx.getChildCount() >= 8) { + fehler = children.get(4); + fehler = fehler.replaceAll("\"", ""); + if (!fehler.matches(LafDataTypes.F9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(fehler); + err.setCode(670); + currentErrors.add(err);; + return; + } + } + // TODO: handle all values + Map<String, String> messwert = new HashMap<String, String>(); + messwert.put("MESSGROESSE", groesse); + messwert.put("MESSWERT", wert); + messwert.put("MEH", einheit); + messwert.put("MESSFEHLER", fehler); + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addMesswert(messwert); + System.out.println("GROESSE: " + groesse + " MW: " + wert); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_g(LafParser.Messwert_gContext ctx) { + // C50* f12 c9 f9** f9** f9** c1 + List<String> children = new ArrayList<String>(); + for (int i = 0; i < ctx.getChildCount(); i++) { + if (!ctx.getChild(i).toString().startsWith(" ")) { + children.add(ctx.getChild(i).toString()); + } + } + String groesse = children.get(1); + groesse = groesse.replaceAll("\"", ""); + if (!groesse.matches(LafDataTypes.C_STAR)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(groesse); + err.setCode(670); + currentErrors.add(err);; + return; + } + String wert = children.get(2); + wert = wert.replaceAll("\"", ""); + if (!wert.matches(LafDataTypes.F12)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(wert); + err.setCode(670); + currentErrors.add(err);; + return; + } + String einheit = children.get(3); + einheit = einheit.replaceAll("\"", ""); + if (!einheit.matches(LafDataTypes.C9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(einheit); + err.setCode(670); + currentErrors.add(err);; + return; + } + String fehler = null; + if (ctx.getChildCount() >= 8) { + fehler = children.get(4); + fehler = fehler.replaceAll("\"", ""); + if (!fehler.matches(LafDataTypes.F9)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(fehler); + err.setCode(670); + currentErrors.add(err);; + return; + } + } + // TODO: handle all values + Map<String, String> messwert = new HashMap<String, String>(); + messwert.put("MESSGROESSE", groesse); + messwert.put("MESSWERT", wert); + messwert.put("MEH", einheit); + messwert.put("MESSFEHLER", fehler); + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addMesswert(messwert); + System.out.println("GROESSE: " + groesse + " MW: " + wert); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_nwg(LafParser.Messwert_nwgContext ctx) { + // C50* f12 c9 f9** f12 + // TODO + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_nwg_s(LafParser.Messwert_nwg_sContext ctx) { + // TODO + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_nwg_i(LafParser.Messwert_nwg_iContext ctx) { + // TODO + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterMesswert_nwg_g(LafParser.Messwert_nwg_gContext ctx) { + // TODO + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterKommentar(LafParser.KommentarContext ctx) { + // c5 d8 t4 mc300 + String mst = ctx.getChild(1).toString(); + mst = mst.replaceAll("\"", ""); + if (!mst.matches(LafDataTypes.C5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(mst); + err.setCode(670); + currentErrors.add(err);; + return; + } + String date = ctx.getChild(3).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(5).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + String text = ctx.getChild(7).toString(); + text = text.replaceAll("\"", ""); + if (!text.matches(LafDataTypes.MC300)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(text); + err.setCode(670); + currentErrors.add(err);; + return; + } + Map<String, String> kommentar = new HashMap<String, String>(); + kommentar.put("MST_ID", mst); + kommentar.put("DATE", date); + kommentar.put("TIME", time); + kommentar.put("TEXT", text); + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addKommentar(kommentar); + System.out.println("KOMMENTAR: " + text); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterKommentar_t(LafParser.Kommentar_tContext ctx) { + String text = ctx.getChild(1).toString(); + text = text.replaceAll("\"", ""); + if (!text.matches(LafDataTypes.MC300)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(text); + err.setCode(670); + currentErrors.add(err);; + return; + } + Map<String, String> kommentar = new HashMap<String, String>(); + kommentar.put("TEXT", text); + if (currentMessung == null) { + currentMessung = data.new Messung(); + } + currentMessung.addKommentar(kommentar); + System.out.println("KOMMENTAR: " + text); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenkommentar(LafParser.ProbenkommentarContext ctx) { + // c5 d8 t4 mc300 + String mst = ctx.getChild(1).toString(); + mst = mst.replaceAll("\"", ""); + if (!mst.matches(LafDataTypes.C5)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(mst); + err.setCode(670); + currentErrors.add(err);; + return; + } + String date = ctx.getChild(3).toString(); + date = date.replaceAll("\"", ""); + if (!date.matches(LafDataTypes.D8)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(date); + err.setCode(670); + currentErrors.add(err);; + return; + } + String time = ctx.getChild(5).toString(); + time = time.replaceAll("\"", ""); + if (!time.matches(LafDataTypes.T4)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(time); + err.setCode(670); + currentErrors.add(err);; + return; + } + String text = ctx.getChild(7).toString(); + text = text.replaceAll("\"", ""); + if (!text.matches(LafDataTypes.MC300)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(text); + err.setCode(670); + currentErrors.add(err);; + return; + } + Map<String, String> kommentar = new HashMap<String, String>(); + kommentar.put("MST_ID", mst); + kommentar.put("DATE", date); + kommentar.put("TIME", time); + kommentar.put("TEXT", text); + currentProbe.addKommentar(kommentar); + System.out.println("KOMMENTAR: " + text); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterProbenkommentar_t(LafParser.Probenkommentar_tContext ctx) { + String text = ctx.getChild(1).toString(); + text = text.replaceAll("\"", ""); + if (!text.matches(LafDataTypes.MC300)) { + ReportItem err = new ReportItem(); + err.setKey(ctx.getChild(0).toString()); + err.setValue(text); + err.setCode(670); + currentErrors.add(err);; + return; + } + Map<String, String> kommentar = new HashMap<String, String>(); + kommentar.put("TEXT", text); + currentProbe.addKommentar(kommentar); + System.out.println("KOMMENTAR: " + text); + } + + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void enterEveryRule(ParserRuleContext ctx) { + } + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void exitEveryRule(ParserRuleContext ctx) { + } + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void visitTerminal(TerminalNode node) { + } + /** + * {@inheritDoc} + * + * <p>The default implementation does nothing.</p> + */ + @Override public void visitErrorNode(ErrorNode node) { + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java Fri Sep 30 14:05:28 2016 +0200 @@ -0,0 +1,45 @@ +package de.intevation.lada.importer.laf; + +import java.util.List; +import java.util.Map; + +import javax.inject.Inject; + +import de.intevation.lada.importer.ReportItem; +import de.intevation.lada.util.annotation.RepositoryConfig; +import de.intevation.lada.util.data.Repository; +import de.intevation.lada.util.data.RepositoryType; + +public class LafObjectMapper { + + @Inject + @RepositoryConfig(type=RepositoryType.RW) + private Repository repository; + + private Map<String, List<ReportItem>> errors; + private Map<String, List<ReportItem>> warnings; + + public void mapObjects(LafRawData data) { + for (int i = 0; i < data.getProben().size(); i++) { + generate(data.getProben().get(i)); + } + } + + private void generate(LafRawData.Probe object) { + object.getAttributes(); + } + + /** + * @return the errors + */ + public Map<String, List<ReportItem>> getErrors() { + return errors; + } + + /** + * @return the warnings + */ + public Map<String, List<ReportItem>> getWarnings() { + return warnings; + } +}
--- a/src/main/java/de/intevation/lada/importer/laf/LafParser.java Tue Sep 20 16:01:02 2016 +0200 +++ b/src/main/java/de/intevation/lada/importer/laf/LafParser.java Fri Sep 30 14:05:28 2016 +0200 @@ -1,434 +1,8100 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ +// Generated from de/intevation/lada/importer/laf/Laf.g4 by ANTLR 4.5 package de.intevation.lada.importer.laf; - -import java.util.ArrayList; -import java.util.HashMap; +import org.antlr.v4.runtime.atn.*; +import org.antlr.v4.runtime.dfa.DFA; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.misc.*; +import org.antlr.v4.runtime.tree.*; import java.util.List; -import java.util.Map; - -import javax.inject.Inject; - -import org.apache.log4j.Logger; - -import de.intevation.lada.importer.ReportItem; -import de.intevation.lada.model.land.Messung; -import de.intevation.lada.model.land.Ortszuordnung; -import de.intevation.lada.model.land.Probe; -import de.intevation.lada.util.auth.UserInfo; -import de.intevation.lada.validation.Validator; -import de.intevation.lada.validation.Violation; -import de.intevation.lada.validation.annotation.ValidationConfig; - -/** - * This parser is used to read data in LAF based key-value pair structure. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class LafParser { - - /** - * The logger used in this class. - */ - @Inject - private Logger logger; - - /** - * The start tag of a dataset. - */ - private static final String PROBE_NEXT = "\n%PROBE%"; - - /** - * Flag used to write data into the database or not. - */ - private boolean dryRun; - - /** - * The data object producer. - */ - @Inject - private LafProducer producer; - - /** - * The writer used to create objects in the database. - */ - @Inject - private LafWriter writer; - - /** - * The validator for probe objects. - */ - @Inject - @ValidationConfig(type="Probe") - private Validator probeValidator; - - /** - * The validator for messung objects. - */ - @Inject - @ValidationConfig(type="Messung") - private Validator messungValidator; - - //@Inject - //@ValidationConfig(type="Messwert") - //private Validator messwertValidator; - - @Inject - @ValidationConfig(type="Ort") - private Validator ortValidator; - - /** - * The warnings. - */ - private Map<String, List<ReportItem>> warnings; - - /** - * The errors. - */ - private Map<String, List<ReportItem>> errors; - - /** - * Default constructor. - */ - public LafParser() { - this.warnings = new HashMap<String, List<ReportItem>>(); - this.errors = new HashMap<String, List<ReportItem>>(); - this.setDryRun(false); - } - - /** - * Read and parse the data and write the objects to the database. - * - * @param auth Authentication information - * @param laf The LAF formated data. - * @return success - * @throws LafParserException - */ - public boolean parse(UserInfo userInfo, String laf) { - if (!laf.startsWith("%PROBE%\n")) { - logger.debug("no %PROBE% tag found!"); - return false; - } - boolean parsed = false; - while (laf.startsWith("%PROBE%\n")) { - parsed = true; - int nextPos = laf.indexOf(PROBE_NEXT); - String single = ""; - if (nextPos > 0) { - single = laf.substring(0, nextPos + 1); - laf = laf.substring(nextPos + 1); - try { - readAll(single); - this.warnings.putAll(producer.getWarnings()); - this.errors.putAll(producer.getErrors()); - writeAll(userInfo); - this.producer.reset(); - this.writer.reset(); - } - catch (LafParserException lpe) { - Map<String, List<ReportItem>> pErr = producer.getErrors(); - if (pErr.isEmpty()) { - List<ReportItem> err = new ArrayList<ReportItem>(); - err.add(new ReportItem("parser", lpe.getMessage(), 673)); - this.errors.put("parser", err); - this.warnings.put("parser", new ArrayList<ReportItem>()); - } - else { - this.errors.putAll(pErr); - this.warnings.putAll(producer.getWarnings()); - } - this.producer.reset(); - continue; - } - } - else { - try { - readAll(laf); - this.warnings.putAll(producer.getWarnings()); - this.errors.putAll(producer.getErrors()); - writeAll(userInfo); - this.producer.reset(); - this.writer.reset(); - laf = ""; - } - catch (LafParserException lpe) { - Map<String, List<ReportItem>> pErr = producer.getErrors(); - if (pErr.isEmpty()) { - List<ReportItem> err = new ArrayList<ReportItem>(); - err.add(new ReportItem("parser", lpe.getMessage(), 673)); - this.errors.put("parser", err); - this.warnings.put("parser", new ArrayList<ReportItem>()); - } - else { - this.errors.putAll(pErr); - this.warnings.putAll(producer.getWarnings()); - } - this.producer.reset(); - laf = ""; - continue; - } - } - } - return parsed; - } - - /** - * Write all created objects to the database. - * - * @param auth The authentication information. - */ - private void writeAll(UserInfo userInfo) { - String probeId = producer.getProbe().getIdAlt() == null ? - "probeId" : producer.getProbe().getIdAlt().toString(); - Violation violation = validateProbe(producer.getProbe()); - if (violation.hasErrors()) { - ReportItem err = new ReportItem("validation", violation.getErrors(), null); - List<ReportItem> errs= new ArrayList<ReportItem>(); - errs.add(err); - this.appendErrors(probeId, errs); - return; - } - boolean p = writer.writeProbe(userInfo, producer.getProbe()); - if (!p) { - this.errors.put(probeId, writer.getErrors()); - return; - } - writer.writeProbenKommentare(userInfo, producer.getProbenKommentare()); - for (Messung messung: producer.getMessungen()) { - messung.setProbeId(producer.getProbe().getId()); - Violation mViolation = messungValidator.validate(messung); - if (mViolation.hasErrors()) { - ReportItem mErr = new ReportItem("validation", mViolation.getErrors(), null); - List<ReportItem> mErrs = new ArrayList<ReportItem>(); - mErrs.add(mErr); - this.appendErrors(probeId, mErrs); - continue; - } - boolean m = writer.writeMessungen(userInfo, messung); - if (!m) { - return; - } - } - writer.writeOrte(userInfo, producer.getOrte()); - for (Ortszuordnung ort: producer.getOrtszuordnungen()) { - Violation oViolation = ortValidator.validate(ort); - if (oViolation.hasErrors()) { - ReportItem oErr = new ReportItem("validation", oViolation.getErrors(), null); - List<ReportItem> oErrs = new ArrayList<ReportItem>(); - oErrs.add(oErr); - this.appendErrors(probeId, oErrs); - continue; - } - writer.writeOrtszuordung(userInfo, ort); - } - writer.writeMessungKommentare(userInfo, producer.getMessungsKommentare()); - writer.writeMesswerte(userInfo, producer.getMesswerte()); - Violation postViolation = validateProbe(producer.getProbe()); - if (postViolation.hasWarnings()) { - ReportItem warn = new ReportItem("validation", postViolation.getWarnings(), null); - List<ReportItem> warns = new ArrayList<ReportItem>(); - warns.add(warn); - this.appendWarnings(probeId, warns); - } - for (Messung messung: producer.getMessungen()) { - Violation mViolation = messungValidator.validate(messung); - if (mViolation.hasWarnings()) { - ReportItem mWarn = new ReportItem("validation", mViolation.getWarnings(), null); - List<ReportItem> mWarns = new ArrayList<ReportItem>(); - mWarns.add(mWarn); - this.appendWarnings(probeId, mWarns); - } - } - } - - /** - * Validate probe objects. - * - * @param probe The probe object to validate. - */ - private Violation validateProbe(Probe probe) { - return probeValidator.validate(probe); - } - - /** - * Read all attributes from a single probe block and create entity objects. - * - * @param content Single probe block enclosed by %PROBE% - * @throws LafParserException - */ - private void readAll(String content) - throws LafParserException - { - boolean key = false; - boolean value = false; - boolean header = false; - boolean white = false; - boolean string = false; - boolean multiValue = false; - String keyString = ""; - String valueString = ""; - String headerString = ""; - for (int i = 0; i < content.length(); i++) { - char current = content.charAt(i); - - if ((current == '"' || (current == ' ' && !string)) && - value && - i < content.length() - 1 && - (content.charAt(i + 1) != '\n' && - content.charAt(i + 1) != '\r')) { - multiValue = true; - } - - if (current == '"' && !string) { - string = true; - } - else if (current == '"' && string) { - string = false; - } - - if (current == ' ' && !value) { - key = false; - white = true; - continue; - } - else if (current != ' ' && - current != '\n' && - current != '\r' && - white) { - value = true; - white = false; - } - else if (current == '%' && !header && !value) { - headerString = ""; - producer.finishOrt(); - key = false; - header = true; - } - else if ((current == '\n' || current == '\r') && header) { - header = false; - key = true; - if (!dryRun) { - if (headerString.contains("MESSUNG")) { - producer.newMessung(); - } - if (headerString.contains("ORT")) { - producer.newOrt(); - } - } - if (headerString.contains("%ENDE%")) { - if (!dryRun) { - this.producer.newMessung(); - this.producer.newOrt(); - } - return; - } - continue; - } - else if (current == '"' && !value) { - value = true; - } - else if ((current == '\n' || current == '\r') && value && !string) { - if (!multiValue && valueString.startsWith("\"")) { - valueString = - valueString.substring(1, valueString.length() - 1); - } - value = false; - multiValue = false; - key = true; - if (!this.dryRun) { - producer.addData(keyString, valueString); - } - keyString = ""; - valueString = ""; - continue; - } - if ((current == '\n' || current == '\r') && (key || white)) { - ReportItem item = new ReportItem("parser", "general error", 603); - List<ReportItem> items = new ArrayList<ReportItem>(); - items.add(item); - this.appendErrors("parser", items); - return; - } - - if (key) { - keyString += current; - } - else if (value) { - valueString += current; - } - else if (header) { - headerString += current; - } - } - if (!dryRun) { - this.producer.newMessung(); - this.producer.newOrt(); - } - } - - /** - * @return if objects are or not. - */ - public boolean isDryRun() { - return dryRun; - } - - /** - * If set to true, no objects will be created and written to database. - * - * @param dryRun - */ - public void setDryRun(boolean dryRun) { - this.dryRun = dryRun; - } - - /** - * @return the warnings - */ - public Map<String, List<ReportItem>> getWarnings() { - return warnings; - } - - /** - * @return the errors - */ - public Map<String, List<ReportItem>> getErrors() { - return errors; - } - - /** - * Reset errors and warnings. - */ - public void reset() { - producer.reset(); - this.errors = new HashMap<String, List<ReportItem>>(); - this.warnings = new HashMap<String, List<ReportItem>>(); - } - - private void appendErrors(String probeId, List<ReportItem> errs) { - List<ReportItem> err = this.errors.get(probeId); - if (err == null) { - this.errors.put(probeId, errs); - } - else { - err.addAll(errs); - this.errors.put(probeId, err); - } - } - - private void appendWarnings(String probeId, List<ReportItem> warns) { - List<ReportItem> warn = this.warnings.get(probeId); - if (warn == null) { - this.warnings.put(probeId, warns); - } - else { - warn.addAll(warns); - this.warnings.put(probeId, warn); - } - } -} +import java.util.Iterator; +import java.util.ArrayList; + +@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) +public class LafParser extends Parser { + static { RuntimeMetaData.checkVersion("4.5", RuntimeMetaData.VERSION); } + + protected static final DFA[] _decisionToDFA; + protected static final PredictionContextCache _sharedContextCache = + new PredictionContextCache(); + public static final int + T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, VERSION=6, UEBERTRAGUNGSFORMAT=7, + DATENBASIS=8, DATENBASIS_S=9, NETZKENNUNG=10, ERZEUGER=11, STAAT_DER_MESSSTELLE_LANG=12, + STAAT_DER_MESSSTELLE_KURZ=13, STAAT_DER_MESSSTELLE_S=14, MESSSTELLE=15, + MESSLABOR=16, PROBE_ID=17, MESSUNGS_ID=18, PROBEN_NR=19, HAUPTPROBENNUMMER=20, + NEBENPROBENNUMMER=21, MESSPROGRAMM_C=22, MESSPROGRAMM_S=23, MESSPROGRAMM_LAND=24, + PROBENAHMEINSTITUTION=25, PROBENART=26, ZEITBASIS=27, ZEITBASIS_S=28, + SOLL_DATUM_UHRZEIT_A=29, SOLL_DATUM_UHRZEIT_E=30, URSPRUNGS_DATUM_UHRZEIT=31, + PROBENAHME_DATUM_UHRZEIT_A=32, PROBENAHME_DATUM_UHRZEIT_E=33, UMWELTBEREICH_C=34, + UMWELTBEREICH_S=35, DESKRIPTOREN=36, REI_PROGRAMMPUNKT=37, REI_PROGRAMMPUNKTGRUPPE=38, + REFERENZ_DATUM_UHRZEIT=39, TESTDATEN=40, SZENARIO=41, SEK_DATENBASIS=42, + SEK_DATENBASIS_S=43, U_HERKUNFTSLAND_LANG=44, U_HERKUNFTSLAND_KURZ=45, + U_HERKUNFTSLAND_S=46, U_GEMEINDESCHLUESSEL=47, U_GEMEINDENAME=48, U_ORTS_ZUSATZKENNZAHL=49, + U_KOORDINATEN=50, U_KOORDINATEN_S=51, U_ORTS_ZUSATZCODE=52, U_ORTS_ZUSATZTEXT=53, + U_NUTS_CODE=54, P_HERKUNFTSLAND_LANG=55, P_HERKUNFTSLAND_KURZ=56, P_HERKUNFTSLAND_S=57, + P_GEMEINDESCHLUESSEL=58, P_GEMEINDENAME=59, P_ORTS_ZUSATZKENNZAHL=60, + P_KOORDINATEN=61, P_KOORDINATEN_S=62, P_ORTS_ZUSATZCODE=63, P_ORTS_ZUSATZTEXT=64, + P_NUTS_CODE=65, P_SITE_ID=66, P_SITE_NAME=67, P_HOEHE_NN=68, P_HOEHE_LAND=69, + MEHRZWECKFELD=70, MESS_DATUM_UHRZEIT=71, MESSZEIT_SEKUNDEN=72, MESSMETHODE_C=73, + MESSMETHODE_S=74, BEARBEITUNGSSTATUS=75, PEP_FLAG=76, ERFASSUNG_ABGESCHLOSSEN=77, + PROBENZUSATZBESCHREIBUNG=78, PZB_S=79, MESSWERT=80, MESSWERT_S=81, MESSWERT_I=82, + MESSWERT_G=83, MESSWERT_NWG=84, MESSWERT_NWG_S=85, MESSWERT_NWG_I=86, + MESSWERT_NWG_G=87, KOMMENTAR=88, KOMMENTAR_T=89, PROBENKOMMENTAR=90, PROBENKOMMENTAR_T=91, + WS=92, NEWLINE=93, STRING_ESC=94, STRING=95, C=96; + public static final int + RULE_probendatei = 0, RULE_end = 1, RULE_probe = 2, RULE_probedaten = 3, + RULE_messung = 4, RULE_mess_header = 5, RULE_messungdaten = 6, RULE_db = 7, + RULE_mp = 8, RULE_ub = 9, RULE_rei = 10, RULE_ph = 11, RULE_pg = 12, RULE_pk = 13, + RULE_zb = 14, RULE_pzb = 15, RULE_pkom = 16, RULE_sdm = 17, RULE_pnh = 18, + RULE_mm = 19, RULE_mw = 20, RULE_mess_kommentar = 21, RULE_pn = 22, RULE_us = 23, + RULE_ursprungsortdaten = 24, RULE_uh = 25, RULE_ug = 26, RULE_uk = 27, + RULE_version = 28, RULE_uebertragungsformat = 29, RULE_datenbasis = 30, + RULE_datenbasis_s = 31, RULE_netzkennung = 32, RULE_erzeuger = 33, RULE_staat_der_messstelle_lang = 34, + RULE_staat_der_messstelle_kurz = 35, RULE_staat_der_messstelle_s = 36, + RULE_messstelle = 37, RULE_messlabor = 38, RULE_probe_id = 39, RULE_messungs_id = 40, + RULE_proben_nr = 41, RULE_hauptprobennummer = 42, RULE_nebenprobennummer = 43, + RULE_messprogramm_c = 44, RULE_messprogramm_s = 45, RULE_messprogramm_land = 46, + RULE_probenahmeinstitution = 47, RULE_probenart = 48, RULE_zeitbasis = 49, + RULE_zeitbasis_s = 50, RULE_soll_datum_uhrzeit_a = 51, RULE_soll_datum_uhrzeit_e = 52, + RULE_ursprungs_datum_uhrzeit = 53, RULE_probenahme_datum_uhrzeit_a = 54, + RULE_probenahme_datum_uhrzeit_e = 55, RULE_umweltbereich_c = 56, RULE_umweltbereich_s = 57, + RULE_deskriptoren = 58, RULE_rei_programmpunkt = 59, RULE_rei_programmpunktgruppe = 60, + RULE_referenz_datum_uhrzeit = 61, RULE_testdaten = 62, RULE_szenario = 63, + RULE_sek_datenbasis = 64, RULE_sek_datenbasis_s = 65, RULE_u_herkunftsland_lang = 66, + RULE_u_herkunftsland_kurz = 67, RULE_u_herkunftsland_s = 68, RULE_u_gemeindeschluessel = 69, + RULE_u_gemeindename = 70, RULE_u_orts_zusatzkennzahl = 71, RULE_u_koordinaten = 72, + RULE_u_koordinaten_s = 73, RULE_u_orts_zusatzcode = 74, RULE_u_orts_zusatztext = 75, + RULE_u_nuts_code = 76, RULE_p_herkunftsland_lang = 77, RULE_p_herkunftsland_kurz = 78, + RULE_p_herkunftsland_s = 79, RULE_p_gemeindeschluessel = 80, RULE_p_gemeindename = 81, + RULE_p_orts_zusatzkennzahl = 82, RULE_p_koordinaten = 83, RULE_p_koordinaten_s = 84, + RULE_p_orts_zusatzcode = 85, RULE_p_orts_zusatztext = 86, RULE_p_nuts_code = 87, + RULE_p_site_id = 88, RULE_p_site_name = 89, RULE_p_hoehe_nn = 90, RULE_p_hoehe_land = 91, + RULE_mehrzweckfeld = 92, RULE_mess_datum_uhrzeit = 93, RULE_messzeit_sekunden = 94, + RULE_messmethode_c = 95, RULE_messmethode_s = 96, RULE_bearbeitungsstatus = 97, + RULE_pep_flag = 98, RULE_erfassung_abgeschlossen = 99, RULE_probenzusatzbeschreibung = 100, + RULE_pzb_s = 101, RULE_messwert = 102, RULE_messwert_s = 103, RULE_messwert_i = 104, + RULE_messwert_g = 105, RULE_messwert_nwg = 106, RULE_messwert_nwg_s = 107, + RULE_messwert_nwg_i = 108, RULE_messwert_nwg_g = 109, RULE_kommentar = 110, + RULE_kommentar_t = 111, RULE_probenkommentar = 112, RULE_probenkommentar_t = 113; + public static final String[] ruleNames = { + "probendatei", "end", "probe", "probedaten", "messung", "mess_header", + "messungdaten", "db", "mp", "ub", "rei", "ph", "pg", "pk", "zb", "pzb", + "pkom", "sdm", "pnh", "mm", "mw", "mess_kommentar", "pn", "us", "ursprungsortdaten", + "uh", "ug", "uk", "version", "uebertragungsformat", "datenbasis", "datenbasis_s", + "netzkennung", "erzeuger", "staat_der_messstelle_lang", "staat_der_messstelle_kurz", + "staat_der_messstelle_s", "messstelle", "messlabor", "probe_id", "messungs_id", + "proben_nr", "hauptprobennummer", "nebenprobennummer", "messprogramm_c", + "messprogramm_s", "messprogramm_land", "probenahmeinstitution", "probenart", + "zeitbasis", "zeitbasis_s", "soll_datum_uhrzeit_a", "soll_datum_uhrzeit_e", + "ursprungs_datum_uhrzeit", "probenahme_datum_uhrzeit_a", "probenahme_datum_uhrzeit_e", + "umweltbereich_c", "umweltbereich_s", "deskriptoren", "rei_programmpunkt", + "rei_programmpunktgruppe", "referenz_datum_uhrzeit", "testdaten", "szenario", + "sek_datenbasis", "sek_datenbasis_s", "u_herkunftsland_lang", "u_herkunftsland_kurz", + "u_herkunftsland_s", "u_gemeindeschluessel", "u_gemeindename", "u_orts_zusatzkennzahl", + "u_koordinaten", "u_koordinaten_s", "u_orts_zusatzcode", "u_orts_zusatztext", + "u_nuts_code", "p_herkunftsland_lang", "p_herkunftsland_kurz", "p_herkunftsland_s", + "p_gemeindeschluessel", "p_gemeindename", "p_orts_zusatzkennzahl", "p_koordinaten", + "p_koordinaten_s", "p_orts_zusatzcode", "p_orts_zusatztext", "p_nuts_code", + "p_site_id", "p_site_name", "p_hoehe_nn", "p_hoehe_land", "mehrzweckfeld", + "mess_datum_uhrzeit", "messzeit_sekunden", "messmethode_c", "messmethode_s", + "bearbeitungsstatus", "pep_flag", "erfassung_abgeschlossen", "probenzusatzbeschreibung", + "pzb_s", "messwert", "messwert_s", "messwert_i", "messwert_g", "messwert_nwg", + "messwert_nwg_s", "messwert_nwg_i", "messwert_nwg_g", "kommentar", "kommentar_t", + "probenkommentar", "probenkommentar_t" + }; + + private static final String[] _LITERAL_NAMES = { + null, "'%ENDE%'", "'%PROBE%'", "'%MESSUNG%'", "'%URSPRUNGSORT%'", "' '" + }; + private static final String[] _SYMBOLIC_NAMES = { + null, null, null, null, null, null, "VERSION", "UEBERTRAGUNGSFORMAT", + "DATENBASIS", "DATENBASIS_S", "NETZKENNUNG", "ERZEUGER", "STAAT_DER_MESSSTELLE_LANG", + "STAAT_DER_MESSSTELLE_KURZ", "STAAT_DER_MESSSTELLE_S", "MESSSTELLE", "MESSLABOR", + "PROBE_ID", "MESSUNGS_ID", "PROBEN_NR", "HAUPTPROBENNUMMER", "NEBENPROBENNUMMER", + "MESSPROGRAMM_C", "MESSPROGRAMM_S", "MESSPROGRAMM_LAND", "PROBENAHMEINSTITUTION", + "PROBENART", "ZEITBASIS", "ZEITBASIS_S", "SOLL_DATUM_UHRZEIT_A", "SOLL_DATUM_UHRZEIT_E", + "URSPRUNGS_DATUM_UHRZEIT", "PROBENAHME_DATUM_UHRZEIT_A", "PROBENAHME_DATUM_UHRZEIT_E", + "UMWELTBEREICH_C", "UMWELTBEREICH_S", "DESKRIPTOREN", "REI_PROGRAMMPUNKT", + "REI_PROGRAMMPUNKTGRUPPE", "REFERENZ_DATUM_UHRZEIT", "TESTDATEN", "SZENARIO", + "SEK_DATENBASIS", "SEK_DATENBASIS_S", "U_HERKUNFTSLAND_LANG", "U_HERKUNFTSLAND_KURZ", + "U_HERKUNFTSLAND_S", "U_GEMEINDESCHLUESSEL", "U_GEMEINDENAME", "U_ORTS_ZUSATZKENNZAHL", + "U_KOORDINATEN", "U_KOORDINATEN_S", "U_ORTS_ZUSATZCODE", "U_ORTS_ZUSATZTEXT", + "U_NUTS_CODE", "P_HERKUNFTSLAND_LANG", "P_HERKUNFTSLAND_KURZ", "P_HERKUNFTSLAND_S", + "P_GEMEINDESCHLUESSEL", "P_GEMEINDENAME", "P_ORTS_ZUSATZKENNZAHL", "P_KOORDINATEN", + "P_KOORDINATEN_S", "P_ORTS_ZUSATZCODE", "P_ORTS_ZUSATZTEXT", "P_NUTS_CODE", + "P_SITE_ID", "P_SITE_NAME", "P_HOEHE_NN", "P_HOEHE_LAND", "MEHRZWECKFELD", + "MESS_DATUM_UHRZEIT", "MESSZEIT_SEKUNDEN", "MESSMETHODE_C", "MESSMETHODE_S", + "BEARBEITUNGSSTATUS", "PEP_FLAG", "ERFASSUNG_ABGESCHLOSSEN", "PROBENZUSATZBESCHREIBUNG", + "PZB_S", "MESSWERT", "MESSWERT_S", "MESSWERT_I", "MESSWERT_G", "MESSWERT_NWG", + "MESSWERT_NWG_S", "MESSWERT_NWG_I", "MESSWERT_NWG_G", "KOMMENTAR", "KOMMENTAR_T", + "PROBENKOMMENTAR", "PROBENKOMMENTAR_T", "WS", "NEWLINE", "STRING_ESC", + "STRING", "C" + }; + public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); + + /** + * @deprecated Use {@link #VOCABULARY} instead. + */ + @Deprecated + public static final String[] tokenNames; + static { + tokenNames = new String[_SYMBOLIC_NAMES.length]; + for (int i = 0; i < tokenNames.length; i++) { + tokenNames[i] = VOCABULARY.getLiteralName(i); + if (tokenNames[i] == null) { + tokenNames[i] = VOCABULARY.getSymbolicName(i); + } + + if (tokenNames[i] == null) { + tokenNames[i] = "<INVALID>"; + } + } + } + + @Override + @Deprecated + public String[] getTokenNames() { + return tokenNames; + } + + @Override + + public Vocabulary getVocabulary() { + return VOCABULARY; + } + + @Override + public String getGrammarFileName() { return "Laf.g4"; } + + @Override + public String[] getRuleNames() { return ruleNames; } + + @Override + public String getSerializedATN() { return _serializedATN; } + + @Override + public ATN getATN() { return _ATN; } + + public LafParser(TokenStream input) { + super(input); + _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); + } + public static class ProbendateiContext extends ParserRuleContext { + public TerminalNode EOF() { return getToken(LafParser.EOF, 0); } + public List<ProbeContext> probe() { + return getRuleContexts(ProbeContext.class); + } + public ProbeContext probe(int i) { + return getRuleContext(ProbeContext.class,i); + } + public EndContext end() { + return getRuleContext(EndContext.class,0); + } + public ProbendateiContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probendatei; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbendatei(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbendatei(this); + } + } + + public final ProbendateiContext probendatei() throws RecognitionException { + ProbendateiContext _localctx = new ProbendateiContext(_ctx, getState()); + enterRule(_localctx, 0, RULE_probendatei); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(231); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__1) { + { + { + setState(228); + probe(); + } + } + setState(233); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(235); + _la = _input.LA(1); + if (_la==T__0) { + { + setState(234); + end(); + } + } + + setState(237); + match(EOF); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class EndContext extends ParserRuleContext { + public EndContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_end; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterEnd(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitEnd(this); + } + } + + public final EndContext end() throws RecognitionException { + EndContext _localctx = new EndContext(_ctx, getState()); + enterRule(_localctx, 2, RULE_end); + try { + enterOuterAlt(_localctx, 1); + { + setState(239); + match(T__0); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ProbeContext extends ParserRuleContext { + public List<ProbedatenContext> probedaten() { + return getRuleContexts(ProbedatenContext.class); + } + public ProbedatenContext probedaten(int i) { + return getRuleContext(ProbedatenContext.class,i); + } + public ProbeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probe; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbe(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbe(this); + } + } + + public final ProbeContext probe() throws RecognitionException { + ProbeContext _localctx = new ProbeContext(_ctx, getState()); + enterRule(_localctx, 4, RULE_probe); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(241); + match(T__1); + setState(243); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(242); + probedaten(); + } + } + setState(245); + _errHandler.sync(this); + _la = _input.LA(1); + } while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__2) | (1L << T__3) | (1L << VERSION) | (1L << UEBERTRAGUNGSFORMAT) | (1L << DATENBASIS) | (1L << DATENBASIS_S) | (1L << NETZKENNUNG) | (1L << ERZEUGER) | (1L << STAAT_DER_MESSSTELLE_LANG) | (1L << STAAT_DER_MESSSTELLE_KURZ) | (1L << STAAT_DER_MESSSTELLE_S) | (1L << MESSSTELLE) | (1L << MESSLABOR) | (1L << PROBE_ID) | (1L << MESSUNGS_ID) | (1L << PROBEN_NR) | (1L << HAUPTPROBENNUMMER) | (1L << NEBENPROBENNUMMER) | (1L << MESSPROGRAMM_C) | (1L << MESSPROGRAMM_S) | (1L << MESSPROGRAMM_LAND) | (1L << PROBENAHMEINSTITUTION) | (1L << PROBENART) | (1L << ZEITBASIS) | (1L << ZEITBASIS_S) | (1L << SOLL_DATUM_UHRZEIT_A) | (1L << SOLL_DATUM_UHRZEIT_E) | (1L << PROBENAHME_DATUM_UHRZEIT_A) | (1L << PROBENAHME_DATUM_UHRZEIT_E) | (1L << UMWELTBEREICH_C) | (1L << UMWELTBEREICH_S) | (1L << DESKRIPTOREN) | (1L << REI_PROGRAMMPUNKT) | (1L << REI_PROGRAMMPUNKTGRUPPE) | (1L << REFERENZ_DATUM_UHRZEIT) | (1L << TESTDATEN) | (1L << SZENARIO) | (1L << SEK_DATENBASIS) | (1L << P_HERKUNFTSLAND_LANG) | (1L << P_HERKUNFTSLAND_KURZ) | (1L << P_HERKUNFTSLAND_S) | (1L << P_GEMEINDESCHLUESSEL) | (1L << P_GEMEINDENAME) | (1L << P_ORTS_ZUSATZKENNZAHL) | (1L << P_KOORDINATEN) | (1L << P_KOORDINATEN_S) | (1L << P_ORTS_ZUSATZCODE))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (P_ORTS_ZUSATZTEXT - 64)) | (1L << (P_NUTS_CODE - 64)) | (1L << (P_SITE_ID - 64)) | (1L << (P_SITE_NAME - 64)) | (1L << (P_HOEHE_NN - 64)) | (1L << (P_HOEHE_LAND - 64)) | (1L << (MEHRZWECKFELD - 64)) | (1L << (MESS_DATUM_UHRZEIT - 64)) | (1L << (MESSZEIT_SEKUNDEN - 64)) | (1L << (MESSMETHODE_C - 64)) | (1L << (MESSMETHODE_S - 64)) | (1L << (BEARBEITUNGSSTATUS - 64)) | (1L << (PEP_FLAG - 64)) | (1L << (ERFASSUNG_ABGESCHLOSSEN - 64)) | (1L << (PROBENZUSATZBESCHREIBUNG - 64)) | (1L << (PZB_S - 64)) | (1L << (MESSWERT - 64)) | (1L << (KOMMENTAR - 64)) | (1L << (KOMMENTAR_T - 64)) | (1L << (PROBENKOMMENTAR - 64)) | (1L << (PROBENKOMMENTAR_T - 64)))) != 0) ); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ProbedatenContext extends ParserRuleContext { + public DbContext db() { + return getRuleContext(DbContext.class,0); + } + public VersionContext version() { + return getRuleContext(VersionContext.class,0); + } + public UebertragungsformatContext uebertragungsformat() { + return getRuleContext(UebertragungsformatContext.class,0); + } + public NetzkennungContext netzkennung() { + return getRuleContext(NetzkennungContext.class,0); + } + public ErzeugerContext erzeuger() { + return getRuleContext(ErzeugerContext.class,0); + } + public SdmContext sdm() { + return getRuleContext(SdmContext.class,0); + } + public MessstelleContext messstelle() { + return getRuleContext(MessstelleContext.class,0); + } + public MesslaborContext messlabor() { + return getRuleContext(MesslaborContext.class,0); + } + public Probe_idContext probe_id() { + return getRuleContext(Probe_idContext.class,0); + } + public PnhContext pnh() { + return getRuleContext(PnhContext.class,0); + } + public MpContext mp() { + return getRuleContext(MpContext.class,0); + } + public Messprogramm_landContext messprogramm_land() { + return getRuleContext(Messprogramm_landContext.class,0); + } + public ProbenahmeinstitutionContext probenahmeinstitution() { + return getRuleContext(ProbenahmeinstitutionContext.class,0); + } + public ProbenartContext probenart() { + return getRuleContext(ProbenartContext.class,0); + } + public ZbContext zb() { + return getRuleContext(ZbContext.class,0); + } + public Probenahme_datum_uhrzeit_aContext probenahme_datum_uhrzeit_a() { + return getRuleContext(Probenahme_datum_uhrzeit_aContext.class,0); + } + public Probenahme_datum_uhrzeit_eContext probenahme_datum_uhrzeit_e() { + return getRuleContext(Probenahme_datum_uhrzeit_eContext.class,0); + } + public Soll_datum_uhrzeit_aContext soll_datum_uhrzeit_a() { + return getRuleContext(Soll_datum_uhrzeit_aContext.class,0); + } + public Soll_datum_uhrzeit_eContext soll_datum_uhrzeit_e() { + return getRuleContext(Soll_datum_uhrzeit_eContext.class,0); + } + public UbContext ub() { + return getRuleContext(UbContext.class,0); + } + public DeskriptorenContext deskriptoren() { + return getRuleContext(DeskriptorenContext.class,0); + } + public ReiContext rei() { + return getRuleContext(ReiContext.class,0); + } + public Referenz_datum_uhrzeitContext referenz_datum_uhrzeit() { + return getRuleContext(Referenz_datum_uhrzeitContext.class,0); + } + public TestdatenContext testdaten() { + return getRuleContext(TestdatenContext.class,0); + } + public SzenarioContext szenario() { + return getRuleContext(SzenarioContext.class,0); + } + public Sek_datenbasisContext sek_datenbasis() { + return getRuleContext(Sek_datenbasisContext.class,0); + } + public UsContext us() { + return getRuleContext(UsContext.class,0); + } + public PhContext ph() { + return getRuleContext(PhContext.class,0); + } + public PgContext pg() { + return getRuleContext(PgContext.class,0); + } + public P_orts_zusatzkennzahlContext p_orts_zusatzkennzahl() { + return getRuleContext(P_orts_zusatzkennzahlContext.class,0); + } + public PkContext pk() { + return getRuleContext(PkContext.class,0); + } + public P_orts_zusatzcodeContext p_orts_zusatzcode() { + return getRuleContext(P_orts_zusatzcodeContext.class,0); + } + public P_orts_zusatztextContext p_orts_zusatztext() { + return getRuleContext(P_orts_zusatztextContext.class,0); + } + public P_nuts_codeContext p_nuts_code() { + return getRuleContext(P_nuts_codeContext.class,0); + } + public P_site_idContext p_site_id() { + return getRuleContext(P_site_idContext.class,0); + } + public P_site_nameContext p_site_name() { + return getRuleContext(P_site_nameContext.class,0); + } + public P_hoehe_nnContext p_hoehe_nn() { + return getRuleContext(P_hoehe_nnContext.class,0); + } + public P_hoehe_landContext p_hoehe_land() { + return getRuleContext(P_hoehe_landContext.class,0); + } + public MehrzweckfeldContext mehrzweckfeld() { + return getRuleContext(MehrzweckfeldContext.class,0); + } + public MessungContext messung() { + return getRuleContext(MessungContext.class,0); + } + public PzbContext pzb() { + return getRuleContext(PzbContext.class,0); + } + public PkomContext pkom() { + return getRuleContext(PkomContext.class,0); + } + public ProbedatenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probedaten; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbedaten(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbedaten(this); + } + } + + public final ProbedatenContext probedaten() throws RecognitionException { + ProbedatenContext _localctx = new ProbedatenContext(_ctx, getState()); + enterRule(_localctx, 6, RULE_probedaten); + try { + setState(289); + switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(247); + db(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(248); + version(); + } + break; + case 3: + enterOuterAlt(_localctx, 3); + { + setState(249); + uebertragungsformat(); + } + break; + case 4: + enterOuterAlt(_localctx, 4); + { + setState(250); + netzkennung(); + } + break; + case 5: + enterOuterAlt(_localctx, 5); + { + setState(251); + erzeuger(); + } + break; + case 6: + enterOuterAlt(_localctx, 6); + { + setState(252); + sdm(); + } + break; + case 7: + enterOuterAlt(_localctx, 7); + { + setState(253); + messstelle(); + } + break; + case 8: + enterOuterAlt(_localctx, 8); + { + setState(254); + messlabor(); + } + break; + case 9: + enterOuterAlt(_localctx, 9); + { + setState(255); + probe_id(); + } + break; + case 10: + enterOuterAlt(_localctx, 10); + { + setState(256); + pnh(); + } + break; + case 11: + enterOuterAlt(_localctx, 11); + { + setState(257); + mp(); + } + break; + case 12: + enterOuterAlt(_localctx, 12); + { + setState(258); + messprogramm_land(); + } + break; + case 13: + enterOuterAlt(_localctx, 13); + { + setState(259); + probenahmeinstitution(); + } + break; + case 14: + enterOuterAlt(_localctx, 14); + { + setState(260); + probenart(); + } + break; + case 15: + enterOuterAlt(_localctx, 15); + { + setState(261); + zb(); + } + break; + case 16: + enterOuterAlt(_localctx, 16); + { + setState(262); + probenahme_datum_uhrzeit_a(); + } + break; + case 17: + enterOuterAlt(_localctx, 17); + { + setState(263); + probenahme_datum_uhrzeit_e(); + } + break; + case 18: + enterOuterAlt(_localctx, 18); + { + setState(264); + soll_datum_uhrzeit_a(); + } + break; + case 19: + enterOuterAlt(_localctx, 19); + { + setState(265); + soll_datum_uhrzeit_e(); + } + break; + case 20: + enterOuterAlt(_localctx, 20); + { + setState(266); + ub(); + } + break; + case 21: + enterOuterAlt(_localctx, 21); + { + setState(267); + deskriptoren(); + } + break; + case 22: + enterOuterAlt(_localctx, 22); + { + setState(268); + rei(); + } + break; + case 23: + enterOuterAlt(_localctx, 23); + { + setState(269); + referenz_datum_uhrzeit(); + } + break; + case 24: + enterOuterAlt(_localctx, 24); + { + setState(270); + testdaten(); + } + break; + case 25: + enterOuterAlt(_localctx, 25); + { + setState(271); + szenario(); + } + break; + case 26: + enterOuterAlt(_localctx, 26); + { + setState(272); + sek_datenbasis(); + } + break; + case 27: + enterOuterAlt(_localctx, 27); + { + setState(273); + us(); + } + break; + case 28: + enterOuterAlt(_localctx, 28); + { + setState(274); + ph(); + } + break; + case 29: + enterOuterAlt(_localctx, 29); + { + setState(275); + pg(); + } + break; + case 30: + enterOuterAlt(_localctx, 30); + { + setState(276); + p_orts_zusatzkennzahl(); + } + break; + case 31: + enterOuterAlt(_localctx, 31); + { + setState(277); + pk(); + } + break; + case 32: + enterOuterAlt(_localctx, 32); + { + setState(278); + p_orts_zusatzcode(); + } + break; + case 33: + enterOuterAlt(_localctx, 33); + { + setState(279); + p_orts_zusatztext(); + } + break; + case 34: + enterOuterAlt(_localctx, 34); + { + setState(280); + p_nuts_code(); + } + break; + case 35: + enterOuterAlt(_localctx, 35); + { + setState(281); + p_site_id(); + } + break; + case 36: + enterOuterAlt(_localctx, 36); + { + setState(282); + p_site_name(); + } + break; + case 37: + enterOuterAlt(_localctx, 37); + { + setState(283); + p_hoehe_nn(); + } + break; + case 38: + enterOuterAlt(_localctx, 38); + { + setState(284); + p_hoehe_land(); + } + break; + case 39: + enterOuterAlt(_localctx, 39); + { + setState(285); + mehrzweckfeld(); + } + break; + case 40: + enterOuterAlt(_localctx, 40); + { + setState(286); + messung(); + } + break; + case 41: + enterOuterAlt(_localctx, 41); + { + setState(287); + pzb(); + } + break; + case 42: + enterOuterAlt(_localctx, 42); + { + setState(288); + pkom(); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MessungContext extends ParserRuleContext { + public Mess_headerContext mess_header() { + return getRuleContext(Mess_headerContext.class,0); + } + public List<MessungdatenContext> messungdaten() { + return getRuleContexts(MessungdatenContext.class); + } + public MessungdatenContext messungdaten(int i) { + return getRuleContext(MessungdatenContext.class,i); + } + public MessungContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messung; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessung(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessung(this); + } + } + + public final MessungContext messung() throws RecognitionException { + MessungContext _localctx = new MessungContext(_ctx, getState()); + enterRule(_localctx, 8, RULE_messung); + int _la; + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(292); + _la = _input.LA(1); + if (_la==T__2) { + { + setState(291); + mess_header(); + } + } + + setState(295); + _errHandler.sync(this); + _alt = 1; + do { + switch (_alt) { + case 1: + { + { + setState(294); + messungdaten(); + } + } + break; + default: + throw new NoViableAltException(this); + } + setState(297); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,5,_ctx); + } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Mess_headerContext extends ParserRuleContext { + public Mess_headerContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mess_header; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMess_header(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMess_header(this); + } + } + + public final Mess_headerContext mess_header() throws RecognitionException { + Mess_headerContext _localctx = new Mess_headerContext(_ctx, getState()); + enterRule(_localctx, 10, RULE_mess_header); + try { + enterOuterAlt(_localctx, 1); + { + setState(299); + match(T__2); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MessungdatenContext extends ParserRuleContext { + public Messungs_idContext messungs_id() { + return getRuleContext(Messungs_idContext.class,0); + } + public PnContext pn() { + return getRuleContext(PnContext.class,0); + } + public Mess_datum_uhrzeitContext mess_datum_uhrzeit() { + return getRuleContext(Mess_datum_uhrzeitContext.class,0); + } + public Messzeit_sekundenContext messzeit_sekunden() { + return getRuleContext(Messzeit_sekundenContext.class,0); + } + public MmContext mm() { + return getRuleContext(MmContext.class,0); + } + public BearbeitungsstatusContext bearbeitungsstatus() { + return getRuleContext(BearbeitungsstatusContext.class,0); + } + public Pep_flagContext pep_flag() { + return getRuleContext(Pep_flagContext.class,0); + } + public Erfassung_abgeschlossenContext erfassung_abgeschlossen() { + return getRuleContext(Erfassung_abgeschlossenContext.class,0); + } + public MesswertContext messwert() { + return getRuleContext(MesswertContext.class,0); + } + public Mess_kommentarContext mess_kommentar() { + return getRuleContext(Mess_kommentarContext.class,0); + } + public MessungdatenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messungdaten; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessungdaten(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessungdaten(this); + } + } + + public final MessungdatenContext messungdaten() throws RecognitionException { + MessungdatenContext _localctx = new MessungdatenContext(_ctx, getState()); + enterRule(_localctx, 12, RULE_messungdaten); + try { + setState(311); + switch (_input.LA(1)) { + case MESSUNGS_ID: + enterOuterAlt(_localctx, 1); + { + setState(301); + messungs_id(); + } + break; + case PROBEN_NR: + case NEBENPROBENNUMMER: + enterOuterAlt(_localctx, 2); + { + setState(302); + pn(); + } + break; + case MESS_DATUM_UHRZEIT: + enterOuterAlt(_localctx, 3); + { + setState(303); + mess_datum_uhrzeit(); + } + break; + case MESSZEIT_SEKUNDEN: + enterOuterAlt(_localctx, 4); + { + setState(304); + messzeit_sekunden(); + } + break; + case MESSMETHODE_C: + case MESSMETHODE_S: + enterOuterAlt(_localctx, 5); + { + setState(305); + mm(); + } + break; + case BEARBEITUNGSSTATUS: + enterOuterAlt(_localctx, 6); + { + setState(306); + bearbeitungsstatus(); + } + break; + case PEP_FLAG: + enterOuterAlt(_localctx, 7); + { + setState(307); + pep_flag(); + } + break; + case ERFASSUNG_ABGESCHLOSSEN: + enterOuterAlt(_localctx, 8); + { + setState(308); + erfassung_abgeschlossen(); + } + break; + case MESSWERT: + enterOuterAlt(_localctx, 9); + { + setState(309); + messwert(); + } + break; + case KOMMENTAR: + case KOMMENTAR_T: + enterOuterAlt(_localctx, 10); + { + setState(310); + mess_kommentar(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class DbContext extends ParserRuleContext { + public DatenbasisContext datenbasis() { + return getRuleContext(DatenbasisContext.class,0); + } + public Datenbasis_sContext datenbasis_s() { + return getRuleContext(Datenbasis_sContext.class,0); + } + public DbContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_db; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterDb(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitDb(this); + } + } + + public final DbContext db() throws RecognitionException { + DbContext _localctx = new DbContext(_ctx, getState()); + enterRule(_localctx, 14, RULE_db); + try { + setState(315); + switch (_input.LA(1)) { + case DATENBASIS: + enterOuterAlt(_localctx, 1); + { + setState(313); + datenbasis(); + } + break; + case DATENBASIS_S: + enterOuterAlt(_localctx, 2); + { + setState(314); + datenbasis_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MpContext extends ParserRuleContext { + public Messprogramm_cContext messprogramm_c() { + return getRuleContext(Messprogramm_cContext.class,0); + } + public Messprogramm_sContext messprogramm_s() { + return getRuleContext(Messprogramm_sContext.class,0); + } + public MpContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mp; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMp(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMp(this); + } + } + + public final MpContext mp() throws RecognitionException { + MpContext _localctx = new MpContext(_ctx, getState()); + enterRule(_localctx, 16, RULE_mp); + try { + setState(319); + switch (_input.LA(1)) { + case MESSPROGRAMM_C: + enterOuterAlt(_localctx, 1); + { + setState(317); + messprogramm_c(); + } + break; + case MESSPROGRAMM_S: + enterOuterAlt(_localctx, 2); + { + setState(318); + messprogramm_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UbContext extends ParserRuleContext { + public Umweltbereich_cContext umweltbereich_c() { + return getRuleContext(Umweltbereich_cContext.class,0); + } + public Umweltbereich_sContext umweltbereich_s() { + return getRuleContext(Umweltbereich_sContext.class,0); + } + public UbContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_ub; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUb(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUb(this); + } + } + + public final UbContext ub() throws RecognitionException { + UbContext _localctx = new UbContext(_ctx, getState()); + enterRule(_localctx, 18, RULE_ub); + try { + setState(323); + switch (_input.LA(1)) { + case UMWELTBEREICH_C: + enterOuterAlt(_localctx, 1); + { + setState(321); + umweltbereich_c(); + } + break; + case UMWELTBEREICH_S: + enterOuterAlt(_localctx, 2); + { + setState(322); + umweltbereich_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ReiContext extends ParserRuleContext { + public Rei_programmpunktContext rei_programmpunkt() { + return getRuleContext(Rei_programmpunktContext.class,0); + } + public Rei_programmpunktgruppeContext rei_programmpunktgruppe() { + return getRuleContext(Rei_programmpunktgruppeContext.class,0); + } + public ReiContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_rei; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterRei(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitRei(this); + } + } + + public final ReiContext rei() throws RecognitionException { + ReiContext _localctx = new ReiContext(_ctx, getState()); + enterRule(_localctx, 20, RULE_rei); + try { + setState(327); + switch (_input.LA(1)) { + case REI_PROGRAMMPUNKT: + enterOuterAlt(_localctx, 1); + { + setState(325); + rei_programmpunkt(); + } + break; + case REI_PROGRAMMPUNKTGRUPPE: + enterOuterAlt(_localctx, 2); + { + setState(326); + rei_programmpunktgruppe(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PhContext extends ParserRuleContext { + public P_herkunftsland_langContext p_herkunftsland_lang() { + return getRuleContext(P_herkunftsland_langContext.class,0); + } + public P_herkunftsland_kurzContext p_herkunftsland_kurz() { + return getRuleContext(P_herkunftsland_kurzContext.class,0); + } + public P_herkunftsland_sContext p_herkunftsland_s() { + return getRuleContext(P_herkunftsland_sContext.class,0); + } + public PhContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_ph; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPh(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPh(this); + } + } + + public final PhContext ph() throws RecognitionException { + PhContext _localctx = new PhContext(_ctx, getState()); + enterRule(_localctx, 22, RULE_ph); + try { + setState(332); + switch (_input.LA(1)) { + case P_HERKUNFTSLAND_LANG: + enterOuterAlt(_localctx, 1); + { + setState(329); + p_herkunftsland_lang(); + } + break; + case P_HERKUNFTSLAND_KURZ: + enterOuterAlt(_localctx, 2); + { + setState(330); + p_herkunftsland_kurz(); + } + break; + case P_HERKUNFTSLAND_S: + enterOuterAlt(_localctx, 3); + { + setState(331); + p_herkunftsland_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PgContext extends ParserRuleContext { + public P_gemeindeschluesselContext p_gemeindeschluessel() { + return getRuleContext(P_gemeindeschluesselContext.class,0); + } + public P_gemeindenameContext p_gemeindename() { + return getRuleContext(P_gemeindenameContext.class,0); + } + public PgContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pg; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPg(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPg(this); + } + } + + public final PgContext pg() throws RecognitionException { + PgContext _localctx = new PgContext(_ctx, getState()); + enterRule(_localctx, 24, RULE_pg); + try { + setState(336); + switch (_input.LA(1)) { + case P_GEMEINDESCHLUESSEL: + enterOuterAlt(_localctx, 1); + { + setState(334); + p_gemeindeschluessel(); + } + break; + case P_GEMEINDENAME: + enterOuterAlt(_localctx, 2); + { + setState(335); + p_gemeindename(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PkContext extends ParserRuleContext { + public P_koordinatenContext p_koordinaten() { + return getRuleContext(P_koordinatenContext.class,0); + } + public P_koordinaten_sContext p_koordinaten_s() { + return getRuleContext(P_koordinaten_sContext.class,0); + } + public PkContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pk; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPk(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPk(this); + } + } + + public final PkContext pk() throws RecognitionException { + PkContext _localctx = new PkContext(_ctx, getState()); + enterRule(_localctx, 26, RULE_pk); + try { + setState(340); + switch (_input.LA(1)) { + case P_KOORDINATEN: + enterOuterAlt(_localctx, 1); + { + setState(338); + p_koordinaten(); + } + break; + case P_KOORDINATEN_S: + enterOuterAlt(_localctx, 2); + { + setState(339); + p_koordinaten_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ZbContext extends ParserRuleContext { + public ZeitbasisContext zeitbasis() { + return getRuleContext(ZeitbasisContext.class,0); + } + public Zeitbasis_sContext zeitbasis_s() { + return getRuleContext(Zeitbasis_sContext.class,0); + } + public ZbContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_zb; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterZb(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitZb(this); + } + } + + public final ZbContext zb() throws RecognitionException { + ZbContext _localctx = new ZbContext(_ctx, getState()); + enterRule(_localctx, 28, RULE_zb); + try { + setState(344); + switch (_input.LA(1)) { + case ZEITBASIS: + enterOuterAlt(_localctx, 1); + { + setState(342); + zeitbasis(); + } + break; + case ZEITBASIS_S: + enterOuterAlt(_localctx, 2); + { + setState(343); + zeitbasis_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PzbContext extends ParserRuleContext { + public ProbenzusatzbeschreibungContext probenzusatzbeschreibung() { + return getRuleContext(ProbenzusatzbeschreibungContext.class,0); + } + public Pzb_sContext pzb_s() { + return getRuleContext(Pzb_sContext.class,0); + } + public PzbContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pzb; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPzb(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPzb(this); + } + } + + public final PzbContext pzb() throws RecognitionException { + PzbContext _localctx = new PzbContext(_ctx, getState()); + enterRule(_localctx, 30, RULE_pzb); + try { + setState(348); + switch (_input.LA(1)) { + case PROBENZUSATZBESCHREIBUNG: + enterOuterAlt(_localctx, 1); + { + setState(346); + probenzusatzbeschreibung(); + } + break; + case PZB_S: + enterOuterAlt(_localctx, 2); + { + setState(347); + pzb_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PkomContext extends ParserRuleContext { + public ProbenkommentarContext probenkommentar() { + return getRuleContext(ProbenkommentarContext.class,0); + } + public Probenkommentar_tContext probenkommentar_t() { + return getRuleContext(Probenkommentar_tContext.class,0); + } + public PkomContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pkom; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPkom(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPkom(this); + } + } + + public final PkomContext pkom() throws RecognitionException { + PkomContext _localctx = new PkomContext(_ctx, getState()); + enterRule(_localctx, 32, RULE_pkom); + try { + setState(352); + switch (_input.LA(1)) { + case PROBENKOMMENTAR: + enterOuterAlt(_localctx, 1); + { + setState(350); + probenkommentar(); + } + break; + case PROBENKOMMENTAR_T: + enterOuterAlt(_localctx, 2); + { + setState(351); + probenkommentar_t(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class SdmContext extends ParserRuleContext { + public Staat_der_messstelle_langContext staat_der_messstelle_lang() { + return getRuleContext(Staat_der_messstelle_langContext.class,0); + } + public Staat_der_messstelle_kurzContext staat_der_messstelle_kurz() { + return getRuleContext(Staat_der_messstelle_kurzContext.class,0); + } + public Staat_der_messstelle_sContext staat_der_messstelle_s() { + return getRuleContext(Staat_der_messstelle_sContext.class,0); + } + public SdmContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_sdm; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterSdm(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitSdm(this); + } + } + + public final SdmContext sdm() throws RecognitionException { + SdmContext _localctx = new SdmContext(_ctx, getState()); + enterRule(_localctx, 34, RULE_sdm); + try { + setState(357); + switch (_input.LA(1)) { + case STAAT_DER_MESSSTELLE_LANG: + enterOuterAlt(_localctx, 1); + { + setState(354); + staat_der_messstelle_lang(); + } + break; + case STAAT_DER_MESSSTELLE_KURZ: + enterOuterAlt(_localctx, 2); + { + setState(355); + staat_der_messstelle_kurz(); + } + break; + case STAAT_DER_MESSSTELLE_S: + enterOuterAlt(_localctx, 3); + { + setState(356); + staat_der_messstelle_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PnhContext extends ParserRuleContext { + public Proben_nrContext proben_nr() { + return getRuleContext(Proben_nrContext.class,0); + } + public HauptprobennummerContext hauptprobennummer() { + return getRuleContext(HauptprobennummerContext.class,0); + } + public PnhContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pnh; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPnh(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPnh(this); + } + } + + public final PnhContext pnh() throws RecognitionException { + PnhContext _localctx = new PnhContext(_ctx, getState()); + enterRule(_localctx, 36, RULE_pnh); + try { + setState(361); + switch (_input.LA(1)) { + case PROBEN_NR: + enterOuterAlt(_localctx, 1); + { + setState(359); + proben_nr(); + } + break; + case HAUPTPROBENNUMMER: + enterOuterAlt(_localctx, 2); + { + setState(360); + hauptprobennummer(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MmContext extends ParserRuleContext { + public Messmethode_cContext messmethode_c() { + return getRuleContext(Messmethode_cContext.class,0); + } + public Messmethode_sContext messmethode_s() { + return getRuleContext(Messmethode_sContext.class,0); + } + public MmContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mm; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMm(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMm(this); + } + } + + public final MmContext mm() throws RecognitionException { + MmContext _localctx = new MmContext(_ctx, getState()); + enterRule(_localctx, 38, RULE_mm); + try { + setState(365); + switch (_input.LA(1)) { + case MESSMETHODE_C: + enterOuterAlt(_localctx, 1); + { + setState(363); + messmethode_c(); + } + break; + case MESSMETHODE_S: + enterOuterAlt(_localctx, 2); + { + setState(364); + messmethode_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MwContext extends ParserRuleContext { + public MesswertContext messwert() { + return getRuleContext(MesswertContext.class,0); + } + public Messwert_sContext messwert_s() { + return getRuleContext(Messwert_sContext.class,0); + } + public Messwert_iContext messwert_i() { + return getRuleContext(Messwert_iContext.class,0); + } + public Messwert_gContext messwert_g() { + return getRuleContext(Messwert_gContext.class,0); + } + public Messwert_nwgContext messwert_nwg() { + return getRuleContext(Messwert_nwgContext.class,0); + } + public Messwert_nwg_sContext messwert_nwg_s() { + return getRuleContext(Messwert_nwg_sContext.class,0); + } + public Messwert_nwg_iContext messwert_nwg_i() { + return getRuleContext(Messwert_nwg_iContext.class,0); + } + public Messwert_nwg_gContext messwert_nwg_g() { + return getRuleContext(Messwert_nwg_gContext.class,0); + } + public MwContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mw; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMw(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMw(this); + } + } + + public final MwContext mw() throws RecognitionException { + MwContext _localctx = new MwContext(_ctx, getState()); + enterRule(_localctx, 40, RULE_mw); + try { + setState(375); + switch (_input.LA(1)) { + case MESSWERT: + enterOuterAlt(_localctx, 1); + { + setState(367); + messwert(); + } + break; + case MESSWERT_S: + enterOuterAlt(_localctx, 2); + { + setState(368); + messwert_s(); + } + break; + case MESSWERT_I: + enterOuterAlt(_localctx, 3); + { + setState(369); + messwert_i(); + } + break; + case MESSWERT_G: + enterOuterAlt(_localctx, 4); + { + setState(370); + messwert_g(); + } + break; + case MESSWERT_NWG: + enterOuterAlt(_localctx, 5); + { + setState(371); + messwert_nwg(); + } + break; + case MESSWERT_NWG_S: + enterOuterAlt(_localctx, 6); + { + setState(372); + messwert_nwg_s(); + } + break; + case MESSWERT_NWG_I: + enterOuterAlt(_localctx, 7); + { + setState(373); + messwert_nwg_i(); + } + break; + case MESSWERT_NWG_G: + enterOuterAlt(_localctx, 8); + { + setState(374); + messwert_nwg_g(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Mess_kommentarContext extends ParserRuleContext { + public KommentarContext kommentar() { + return getRuleContext(KommentarContext.class,0); + } + public Kommentar_tContext kommentar_t() { + return getRuleContext(Kommentar_tContext.class,0); + } + public Mess_kommentarContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mess_kommentar; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMess_kommentar(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMess_kommentar(this); + } + } + + public final Mess_kommentarContext mess_kommentar() throws RecognitionException { + Mess_kommentarContext _localctx = new Mess_kommentarContext(_ctx, getState()); + enterRule(_localctx, 42, RULE_mess_kommentar); + try { + setState(379); + switch (_input.LA(1)) { + case KOMMENTAR: + enterOuterAlt(_localctx, 1); + { + setState(377); + kommentar(); + } + break; + case KOMMENTAR_T: + enterOuterAlt(_localctx, 2); + { + setState(378); + kommentar_t(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class PnContext extends ParserRuleContext { + public Proben_nrContext proben_nr() { + return getRuleContext(Proben_nrContext.class,0); + } + public NebenprobennummerContext nebenprobennummer() { + return getRuleContext(NebenprobennummerContext.class,0); + } + public PnContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pn; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPn(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPn(this); + } + } + + public final PnContext pn() throws RecognitionException { + PnContext _localctx = new PnContext(_ctx, getState()); + enterRule(_localctx, 44, RULE_pn); + try { + setState(383); + switch (_input.LA(1)) { + case PROBEN_NR: + enterOuterAlt(_localctx, 1); + { + setState(381); + proben_nr(); + } + break; + case NEBENPROBENNUMMER: + enterOuterAlt(_localctx, 2); + { + setState(382); + nebenprobennummer(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UsContext extends ParserRuleContext { + public List<UrsprungsortdatenContext> ursprungsortdaten() { + return getRuleContexts(UrsprungsortdatenContext.class); + } + public UrsprungsortdatenContext ursprungsortdaten(int i) { + return getRuleContext(UrsprungsortdatenContext.class,i); + } + public UsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_us; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUs(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUs(this); + } + } + + public final UsContext us() throws RecognitionException { + UsContext _localctx = new UsContext(_ctx, getState()); + enterRule(_localctx, 46, RULE_us); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(385); + match(T__3); + setState(389); + _errHandler.sync(this); + _la = _input.LA(1); + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << U_HERKUNFTSLAND_LANG) | (1L << U_HERKUNFTSLAND_KURZ) | (1L << U_HERKUNFTSLAND_S) | (1L << U_GEMEINDESCHLUESSEL) | (1L << U_GEMEINDENAME) | (1L << U_ORTS_ZUSATZKENNZAHL) | (1L << U_KOORDINATEN) | (1L << U_KOORDINATEN_S) | (1L << U_ORTS_ZUSATZCODE) | (1L << U_ORTS_ZUSATZTEXT) | (1L << U_NUTS_CODE))) != 0)) { + { + { + setState(386); + ursprungsortdaten(); + } + } + setState(391); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UrsprungsortdatenContext extends ParserRuleContext { + public UhContext uh() { + return getRuleContext(UhContext.class,0); + } + public UgContext ug() { + return getRuleContext(UgContext.class,0); + } + public U_orts_zusatzkennzahlContext u_orts_zusatzkennzahl() { + return getRuleContext(U_orts_zusatzkennzahlContext.class,0); + } + public UkContext uk() { + return getRuleContext(UkContext.class,0); + } + public U_orts_zusatzcodeContext u_orts_zusatzcode() { + return getRuleContext(U_orts_zusatzcodeContext.class,0); + } + public U_orts_zusatztextContext u_orts_zusatztext() { + return getRuleContext(U_orts_zusatztextContext.class,0); + } + public U_nuts_codeContext u_nuts_code() { + return getRuleContext(U_nuts_codeContext.class,0); + } + public UrsprungsortdatenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_ursprungsortdaten; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUrsprungsortdaten(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUrsprungsortdaten(this); + } + } + + public final UrsprungsortdatenContext ursprungsortdaten() throws RecognitionException { + UrsprungsortdatenContext _localctx = new UrsprungsortdatenContext(_ctx, getState()); + enterRule(_localctx, 48, RULE_ursprungsortdaten); + try { + setState(399); + switch (_input.LA(1)) { + case U_HERKUNFTSLAND_LANG: + case U_HERKUNFTSLAND_KURZ: + case U_HERKUNFTSLAND_S: + enterOuterAlt(_localctx, 1); + { + setState(392); + uh(); + } + break; + case U_GEMEINDESCHLUESSEL: + case U_GEMEINDENAME: + enterOuterAlt(_localctx, 2); + { + setState(393); + ug(); + } + break; + case U_ORTS_ZUSATZKENNZAHL: + enterOuterAlt(_localctx, 3); + { + setState(394); + u_orts_zusatzkennzahl(); + } + break; + case U_KOORDINATEN: + case U_KOORDINATEN_S: + enterOuterAlt(_localctx, 4); + { + setState(395); + uk(); + } + break; + case U_ORTS_ZUSATZCODE: + enterOuterAlt(_localctx, 5); + { + setState(396); + u_orts_zusatzcode(); + } + break; + case U_ORTS_ZUSATZTEXT: + enterOuterAlt(_localctx, 6); + { + setState(397); + u_orts_zusatztext(); + } + break; + case U_NUTS_CODE: + enterOuterAlt(_localctx, 7); + { + setState(398); + u_nuts_code(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UhContext extends ParserRuleContext { + public U_herkunftsland_langContext u_herkunftsland_lang() { + return getRuleContext(U_herkunftsland_langContext.class,0); + } + public U_herkunftsland_kurzContext u_herkunftsland_kurz() { + return getRuleContext(U_herkunftsland_kurzContext.class,0); + } + public U_herkunftsland_sContext u_herkunftsland_s() { + return getRuleContext(U_herkunftsland_sContext.class,0); + } + public UhContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_uh; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUh(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUh(this); + } + } + + public final UhContext uh() throws RecognitionException { + UhContext _localctx = new UhContext(_ctx, getState()); + enterRule(_localctx, 50, RULE_uh); + try { + setState(404); + switch (_input.LA(1)) { + case U_HERKUNFTSLAND_LANG: + enterOuterAlt(_localctx, 1); + { + setState(401); + u_herkunftsland_lang(); + } + break; + case U_HERKUNFTSLAND_KURZ: + enterOuterAlt(_localctx, 2); + { + setState(402); + u_herkunftsland_kurz(); + } + break; + case U_HERKUNFTSLAND_S: + enterOuterAlt(_localctx, 3); + { + setState(403); + u_herkunftsland_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UgContext extends ParserRuleContext { + public U_gemeindeschluesselContext u_gemeindeschluessel() { + return getRuleContext(U_gemeindeschluesselContext.class,0); + } + public U_gemeindenameContext u_gemeindename() { + return getRuleContext(U_gemeindenameContext.class,0); + } + public UgContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_ug; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUg(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUg(this); + } + } + + public final UgContext ug() throws RecognitionException { + UgContext _localctx = new UgContext(_ctx, getState()); + enterRule(_localctx, 52, RULE_ug); + try { + setState(408); + switch (_input.LA(1)) { + case U_GEMEINDESCHLUESSEL: + enterOuterAlt(_localctx, 1); + { + setState(406); + u_gemeindeschluessel(); + } + break; + case U_GEMEINDENAME: + enterOuterAlt(_localctx, 2); + { + setState(407); + u_gemeindename(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UkContext extends ParserRuleContext { + public U_koordinatenContext u_koordinaten() { + return getRuleContext(U_koordinatenContext.class,0); + } + public U_koordinaten_sContext u_koordinaten_s() { + return getRuleContext(U_koordinaten_sContext.class,0); + } + public UkContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_uk; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUk(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUk(this); + } + } + + public final UkContext uk() throws RecognitionException { + UkContext _localctx = new UkContext(_ctx, getState()); + enterRule(_localctx, 54, RULE_uk); + try { + setState(412); + switch (_input.LA(1)) { + case U_KOORDINATEN: + enterOuterAlt(_localctx, 1); + { + setState(410); + u_koordinaten(); + } + break; + case U_KOORDINATEN_S: + enterOuterAlt(_localctx, 2); + { + setState(411); + u_koordinaten_s(); + } + break; + default: + throw new NoViableAltException(this); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class VersionContext extends ParserRuleContext { + public TerminalNode VERSION() { return getToken(LafParser.VERSION, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public VersionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_version; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterVersion(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitVersion(this); + } + } + + public final VersionContext version() throws RecognitionException { + VersionContext _localctx = new VersionContext(_ctx, getState()); + enterRule(_localctx, 56, RULE_version); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(414); + match(VERSION); + setState(415); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class UebertragungsformatContext extends ParserRuleContext { + public TerminalNode UEBERTRAGUNGSFORMAT() { return getToken(LafParser.UEBERTRAGUNGSFORMAT, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public UebertragungsformatContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_uebertragungsformat; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUebertragungsformat(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUebertragungsformat(this); + } + } + + public final UebertragungsformatContext uebertragungsformat() throws RecognitionException { + UebertragungsformatContext _localctx = new UebertragungsformatContext(_ctx, getState()); + enterRule(_localctx, 58, RULE_uebertragungsformat); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(417); + match(UEBERTRAGUNGSFORMAT); + setState(418); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class DatenbasisContext extends ParserRuleContext { + public TerminalNode DATENBASIS() { return getToken(LafParser.DATENBASIS, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public DatenbasisContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_datenbasis; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterDatenbasis(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitDatenbasis(this); + } + } + + public final DatenbasisContext datenbasis() throws RecognitionException { + DatenbasisContext _localctx = new DatenbasisContext(_ctx, getState()); + enterRule(_localctx, 60, RULE_datenbasis); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(420); + match(DATENBASIS); + setState(421); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Datenbasis_sContext extends ParserRuleContext { + public TerminalNode DATENBASIS_S() { return getToken(LafParser.DATENBASIS_S, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Datenbasis_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_datenbasis_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterDatenbasis_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitDatenbasis_s(this); + } + } + + public final Datenbasis_sContext datenbasis_s() throws RecognitionException { + Datenbasis_sContext _localctx = new Datenbasis_sContext(_ctx, getState()); + enterRule(_localctx, 62, RULE_datenbasis_s); + try { + enterOuterAlt(_localctx, 1); + { + setState(423); + match(DATENBASIS_S); + setState(424); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class NetzkennungContext extends ParserRuleContext { + public TerminalNode NETZKENNUNG() { return getToken(LafParser.NETZKENNUNG, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public NetzkennungContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_netzkennung; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterNetzkennung(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitNetzkennung(this); + } + } + + public final NetzkennungContext netzkennung() throws RecognitionException { + NetzkennungContext _localctx = new NetzkennungContext(_ctx, getState()); + enterRule(_localctx, 64, RULE_netzkennung); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(426); + match(NETZKENNUNG); + setState(427); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ErzeugerContext extends ParserRuleContext { + public TerminalNode ERZEUGER() { return getToken(LafParser.ERZEUGER, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public ErzeugerContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_erzeuger; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterErzeuger(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitErzeuger(this); + } + } + + public final ErzeugerContext erzeuger() throws RecognitionException { + ErzeugerContext _localctx = new ErzeugerContext(_ctx, getState()); + enterRule(_localctx, 66, RULE_erzeuger); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(429); + match(ERZEUGER); + setState(430); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Staat_der_messstelle_langContext extends ParserRuleContext { + public TerminalNode STAAT_DER_MESSSTELLE_LANG() { return getToken(LafParser.STAAT_DER_MESSSTELLE_LANG, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Staat_der_messstelle_langContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_staat_der_messstelle_lang; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterStaat_der_messstelle_lang(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitStaat_der_messstelle_lang(this); + } + } + + public final Staat_der_messstelle_langContext staat_der_messstelle_lang() throws RecognitionException { + Staat_der_messstelle_langContext _localctx = new Staat_der_messstelle_langContext(_ctx, getState()); + enterRule(_localctx, 68, RULE_staat_der_messstelle_lang); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(432); + match(STAAT_DER_MESSSTELLE_LANG); + setState(433); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Staat_der_messstelle_kurzContext extends ParserRuleContext { + public TerminalNode STAAT_DER_MESSSTELLE_KURZ() { return getToken(LafParser.STAAT_DER_MESSSTELLE_KURZ, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Staat_der_messstelle_kurzContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_staat_der_messstelle_kurz; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterStaat_der_messstelle_kurz(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitStaat_der_messstelle_kurz(this); + } + } + + public final Staat_der_messstelle_kurzContext staat_der_messstelle_kurz() throws RecognitionException { + Staat_der_messstelle_kurzContext _localctx = new Staat_der_messstelle_kurzContext(_ctx, getState()); + enterRule(_localctx, 70, RULE_staat_der_messstelle_kurz); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(435); + match(STAAT_DER_MESSSTELLE_KURZ); + setState(436); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Staat_der_messstelle_sContext extends ParserRuleContext { + public TerminalNode STAAT_DER_MESSSTELLE_S() { return getToken(LafParser.STAAT_DER_MESSSTELLE_S, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Staat_der_messstelle_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_staat_der_messstelle_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterStaat_der_messstelle_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitStaat_der_messstelle_s(this); + } + } + + public final Staat_der_messstelle_sContext staat_der_messstelle_s() throws RecognitionException { + Staat_der_messstelle_sContext _localctx = new Staat_der_messstelle_sContext(_ctx, getState()); + enterRule(_localctx, 72, RULE_staat_der_messstelle_s); + try { + enterOuterAlt(_localctx, 1); + { + setState(438); + match(STAAT_DER_MESSSTELLE_S); + setState(439); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MessstelleContext extends ParserRuleContext { + public TerminalNode MESSSTELLE() { return getToken(LafParser.MESSSTELLE, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public MessstelleContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messstelle; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessstelle(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessstelle(this); + } + } + + public final MessstelleContext messstelle() throws RecognitionException { + MessstelleContext _localctx = new MessstelleContext(_ctx, getState()); + enterRule(_localctx, 74, RULE_messstelle); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(441); + match(MESSSTELLE); + setState(442); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MesslaborContext extends ParserRuleContext { + public TerminalNode MESSLABOR() { return getToken(LafParser.MESSLABOR, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public MesslaborContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messlabor; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesslabor(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesslabor(this); + } + } + + public final MesslaborContext messlabor() throws RecognitionException { + MesslaborContext _localctx = new MesslaborContext(_ctx, getState()); + enterRule(_localctx, 76, RULE_messlabor); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(444); + match(MESSLABOR); + setState(445); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Probe_idContext extends ParserRuleContext { + public TerminalNode PROBE_ID() { return getToken(LafParser.PROBE_ID, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Probe_idContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probe_id; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbe_id(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbe_id(this); + } + } + + public final Probe_idContext probe_id() throws RecognitionException { + Probe_idContext _localctx = new Probe_idContext(_ctx, getState()); + enterRule(_localctx, 78, RULE_probe_id); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(447); + match(PROBE_ID); + setState(448); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messungs_idContext extends ParserRuleContext { + public TerminalNode MESSUNGS_ID() { return getToken(LafParser.MESSUNGS_ID, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messungs_idContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messungs_id; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessungs_id(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessungs_id(this); + } + } + + public final Messungs_idContext messungs_id() throws RecognitionException { + Messungs_idContext _localctx = new Messungs_idContext(_ctx, getState()); + enterRule(_localctx, 80, RULE_messungs_id); + try { + enterOuterAlt(_localctx, 1); + { + setState(450); + match(MESSUNGS_ID); + setState(451); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Proben_nrContext extends ParserRuleContext { + public TerminalNode PROBEN_NR() { return getToken(LafParser.PROBEN_NR, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Proben_nrContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_proben_nr; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProben_nr(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProben_nr(this); + } + } + + public final Proben_nrContext proben_nr() throws RecognitionException { + Proben_nrContext _localctx = new Proben_nrContext(_ctx, getState()); + enterRule(_localctx, 82, RULE_proben_nr); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(453); + match(PROBEN_NR); + setState(454); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class HauptprobennummerContext extends ParserRuleContext { + public TerminalNode HAUPTPROBENNUMMER() { return getToken(LafParser.HAUPTPROBENNUMMER, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public HauptprobennummerContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_hauptprobennummer; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterHauptprobennummer(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitHauptprobennummer(this); + } + } + + public final HauptprobennummerContext hauptprobennummer() throws RecognitionException { + HauptprobennummerContext _localctx = new HauptprobennummerContext(_ctx, getState()); + enterRule(_localctx, 84, RULE_hauptprobennummer); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(456); + match(HAUPTPROBENNUMMER); + setState(457); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class NebenprobennummerContext extends ParserRuleContext { + public TerminalNode NEBENPROBENNUMMER() { return getToken(LafParser.NEBENPROBENNUMMER, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public NebenprobennummerContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_nebenprobennummer; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterNebenprobennummer(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitNebenprobennummer(this); + } + } + + public final NebenprobennummerContext nebenprobennummer() throws RecognitionException { + NebenprobennummerContext _localctx = new NebenprobennummerContext(_ctx, getState()); + enterRule(_localctx, 86, RULE_nebenprobennummer); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(459); + match(NEBENPROBENNUMMER); + setState(460); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messprogramm_cContext extends ParserRuleContext { + public TerminalNode MESSPROGRAMM_C() { return getToken(LafParser.MESSPROGRAMM_C, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messprogramm_cContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messprogramm_c; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessprogramm_c(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessprogramm_c(this); + } + } + + public final Messprogramm_cContext messprogramm_c() throws RecognitionException { + Messprogramm_cContext _localctx = new Messprogramm_cContext(_ctx, getState()); + enterRule(_localctx, 88, RULE_messprogramm_c); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(462); + match(MESSPROGRAMM_C); + setState(463); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messprogramm_sContext extends ParserRuleContext { + public TerminalNode MESSPROGRAMM_S() { return getToken(LafParser.MESSPROGRAMM_S, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messprogramm_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messprogramm_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessprogramm_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessprogramm_s(this); + } + } + + public final Messprogramm_sContext messprogramm_s() throws RecognitionException { + Messprogramm_sContext _localctx = new Messprogramm_sContext(_ctx, getState()); + enterRule(_localctx, 90, RULE_messprogramm_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(465); + match(MESSPROGRAMM_S); + setState(466); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messprogramm_landContext extends ParserRuleContext { + public TerminalNode MESSPROGRAMM_LAND() { return getToken(LafParser.MESSPROGRAMM_LAND, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messprogramm_landContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messprogramm_land; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessprogramm_land(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessprogramm_land(this); + } + } + + public final Messprogramm_landContext messprogramm_land() throws RecognitionException { + Messprogramm_landContext _localctx = new Messprogramm_landContext(_ctx, getState()); + enterRule(_localctx, 92, RULE_messprogramm_land); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(468); + match(MESSPROGRAMM_LAND); + setState(469); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ProbenahmeinstitutionContext extends ParserRuleContext { + public TerminalNode PROBENAHMEINSTITUTION() { return getToken(LafParser.PROBENAHMEINSTITUTION, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public ProbenahmeinstitutionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenahmeinstitution; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenahmeinstitution(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenahmeinstitution(this); + } + } + + public final ProbenahmeinstitutionContext probenahmeinstitution() throws RecognitionException { + ProbenahmeinstitutionContext _localctx = new ProbenahmeinstitutionContext(_ctx, getState()); + enterRule(_localctx, 94, RULE_probenahmeinstitution); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(471); + match(PROBENAHMEINSTITUTION); + setState(472); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ProbenartContext extends ParserRuleContext { + public TerminalNode PROBENART() { return getToken(LafParser.PROBENART, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public ProbenartContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenart; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenart(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenart(this); + } + } + + public final ProbenartContext probenart() throws RecognitionException { + ProbenartContext _localctx = new ProbenartContext(_ctx, getState()); + enterRule(_localctx, 96, RULE_probenart); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(474); + match(PROBENART); + setState(475); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ZeitbasisContext extends ParserRuleContext { + public TerminalNode ZEITBASIS() { return getToken(LafParser.ZEITBASIS, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public ZeitbasisContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_zeitbasis; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterZeitbasis(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitZeitbasis(this); + } + } + + public final ZeitbasisContext zeitbasis() throws RecognitionException { + ZeitbasisContext _localctx = new ZeitbasisContext(_ctx, getState()); + enterRule(_localctx, 98, RULE_zeitbasis); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(477); + match(ZEITBASIS); + setState(478); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Zeitbasis_sContext extends ParserRuleContext { + public TerminalNode ZEITBASIS_S() { return getToken(LafParser.ZEITBASIS_S, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Zeitbasis_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_zeitbasis_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterZeitbasis_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitZeitbasis_s(this); + } + } + + public final Zeitbasis_sContext zeitbasis_s() throws RecognitionException { + Zeitbasis_sContext _localctx = new Zeitbasis_sContext(_ctx, getState()); + enterRule(_localctx, 100, RULE_zeitbasis_s); + try { + enterOuterAlt(_localctx, 1); + { + setState(480); + match(ZEITBASIS_S); + setState(481); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Soll_datum_uhrzeit_aContext extends ParserRuleContext { + public TerminalNode SOLL_DATUM_UHRZEIT_A() { return getToken(LafParser.SOLL_DATUM_UHRZEIT_A, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Soll_datum_uhrzeit_aContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_soll_datum_uhrzeit_a; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterSoll_datum_uhrzeit_a(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitSoll_datum_uhrzeit_a(this); + } + } + + public final Soll_datum_uhrzeit_aContext soll_datum_uhrzeit_a() throws RecognitionException { + Soll_datum_uhrzeit_aContext _localctx = new Soll_datum_uhrzeit_aContext(_ctx, getState()); + enterRule(_localctx, 102, RULE_soll_datum_uhrzeit_a); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(483); + match(SOLL_DATUM_UHRZEIT_A); + setState(484); + match(STRING); + setState(488); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(485); + match(T__4); + } + } + setState(490); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(491); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Soll_datum_uhrzeit_eContext extends ParserRuleContext { + public TerminalNode SOLL_DATUM_UHRZEIT_E() { return getToken(LafParser.SOLL_DATUM_UHRZEIT_E, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Soll_datum_uhrzeit_eContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_soll_datum_uhrzeit_e; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterSoll_datum_uhrzeit_e(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitSoll_datum_uhrzeit_e(this); + } + } + + public final Soll_datum_uhrzeit_eContext soll_datum_uhrzeit_e() throws RecognitionException { + Soll_datum_uhrzeit_eContext _localctx = new Soll_datum_uhrzeit_eContext(_ctx, getState()); + enterRule(_localctx, 104, RULE_soll_datum_uhrzeit_e); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(493); + match(SOLL_DATUM_UHRZEIT_E); + setState(494); + match(STRING); + setState(498); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(495); + match(T__4); + } + } + setState(500); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(501); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Ursprungs_datum_uhrzeitContext extends ParserRuleContext { + public TerminalNode URSPRUNGS_DATUM_UHRZEIT() { return getToken(LafParser.URSPRUNGS_DATUM_UHRZEIT, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Ursprungs_datum_uhrzeitContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_ursprungs_datum_uhrzeit; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUrsprungs_datum_uhrzeit(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUrsprungs_datum_uhrzeit(this); + } + } + + public final Ursprungs_datum_uhrzeitContext ursprungs_datum_uhrzeit() throws RecognitionException { + Ursprungs_datum_uhrzeitContext _localctx = new Ursprungs_datum_uhrzeitContext(_ctx, getState()); + enterRule(_localctx, 106, RULE_ursprungs_datum_uhrzeit); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(503); + match(URSPRUNGS_DATUM_UHRZEIT); + setState(504); + match(STRING); + setState(508); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(505); + match(T__4); + } + } + setState(510); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(511); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Probenahme_datum_uhrzeit_aContext extends ParserRuleContext { + public TerminalNode PROBENAHME_DATUM_UHRZEIT_A() { return getToken(LafParser.PROBENAHME_DATUM_UHRZEIT_A, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Probenahme_datum_uhrzeit_aContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenahme_datum_uhrzeit_a; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenahme_datum_uhrzeit_a(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenahme_datum_uhrzeit_a(this); + } + } + + public final Probenahme_datum_uhrzeit_aContext probenahme_datum_uhrzeit_a() throws RecognitionException { + Probenahme_datum_uhrzeit_aContext _localctx = new Probenahme_datum_uhrzeit_aContext(_ctx, getState()); + enterRule(_localctx, 108, RULE_probenahme_datum_uhrzeit_a); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(513); + match(PROBENAHME_DATUM_UHRZEIT_A); + setState(514); + match(STRING); + setState(518); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(515); + match(T__4); + } + } + setState(520); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(521); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Probenahme_datum_uhrzeit_eContext extends ParserRuleContext { + public TerminalNode PROBENAHME_DATUM_UHRZEIT_E() { return getToken(LafParser.PROBENAHME_DATUM_UHRZEIT_E, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Probenahme_datum_uhrzeit_eContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenahme_datum_uhrzeit_e; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenahme_datum_uhrzeit_e(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenahme_datum_uhrzeit_e(this); + } + } + + public final Probenahme_datum_uhrzeit_eContext probenahme_datum_uhrzeit_e() throws RecognitionException { + Probenahme_datum_uhrzeit_eContext _localctx = new Probenahme_datum_uhrzeit_eContext(_ctx, getState()); + enterRule(_localctx, 110, RULE_probenahme_datum_uhrzeit_e); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(523); + match(PROBENAHME_DATUM_UHRZEIT_E); + setState(524); + match(STRING); + setState(528); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(525); + match(T__4); + } + } + setState(530); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(531); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Umweltbereich_cContext extends ParserRuleContext { + public TerminalNode UMWELTBEREICH_C() { return getToken(LafParser.UMWELTBEREICH_C, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Umweltbereich_cContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_umweltbereich_c; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUmweltbereich_c(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUmweltbereich_c(this); + } + } + + public final Umweltbereich_cContext umweltbereich_c() throws RecognitionException { + Umweltbereich_cContext _localctx = new Umweltbereich_cContext(_ctx, getState()); + enterRule(_localctx, 112, RULE_umweltbereich_c); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(533); + match(UMWELTBEREICH_C); + setState(534); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Umweltbereich_sContext extends ParserRuleContext { + public TerminalNode UMWELTBEREICH_S() { return getToken(LafParser.UMWELTBEREICH_S, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Umweltbereich_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_umweltbereich_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterUmweltbereich_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitUmweltbereich_s(this); + } + } + + public final Umweltbereich_sContext umweltbereich_s() throws RecognitionException { + Umweltbereich_sContext _localctx = new Umweltbereich_sContext(_ctx, getState()); + enterRule(_localctx, 114, RULE_umweltbereich_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(536); + match(UMWELTBEREICH_S); + setState(537); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class DeskriptorenContext extends ParserRuleContext { + public TerminalNode DESKRIPTOREN() { return getToken(LafParser.DESKRIPTOREN, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public DeskriptorenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_deskriptoren; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterDeskriptoren(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitDeskriptoren(this); + } + } + + public final DeskriptorenContext deskriptoren() throws RecognitionException { + DeskriptorenContext _localctx = new DeskriptorenContext(_ctx, getState()); + enterRule(_localctx, 116, RULE_deskriptoren); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(539); + match(DESKRIPTOREN); + setState(540); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Rei_programmpunktContext extends ParserRuleContext { + public TerminalNode REI_PROGRAMMPUNKT() { return getToken(LafParser.REI_PROGRAMMPUNKT, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Rei_programmpunktContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_rei_programmpunkt; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterRei_programmpunkt(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitRei_programmpunkt(this); + } + } + + public final Rei_programmpunktContext rei_programmpunkt() throws RecognitionException { + Rei_programmpunktContext _localctx = new Rei_programmpunktContext(_ctx, getState()); + enterRule(_localctx, 118, RULE_rei_programmpunkt); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(542); + match(REI_PROGRAMMPUNKT); + setState(543); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Rei_programmpunktgruppeContext extends ParserRuleContext { + public TerminalNode REI_PROGRAMMPUNKTGRUPPE() { return getToken(LafParser.REI_PROGRAMMPUNKTGRUPPE, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Rei_programmpunktgruppeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_rei_programmpunktgruppe; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterRei_programmpunktgruppe(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitRei_programmpunktgruppe(this); + } + } + + public final Rei_programmpunktgruppeContext rei_programmpunktgruppe() throws RecognitionException { + Rei_programmpunktgruppeContext _localctx = new Rei_programmpunktgruppeContext(_ctx, getState()); + enterRule(_localctx, 120, RULE_rei_programmpunktgruppe); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(545); + match(REI_PROGRAMMPUNKTGRUPPE); + setState(546); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Referenz_datum_uhrzeitContext extends ParserRuleContext { + public TerminalNode REFERENZ_DATUM_UHRZEIT() { return getToken(LafParser.REFERENZ_DATUM_UHRZEIT, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Referenz_datum_uhrzeitContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_referenz_datum_uhrzeit; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterReferenz_datum_uhrzeit(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitReferenz_datum_uhrzeit(this); + } + } + + public final Referenz_datum_uhrzeitContext referenz_datum_uhrzeit() throws RecognitionException { + Referenz_datum_uhrzeitContext _localctx = new Referenz_datum_uhrzeitContext(_ctx, getState()); + enterRule(_localctx, 122, RULE_referenz_datum_uhrzeit); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(548); + match(REFERENZ_DATUM_UHRZEIT); + setState(549); + match(STRING); + setState(553); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(550); + match(T__4); + } + } + setState(555); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(556); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class TestdatenContext extends ParserRuleContext { + public TerminalNode TESTDATEN() { return getToken(LafParser.TESTDATEN, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public TestdatenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_testdaten; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterTestdaten(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitTestdaten(this); + } + } + + public final TestdatenContext testdaten() throws RecognitionException { + TestdatenContext _localctx = new TestdatenContext(_ctx, getState()); + enterRule(_localctx, 124, RULE_testdaten); + try { + enterOuterAlt(_localctx, 1); + { + setState(558); + match(TESTDATEN); + setState(559); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class SzenarioContext extends ParserRuleContext { + public TerminalNode SZENARIO() { return getToken(LafParser.SZENARIO, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public SzenarioContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_szenario; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterSzenario(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitSzenario(this); + } + } + + public final SzenarioContext szenario() throws RecognitionException { + SzenarioContext _localctx = new SzenarioContext(_ctx, getState()); + enterRule(_localctx, 126, RULE_szenario); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(561); + match(SZENARIO); + setState(562); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Sek_datenbasisContext extends ParserRuleContext { + public TerminalNode SEK_DATENBASIS() { return getToken(LafParser.SEK_DATENBASIS, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Sek_datenbasisContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_sek_datenbasis; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterSek_datenbasis(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitSek_datenbasis(this); + } + } + + public final Sek_datenbasisContext sek_datenbasis() throws RecognitionException { + Sek_datenbasisContext _localctx = new Sek_datenbasisContext(_ctx, getState()); + enterRule(_localctx, 128, RULE_sek_datenbasis); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(564); + match(SEK_DATENBASIS); + setState(565); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Sek_datenbasis_sContext extends ParserRuleContext { + public TerminalNode SEK_DATENBASIS_S() { return getToken(LafParser.SEK_DATENBASIS_S, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Sek_datenbasis_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_sek_datenbasis_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterSek_datenbasis_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitSek_datenbasis_s(this); + } + } + + public final Sek_datenbasis_sContext sek_datenbasis_s() throws RecognitionException { + Sek_datenbasis_sContext _localctx = new Sek_datenbasis_sContext(_ctx, getState()); + enterRule(_localctx, 130, RULE_sek_datenbasis_s); + try { + enterOuterAlt(_localctx, 1); + { + setState(567); + match(SEK_DATENBASIS_S); + setState(568); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_herkunftsland_langContext extends ParserRuleContext { + public TerminalNode U_HERKUNFTSLAND_LANG() { return getToken(LafParser.U_HERKUNFTSLAND_LANG, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_herkunftsland_langContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_herkunftsland_lang; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_herkunftsland_lang(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_herkunftsland_lang(this); + } + } + + public final U_herkunftsland_langContext u_herkunftsland_lang() throws RecognitionException { + U_herkunftsland_langContext _localctx = new U_herkunftsland_langContext(_ctx, getState()); + enterRule(_localctx, 132, RULE_u_herkunftsland_lang); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(570); + match(U_HERKUNFTSLAND_LANG); + setState(571); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_herkunftsland_kurzContext extends ParserRuleContext { + public TerminalNode U_HERKUNFTSLAND_KURZ() { return getToken(LafParser.U_HERKUNFTSLAND_KURZ, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_herkunftsland_kurzContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_herkunftsland_kurz; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_herkunftsland_kurz(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_herkunftsland_kurz(this); + } + } + + public final U_herkunftsland_kurzContext u_herkunftsland_kurz() throws RecognitionException { + U_herkunftsland_kurzContext _localctx = new U_herkunftsland_kurzContext(_ctx, getState()); + enterRule(_localctx, 134, RULE_u_herkunftsland_kurz); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(573); + match(U_HERKUNFTSLAND_KURZ); + setState(574); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_herkunftsland_sContext extends ParserRuleContext { + public TerminalNode U_HERKUNFTSLAND_S() { return getToken(LafParser.U_HERKUNFTSLAND_S, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_herkunftsland_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_herkunftsland_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_herkunftsland_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_herkunftsland_s(this); + } + } + + public final U_herkunftsland_sContext u_herkunftsland_s() throws RecognitionException { + U_herkunftsland_sContext _localctx = new U_herkunftsland_sContext(_ctx, getState()); + enterRule(_localctx, 136, RULE_u_herkunftsland_s); + try { + enterOuterAlt(_localctx, 1); + { + setState(576); + match(U_HERKUNFTSLAND_S); + setState(577); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_gemeindeschluesselContext extends ParserRuleContext { + public TerminalNode U_GEMEINDESCHLUESSEL() { return getToken(LafParser.U_GEMEINDESCHLUESSEL, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_gemeindeschluesselContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_gemeindeschluessel; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_gemeindeschluessel(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_gemeindeschluessel(this); + } + } + + public final U_gemeindeschluesselContext u_gemeindeschluessel() throws RecognitionException { + U_gemeindeschluesselContext _localctx = new U_gemeindeschluesselContext(_ctx, getState()); + enterRule(_localctx, 138, RULE_u_gemeindeschluessel); + try { + enterOuterAlt(_localctx, 1); + { + setState(579); + match(U_GEMEINDESCHLUESSEL); + setState(580); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_gemeindenameContext extends ParserRuleContext { + public TerminalNode U_GEMEINDENAME() { return getToken(LafParser.U_GEMEINDENAME, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_gemeindenameContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_gemeindename; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_gemeindename(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_gemeindename(this); + } + } + + public final U_gemeindenameContext u_gemeindename() throws RecognitionException { + U_gemeindenameContext _localctx = new U_gemeindenameContext(_ctx, getState()); + enterRule(_localctx, 140, RULE_u_gemeindename); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(582); + match(U_GEMEINDENAME); + setState(583); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_orts_zusatzkennzahlContext extends ParserRuleContext { + public TerminalNode U_ORTS_ZUSATZKENNZAHL() { return getToken(LafParser.U_ORTS_ZUSATZKENNZAHL, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_orts_zusatzkennzahlContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_orts_zusatzkennzahl; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_orts_zusatzkennzahl(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_orts_zusatzkennzahl(this); + } + } + + public final U_orts_zusatzkennzahlContext u_orts_zusatzkennzahl() throws RecognitionException { + U_orts_zusatzkennzahlContext _localctx = new U_orts_zusatzkennzahlContext(_ctx, getState()); + enterRule(_localctx, 142, RULE_u_orts_zusatzkennzahl); + try { + enterOuterAlt(_localctx, 1); + { + setState(585); + match(U_ORTS_ZUSATZKENNZAHL); + setState(586); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_koordinatenContext extends ParserRuleContext { + public TerminalNode U_KOORDINATEN() { return getToken(LafParser.U_KOORDINATEN, 0); } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public U_koordinatenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_koordinaten; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_koordinaten(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_koordinaten(this); + } + } + + public final U_koordinatenContext u_koordinaten() throws RecognitionException { + U_koordinatenContext _localctx = new U_koordinatenContext(_ctx, getState()); + enterRule(_localctx, 144, RULE_u_koordinaten); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(588); + match(U_KOORDINATEN); + setState(589); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(593); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(590); + match(T__4); + } + } + setState(595); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(596); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(600); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(597); + match(T__4); + } + } + setState(602); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(603); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_koordinaten_sContext extends ParserRuleContext { + public TerminalNode U_KOORDINATEN_S() { return getToken(LafParser.U_KOORDINATEN_S, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public U_koordinaten_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_koordinaten_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_koordinaten_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_koordinaten_s(this); + } + } + + public final U_koordinaten_sContext u_koordinaten_s() throws RecognitionException { + U_koordinaten_sContext _localctx = new U_koordinaten_sContext(_ctx, getState()); + enterRule(_localctx, 146, RULE_u_koordinaten_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(605); + match(U_KOORDINATEN_S); + setState(606); + match(STRING); + setState(610); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(607); + match(T__4); + } + } + setState(612); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(613); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(617); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(614); + match(T__4); + } + } + setState(619); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(620); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_orts_zusatzcodeContext extends ParserRuleContext { + public TerminalNode U_ORTS_ZUSATZCODE() { return getToken(LafParser.U_ORTS_ZUSATZCODE, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_orts_zusatzcodeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_orts_zusatzcode; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_orts_zusatzcode(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_orts_zusatzcode(this); + } + } + + public final U_orts_zusatzcodeContext u_orts_zusatzcode() throws RecognitionException { + U_orts_zusatzcodeContext _localctx = new U_orts_zusatzcodeContext(_ctx, getState()); + enterRule(_localctx, 148, RULE_u_orts_zusatzcode); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(622); + match(U_ORTS_ZUSATZCODE); + setState(623); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_orts_zusatztextContext extends ParserRuleContext { + public TerminalNode U_ORTS_ZUSATZTEXT() { return getToken(LafParser.U_ORTS_ZUSATZTEXT, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_orts_zusatztextContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_orts_zusatztext; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_orts_zusatztext(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_orts_zusatztext(this); + } + } + + public final U_orts_zusatztextContext u_orts_zusatztext() throws RecognitionException { + U_orts_zusatztextContext _localctx = new U_orts_zusatztextContext(_ctx, getState()); + enterRule(_localctx, 150, RULE_u_orts_zusatztext); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(625); + match(U_ORTS_ZUSATZTEXT); + setState(626); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class U_nuts_codeContext extends ParserRuleContext { + public TerminalNode U_NUTS_CODE() { return getToken(LafParser.U_NUTS_CODE, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public U_nuts_codeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_u_nuts_code; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterU_nuts_code(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitU_nuts_code(this); + } + } + + public final U_nuts_codeContext u_nuts_code() throws RecognitionException { + U_nuts_codeContext _localctx = new U_nuts_codeContext(_ctx, getState()); + enterRule(_localctx, 152, RULE_u_nuts_code); + try { + enterOuterAlt(_localctx, 1); + { + setState(628); + match(U_NUTS_CODE); + setState(629); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_herkunftsland_langContext extends ParserRuleContext { + public TerminalNode P_HERKUNFTSLAND_LANG() { return getToken(LafParser.P_HERKUNFTSLAND_LANG, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_herkunftsland_langContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_herkunftsland_lang; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_herkunftsland_lang(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_herkunftsland_lang(this); + } + } + + public final P_herkunftsland_langContext p_herkunftsland_lang() throws RecognitionException { + P_herkunftsland_langContext _localctx = new P_herkunftsland_langContext(_ctx, getState()); + enterRule(_localctx, 154, RULE_p_herkunftsland_lang); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(631); + match(P_HERKUNFTSLAND_LANG); + setState(632); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_herkunftsland_kurzContext extends ParserRuleContext { + public TerminalNode P_HERKUNFTSLAND_KURZ() { return getToken(LafParser.P_HERKUNFTSLAND_KURZ, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_herkunftsland_kurzContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_herkunftsland_kurz; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_herkunftsland_kurz(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_herkunftsland_kurz(this); + } + } + + public final P_herkunftsland_kurzContext p_herkunftsland_kurz() throws RecognitionException { + P_herkunftsland_kurzContext _localctx = new P_herkunftsland_kurzContext(_ctx, getState()); + enterRule(_localctx, 156, RULE_p_herkunftsland_kurz); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(634); + match(P_HERKUNFTSLAND_KURZ); + setState(635); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_herkunftsland_sContext extends ParserRuleContext { + public TerminalNode P_HERKUNFTSLAND_S() { return getToken(LafParser.P_HERKUNFTSLAND_S, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_herkunftsland_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_herkunftsland_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_herkunftsland_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_herkunftsland_s(this); + } + } + + public final P_herkunftsland_sContext p_herkunftsland_s() throws RecognitionException { + P_herkunftsland_sContext _localctx = new P_herkunftsland_sContext(_ctx, getState()); + enterRule(_localctx, 158, RULE_p_herkunftsland_s); + try { + enterOuterAlt(_localctx, 1); + { + setState(637); + match(P_HERKUNFTSLAND_S); + setState(638); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_gemeindeschluesselContext extends ParserRuleContext { + public TerminalNode P_GEMEINDESCHLUESSEL() { return getToken(LafParser.P_GEMEINDESCHLUESSEL, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_gemeindeschluesselContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_gemeindeschluessel; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_gemeindeschluessel(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_gemeindeschluessel(this); + } + } + + public final P_gemeindeschluesselContext p_gemeindeschluessel() throws RecognitionException { + P_gemeindeschluesselContext _localctx = new P_gemeindeschluesselContext(_ctx, getState()); + enterRule(_localctx, 160, RULE_p_gemeindeschluessel); + try { + enterOuterAlt(_localctx, 1); + { + setState(640); + match(P_GEMEINDESCHLUESSEL); + setState(641); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_gemeindenameContext extends ParserRuleContext { + public TerminalNode P_GEMEINDENAME() { return getToken(LafParser.P_GEMEINDENAME, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_gemeindenameContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_gemeindename; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_gemeindename(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_gemeindename(this); + } + } + + public final P_gemeindenameContext p_gemeindename() throws RecognitionException { + P_gemeindenameContext _localctx = new P_gemeindenameContext(_ctx, getState()); + enterRule(_localctx, 162, RULE_p_gemeindename); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(643); + match(P_GEMEINDENAME); + setState(644); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_orts_zusatzkennzahlContext extends ParserRuleContext { + public TerminalNode P_ORTS_ZUSATZKENNZAHL() { return getToken(LafParser.P_ORTS_ZUSATZKENNZAHL, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_orts_zusatzkennzahlContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_orts_zusatzkennzahl; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_orts_zusatzkennzahl(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_orts_zusatzkennzahl(this); + } + } + + public final P_orts_zusatzkennzahlContext p_orts_zusatzkennzahl() throws RecognitionException { + P_orts_zusatzkennzahlContext _localctx = new P_orts_zusatzkennzahlContext(_ctx, getState()); + enterRule(_localctx, 164, RULE_p_orts_zusatzkennzahl); + try { + enterOuterAlt(_localctx, 1); + { + setState(646); + match(P_ORTS_ZUSATZKENNZAHL); + setState(647); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_koordinatenContext extends ParserRuleContext { + public TerminalNode P_KOORDINATEN() { return getToken(LafParser.P_KOORDINATEN, 0); } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public P_koordinatenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_koordinaten; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_koordinaten(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_koordinaten(this); + } + } + + public final P_koordinatenContext p_koordinaten() throws RecognitionException { + P_koordinatenContext _localctx = new P_koordinatenContext(_ctx, getState()); + enterRule(_localctx, 166, RULE_p_koordinaten); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(649); + match(P_KOORDINATEN); + setState(650); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(654); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(651); + match(T__4); + } + } + setState(656); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(657); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(661); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(658); + match(T__4); + } + } + setState(663); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(664); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_koordinaten_sContext extends ParserRuleContext { + public TerminalNode P_KOORDINATEN_S() { return getToken(LafParser.P_KOORDINATEN_S, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public P_koordinaten_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_koordinaten_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_koordinaten_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_koordinaten_s(this); + } + } + + public final P_koordinaten_sContext p_koordinaten_s() throws RecognitionException { + P_koordinaten_sContext _localctx = new P_koordinaten_sContext(_ctx, getState()); + enterRule(_localctx, 168, RULE_p_koordinaten_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(666); + match(P_KOORDINATEN_S); + setState(667); + match(STRING); + setState(671); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(668); + match(T__4); + } + } + setState(673); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(674); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(678); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(675); + match(T__4); + } + } + setState(680); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(681); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_orts_zusatzcodeContext extends ParserRuleContext { + public TerminalNode P_ORTS_ZUSATZCODE() { return getToken(LafParser.P_ORTS_ZUSATZCODE, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_orts_zusatzcodeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_orts_zusatzcode; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_orts_zusatzcode(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_orts_zusatzcode(this); + } + } + + public final P_orts_zusatzcodeContext p_orts_zusatzcode() throws RecognitionException { + P_orts_zusatzcodeContext _localctx = new P_orts_zusatzcodeContext(_ctx, getState()); + enterRule(_localctx, 170, RULE_p_orts_zusatzcode); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(683); + match(P_ORTS_ZUSATZCODE); + setState(684); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_orts_zusatztextContext extends ParserRuleContext { + public TerminalNode P_ORTS_ZUSATZTEXT() { return getToken(LafParser.P_ORTS_ZUSATZTEXT, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_orts_zusatztextContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_orts_zusatztext; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_orts_zusatztext(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_orts_zusatztext(this); + } + } + + public final P_orts_zusatztextContext p_orts_zusatztext() throws RecognitionException { + P_orts_zusatztextContext _localctx = new P_orts_zusatztextContext(_ctx, getState()); + enterRule(_localctx, 172, RULE_p_orts_zusatztext); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(686); + match(P_ORTS_ZUSATZTEXT); + setState(687); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_nuts_codeContext extends ParserRuleContext { + public TerminalNode P_NUTS_CODE() { return getToken(LafParser.P_NUTS_CODE, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_nuts_codeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_nuts_code; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_nuts_code(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_nuts_code(this); + } + } + + public final P_nuts_codeContext p_nuts_code() throws RecognitionException { + P_nuts_codeContext _localctx = new P_nuts_codeContext(_ctx, getState()); + enterRule(_localctx, 174, RULE_p_nuts_code); + try { + enterOuterAlt(_localctx, 1); + { + setState(689); + match(P_NUTS_CODE); + setState(690); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_site_idContext extends ParserRuleContext { + public TerminalNode P_SITE_ID() { return getToken(LafParser.P_SITE_ID, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_site_idContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_site_id; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_site_id(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_site_id(this); + } + } + + public final P_site_idContext p_site_id() throws RecognitionException { + P_site_idContext _localctx = new P_site_idContext(_ctx, getState()); + enterRule(_localctx, 176, RULE_p_site_id); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(692); + match(P_SITE_ID); + setState(693); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_site_nameContext extends ParserRuleContext { + public TerminalNode P_SITE_NAME() { return getToken(LafParser.P_SITE_NAME, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_site_nameContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_site_name; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_site_name(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_site_name(this); + } + } + + public final P_site_nameContext p_site_name() throws RecognitionException { + P_site_nameContext _localctx = new P_site_nameContext(_ctx, getState()); + enterRule(_localctx, 178, RULE_p_site_name); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(695); + match(P_SITE_NAME); + setState(696); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_hoehe_nnContext extends ParserRuleContext { + public TerminalNode P_HOEHE_NN() { return getToken(LafParser.P_HOEHE_NN, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_hoehe_nnContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_hoehe_nn; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_hoehe_nn(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_hoehe_nn(this); + } + } + + public final P_hoehe_nnContext p_hoehe_nn() throws RecognitionException { + P_hoehe_nnContext _localctx = new P_hoehe_nnContext(_ctx, getState()); + enterRule(_localctx, 180, RULE_p_hoehe_nn); + try { + enterOuterAlt(_localctx, 1); + { + setState(698); + match(P_HOEHE_NN); + setState(699); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class P_hoehe_landContext extends ParserRuleContext { + public TerminalNode P_HOEHE_LAND() { return getToken(LafParser.P_HOEHE_LAND, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public P_hoehe_landContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_p_hoehe_land; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterP_hoehe_land(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitP_hoehe_land(this); + } + } + + public final P_hoehe_landContext p_hoehe_land() throws RecognitionException { + P_hoehe_landContext _localctx = new P_hoehe_landContext(_ctx, getState()); + enterRule(_localctx, 182, RULE_p_hoehe_land); + try { + enterOuterAlt(_localctx, 1); + { + setState(701); + match(P_HOEHE_LAND); + setState(702); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MehrzweckfeldContext extends ParserRuleContext { + public TerminalNode MEHRZWECKFELD() { return getToken(LafParser.MEHRZWECKFELD, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public MehrzweckfeldContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mehrzweckfeld; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMehrzweckfeld(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMehrzweckfeld(this); + } + } + + public final MehrzweckfeldContext mehrzweckfeld() throws RecognitionException { + MehrzweckfeldContext _localctx = new MehrzweckfeldContext(_ctx, getState()); + enterRule(_localctx, 184, RULE_mehrzweckfeld); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(704); + match(MEHRZWECKFELD); + setState(705); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Mess_datum_uhrzeitContext extends ParserRuleContext { + public TerminalNode MESS_DATUM_UHRZEIT() { return getToken(LafParser.MESS_DATUM_UHRZEIT, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Mess_datum_uhrzeitContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_mess_datum_uhrzeit; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMess_datum_uhrzeit(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMess_datum_uhrzeit(this); + } + } + + public final Mess_datum_uhrzeitContext mess_datum_uhrzeit() throws RecognitionException { + Mess_datum_uhrzeitContext _localctx = new Mess_datum_uhrzeitContext(_ctx, getState()); + enterRule(_localctx, 186, RULE_mess_datum_uhrzeit); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(707); + match(MESS_DATUM_UHRZEIT); + setState(708); + match(STRING); + setState(712); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(709); + match(T__4); + } + } + setState(714); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(715); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messzeit_sekundenContext extends ParserRuleContext { + public TerminalNode MESSZEIT_SEKUNDEN() { return getToken(LafParser.MESSZEIT_SEKUNDEN, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messzeit_sekundenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messzeit_sekunden; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesszeit_sekunden(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesszeit_sekunden(this); + } + } + + public final Messzeit_sekundenContext messzeit_sekunden() throws RecognitionException { + Messzeit_sekundenContext _localctx = new Messzeit_sekundenContext(_ctx, getState()); + enterRule(_localctx, 188, RULE_messzeit_sekunden); + try { + enterOuterAlt(_localctx, 1); + { + setState(717); + match(MESSZEIT_SEKUNDEN); + setState(718); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messmethode_cContext extends ParserRuleContext { + public TerminalNode MESSMETHODE_C() { return getToken(LafParser.MESSMETHODE_C, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messmethode_cContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messmethode_c; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessmethode_c(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessmethode_c(this); + } + } + + public final Messmethode_cContext messmethode_c() throws RecognitionException { + Messmethode_cContext _localctx = new Messmethode_cContext(_ctx, getState()); + enterRule(_localctx, 190, RULE_messmethode_c); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(720); + match(MESSMETHODE_C); + setState(721); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messmethode_sContext extends ParserRuleContext { + public TerminalNode MESSMETHODE_S() { return getToken(LafParser.MESSMETHODE_S, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Messmethode_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messmethode_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMessmethode_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMessmethode_s(this); + } + } + + public final Messmethode_sContext messmethode_s() throws RecognitionException { + Messmethode_sContext _localctx = new Messmethode_sContext(_ctx, getState()); + enterRule(_localctx, 192, RULE_messmethode_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(723); + match(MESSMETHODE_S); + setState(724); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class BearbeitungsstatusContext extends ParserRuleContext { + public TerminalNode BEARBEITUNGSSTATUS() { return getToken(LafParser.BEARBEITUNGSSTATUS, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public BearbeitungsstatusContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_bearbeitungsstatus; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterBearbeitungsstatus(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitBearbeitungsstatus(this); + } + } + + public final BearbeitungsstatusContext bearbeitungsstatus() throws RecognitionException { + BearbeitungsstatusContext _localctx = new BearbeitungsstatusContext(_ctx, getState()); + enterRule(_localctx, 194, RULE_bearbeitungsstatus); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(726); + match(BEARBEITUNGSSTATUS); + setState(727); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Pep_flagContext extends ParserRuleContext { + public TerminalNode PEP_FLAG() { return getToken(LafParser.PEP_FLAG, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Pep_flagContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pep_flag; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPep_flag(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPep_flag(this); + } + } + + public final Pep_flagContext pep_flag() throws RecognitionException { + Pep_flagContext _localctx = new Pep_flagContext(_ctx, getState()); + enterRule(_localctx, 196, RULE_pep_flag); + try { + enterOuterAlt(_localctx, 1); + { + setState(729); + match(PEP_FLAG); + setState(730); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Erfassung_abgeschlossenContext extends ParserRuleContext { + public TerminalNode ERFASSUNG_ABGESCHLOSSEN() { return getToken(LafParser.ERFASSUNG_ABGESCHLOSSEN, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Erfassung_abgeschlossenContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_erfassung_abgeschlossen; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterErfassung_abgeschlossen(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitErfassung_abgeschlossen(this); + } + } + + public final Erfassung_abgeschlossenContext erfassung_abgeschlossen() throws RecognitionException { + Erfassung_abgeschlossenContext _localctx = new Erfassung_abgeschlossenContext(_ctx, getState()); + enterRule(_localctx, 198, RULE_erfassung_abgeschlossen); + try { + enterOuterAlt(_localctx, 1); + { + setState(732); + match(ERFASSUNG_ABGESCHLOSSEN); + setState(733); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ProbenzusatzbeschreibungContext extends ParserRuleContext { + public TerminalNode PROBENZUSATZBESCHREIBUNG() { return getToken(LafParser.PROBENZUSATZBESCHREIBUNG, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public ProbenzusatzbeschreibungContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenzusatzbeschreibung; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenzusatzbeschreibung(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenzusatzbeschreibung(this); + } + } + + public final ProbenzusatzbeschreibungContext probenzusatzbeschreibung() throws RecognitionException { + ProbenzusatzbeschreibungContext _localctx = new ProbenzusatzbeschreibungContext(_ctx, getState()); + enterRule(_localctx, 200, RULE_probenzusatzbeschreibung); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(735); + match(PROBENZUSATZBESCHREIBUNG); + setState(736); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(740); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(737); + match(T__4); + } + } + setState(742); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(743); + match(STRING); + setState(747); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(744); + match(T__4); + } + } + setState(749); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(750); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(754); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(751); + match(T__4); + } + } + setState(756); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(757); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Pzb_sContext extends ParserRuleContext { + public TerminalNode PZB_S() { return getToken(LafParser.PZB_S, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public Pzb_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_pzb_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterPzb_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitPzb_s(this); + } + } + + public final Pzb_sContext pzb_s() throws RecognitionException { + Pzb_sContext _localctx = new Pzb_sContext(_ctx, getState()); + enterRule(_localctx, 202, RULE_pzb_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(759); + match(PZB_S); + setState(760); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(764); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(761); + match(T__4); + } + } + setState(766); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(767); + match(STRING); + setState(771); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(768); + match(T__4); + } + } + setState(773); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(774); + match(STRING); + setState(778); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(775); + match(T__4); + } + } + setState(780); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(781); + match(STRING); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class MesswertContext extends ParserRuleContext { + public TerminalNode MESSWERT() { return getToken(LafParser.MESSWERT, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public MesswertContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert(this); + } + } + + public final MesswertContext messwert() throws RecognitionException { + MesswertContext _localctx = new MesswertContext(_ctx, getState()); + enterRule(_localctx, 204, RULE_messwert); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(783); + match(MESSWERT); + setState(784); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(788); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(785); + match(T__4); + } + } + setState(790); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(791); + match(STRING); + setState(795); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(792); + match(T__4); + } + } + setState(797); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(798); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(802); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(799); + match(T__4); + } + } + setState(804); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(806); + _la = _input.LA(1); + if (_la==STRING) { + { + setState(805); + match(STRING); + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_sContext extends ParserRuleContext { + public TerminalNode MESSWERT_S() { return getToken(LafParser.MESSWERT_S, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Messwert_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_s(this); + } + } + + public final Messwert_sContext messwert_s() throws RecognitionException { + Messwert_sContext _localctx = new Messwert_sContext(_ctx, getState()); + enterRule(_localctx, 206, RULE_messwert_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(808); + match(MESSWERT_S); + setState(809); + match(STRING); + setState(813); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(810); + match(T__4); + } + } + setState(815); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(816); + match(STRING); + setState(820); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(817); + match(T__4); + } + } + setState(822); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(823); + match(STRING); + setState(827); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(824); + match(T__4); + } + } + setState(829); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(831); + _la = _input.LA(1); + if (_la==STRING) { + { + setState(830); + match(STRING); + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_iContext extends ParserRuleContext { + public TerminalNode MESSWERT_I() { return getToken(LafParser.MESSWERT_I, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public Messwert_iContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_i; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_i(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_i(this); + } + } + + public final Messwert_iContext messwert_i() throws RecognitionException { + Messwert_iContext _localctx = new Messwert_iContext(_ctx, getState()); + enterRule(_localctx, 208, RULE_messwert_i); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(833); + match(MESSWERT_I); + setState(834); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(838); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(835); + match(T__4); + } + } + setState(840); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(841); + match(STRING); + setState(845); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(842); + match(T__4); + } + } + setState(847); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(848); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(852); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(849); + match(T__4); + } + } + setState(854); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(862); + switch ( getInterpreter().adaptivePredict(_input,61,_ctx) ) { + case 1: + { + setState(855); + match(STRING); + setState(859); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(856); + match(T__4); + } + } + setState(861); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(871); + switch ( getInterpreter().adaptivePredict(_input,63,_ctx) ) { + case 1: + { + setState(864); + match(STRING); + setState(868); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(865); + match(T__4); + } + } + setState(870); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(880); + switch ( getInterpreter().adaptivePredict(_input,65,_ctx) ) { + case 1: + { + setState(873); + match(STRING); + setState(877); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(874); + match(T__4); + } + } + setState(879); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(883); + _la = _input.LA(1); + if (_la==STRING_ESC || _la==STRING) { + { + setState(882); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_gContext extends ParserRuleContext { + public TerminalNode MESSWERT_G() { return getToken(LafParser.MESSWERT_G, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public Messwert_gContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_g; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_g(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_g(this); + } + } + + public final Messwert_gContext messwert_g() throws RecognitionException { + Messwert_gContext _localctx = new Messwert_gContext(_ctx, getState()); + enterRule(_localctx, 210, RULE_messwert_g); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(885); + match(MESSWERT_G); + setState(886); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(890); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(887); + match(T__4); + } + } + setState(892); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(893); + match(STRING); + setState(897); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(894); + match(T__4); + } + } + setState(899); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(900); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(904); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(901); + match(T__4); + } + } + setState(906); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(914); + switch ( getInterpreter().adaptivePredict(_input,71,_ctx) ) { + case 1: + { + setState(907); + match(STRING); + setState(911); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(908); + match(T__4); + } + } + setState(913); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(923); + switch ( getInterpreter().adaptivePredict(_input,73,_ctx) ) { + case 1: + { + setState(916); + match(STRING); + setState(920); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(917); + match(T__4); + } + } + setState(922); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(932); + switch ( getInterpreter().adaptivePredict(_input,75,_ctx) ) { + case 1: + { + setState(925); + match(STRING); + setState(929); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(926); + match(T__4); + } + } + setState(931); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(935); + _la = _input.LA(1); + if (_la==STRING_ESC || _la==STRING) { + { + setState(934); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_nwgContext extends ParserRuleContext { + public TerminalNode MESSWERT_NWG() { return getToken(LafParser.MESSWERT_NWG, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public Messwert_nwgContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_nwg; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_nwg(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_nwg(this); + } + } + + public final Messwert_nwgContext messwert_nwg() throws RecognitionException { + Messwert_nwgContext _localctx = new Messwert_nwgContext(_ctx, getState()); + enterRule(_localctx, 212, RULE_messwert_nwg); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(937); + match(MESSWERT_NWG); + setState(938); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(942); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(939); + match(T__4); + } + } + setState(944); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(945); + match(STRING); + setState(949); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(946); + match(T__4); + } + } + setState(951); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(952); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(956); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(953); + match(T__4); + } + } + setState(958); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(966); + switch ( getInterpreter().adaptivePredict(_input,81,_ctx) ) { + case 1: + { + setState(959); + match(STRING); + setState(963); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(960); + match(T__4); + } + } + setState(965); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(969); + _la = _input.LA(1); + if (_la==STRING) { + { + setState(968); + match(STRING); + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_nwg_sContext extends ParserRuleContext { + public TerminalNode MESSWERT_NWG_S() { return getToken(LafParser.MESSWERT_NWG_S, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public Messwert_nwg_sContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_nwg_s; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_nwg_s(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_nwg_s(this); + } + } + + public final Messwert_nwg_sContext messwert_nwg_s() throws RecognitionException { + Messwert_nwg_sContext _localctx = new Messwert_nwg_sContext(_ctx, getState()); + enterRule(_localctx, 214, RULE_messwert_nwg_s); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(971); + match(MESSWERT_NWG_S); + setState(972); + match(STRING); + setState(976); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(973); + match(T__4); + } + } + setState(978); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(979); + match(STRING); + setState(983); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(980); + match(T__4); + } + } + setState(985); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(986); + match(STRING); + setState(990); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(987); + match(T__4); + } + } + setState(992); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1000); + switch ( getInterpreter().adaptivePredict(_input,87,_ctx) ) { + case 1: + { + setState(993); + match(STRING); + setState(997); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(994); + match(T__4); + } + } + setState(999); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1003); + _la = _input.LA(1); + if (_la==STRING) { + { + setState(1002); + match(STRING); + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_nwg_iContext extends ParserRuleContext { + public TerminalNode MESSWERT_NWG_I() { return getToken(LafParser.MESSWERT_NWG_I, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public Messwert_nwg_iContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_nwg_i; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_nwg_i(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_nwg_i(this); + } + } + + public final Messwert_nwg_iContext messwert_nwg_i() throws RecognitionException { + Messwert_nwg_iContext _localctx = new Messwert_nwg_iContext(_ctx, getState()); + enterRule(_localctx, 216, RULE_messwert_nwg_i); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(1005); + match(MESSWERT_NWG_I); + setState(1006); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(1010); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1007); + match(T__4); + } + } + setState(1012); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1013); + match(STRING); + setState(1017); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1014); + match(T__4); + } + } + setState(1019); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1020); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(1024); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1021); + match(T__4); + } + } + setState(1026); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1034); + switch ( getInterpreter().adaptivePredict(_input,93,_ctx) ) { + case 1: + { + setState(1027); + match(STRING); + setState(1031); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1028); + match(T__4); + } + } + setState(1033); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1043); + switch ( getInterpreter().adaptivePredict(_input,95,_ctx) ) { + case 1: + { + setState(1036); + match(STRING); + setState(1040); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1037); + match(T__4); + } + } + setState(1042); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1052); + switch ( getInterpreter().adaptivePredict(_input,97,_ctx) ) { + case 1: + { + setState(1045); + match(STRING); + setState(1049); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1046); + match(T__4); + } + } + setState(1051); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1061); + switch ( getInterpreter().adaptivePredict(_input,99,_ctx) ) { + case 1: + { + setState(1054); + match(STRING); + setState(1058); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1055); + match(T__4); + } + } + setState(1060); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1063); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Messwert_nwg_gContext extends ParserRuleContext { + public TerminalNode MESSWERT_NWG_G() { return getToken(LafParser.MESSWERT_NWG_G, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public Messwert_nwg_gContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_messwert_nwg_g; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterMesswert_nwg_g(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitMesswert_nwg_g(this); + } + } + + public final Messwert_nwg_gContext messwert_nwg_g() throws RecognitionException { + Messwert_nwg_gContext _localctx = new Messwert_nwg_gContext(_ctx, getState()); + enterRule(_localctx, 218, RULE_messwert_nwg_g); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(1065); + match(MESSWERT_NWG_G); + setState(1066); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(1070); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1067); + match(T__4); + } + } + setState(1072); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1073); + match(STRING); + setState(1077); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1074); + match(T__4); + } + } + setState(1079); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1080); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(1084); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1081); + match(T__4); + } + } + setState(1086); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1094); + switch ( getInterpreter().adaptivePredict(_input,104,_ctx) ) { + case 1: + { + setState(1087); + match(STRING); + setState(1091); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1088); + match(T__4); + } + } + setState(1093); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1096); + match(STRING); + setState(1100); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1097); + match(T__4); + } + } + setState(1102); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1110); + switch ( getInterpreter().adaptivePredict(_input,107,_ctx) ) { + case 1: + { + setState(1103); + match(STRING); + setState(1107); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1104); + match(T__4); + } + } + setState(1109); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1119); + switch ( getInterpreter().adaptivePredict(_input,109,_ctx) ) { + case 1: + { + setState(1112); + match(STRING); + setState(1116); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1113); + match(T__4); + } + } + setState(1118); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + } + setState(1122); + _la = _input.LA(1); + if (_la==STRING_ESC || _la==STRING) { + { + setState(1121); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class KommentarContext extends ParserRuleContext { + public TerminalNode KOMMENTAR() { return getToken(LafParser.KOMMENTAR, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public KommentarContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_kommentar; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterKommentar(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitKommentar(this); + } + } + + public final KommentarContext kommentar() throws RecognitionException { + KommentarContext _localctx = new KommentarContext(_ctx, getState()); + enterRule(_localctx, 220, RULE_kommentar); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(1124); + match(KOMMENTAR); + setState(1125); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(1129); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1126); + match(T__4); + } + } + setState(1131); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1132); + match(STRING); + setState(1136); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1133); + match(T__4); + } + } + setState(1138); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1139); + match(STRING); + setState(1143); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1140); + match(T__4); + } + } + setState(1145); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1146); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Kommentar_tContext extends ParserRuleContext { + public TerminalNode KOMMENTAR_T() { return getToken(LafParser.KOMMENTAR_T, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Kommentar_tContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_kommentar_t; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterKommentar_t(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitKommentar_t(this); + } + } + + public final Kommentar_tContext kommentar_t() throws RecognitionException { + Kommentar_tContext _localctx = new Kommentar_tContext(_ctx, getState()); + enterRule(_localctx, 222, RULE_kommentar_t); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(1148); + match(KOMMENTAR_T); + setState(1149); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class ProbenkommentarContext extends ParserRuleContext { + public TerminalNode PROBENKOMMENTAR() { return getToken(LafParser.PROBENKOMMENTAR, 0); } + public List<TerminalNode> STRING() { return getTokens(LafParser.STRING); } + public TerminalNode STRING(int i) { + return getToken(LafParser.STRING, i); + } + public List<TerminalNode> STRING_ESC() { return getTokens(LafParser.STRING_ESC); } + public TerminalNode STRING_ESC(int i) { + return getToken(LafParser.STRING_ESC, i); + } + public ProbenkommentarContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenkommentar; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenkommentar(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenkommentar(this); + } + } + + public final ProbenkommentarContext probenkommentar() throws RecognitionException { + ProbenkommentarContext _localctx = new ProbenkommentarContext(_ctx, getState()); + enterRule(_localctx, 224, RULE_probenkommentar); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(1151); + match(PROBENKOMMENTAR); + setState(1152); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + setState(1156); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1153); + match(T__4); + } + } + setState(1158); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1159); + match(STRING); + setState(1163); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1160); + match(T__4); + } + } + setState(1165); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1166); + match(STRING); + setState(1170); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==T__4) { + { + { + setState(1167); + match(T__4); + } + } + setState(1172); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(1173); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static class Probenkommentar_tContext extends ParserRuleContext { + public TerminalNode PROBENKOMMENTAR_T() { return getToken(LafParser.PROBENKOMMENTAR_T, 0); } + public TerminalNode STRING_ESC() { return getToken(LafParser.STRING_ESC, 0); } + public TerminalNode STRING() { return getToken(LafParser.STRING, 0); } + public Probenkommentar_tContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_probenkommentar_t; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).enterProbenkommentar_t(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof LafListener ) ((LafListener)listener).exitProbenkommentar_t(this); + } + } + + public final Probenkommentar_tContext probenkommentar_t() throws RecognitionException { + Probenkommentar_tContext _localctx = new Probenkommentar_tContext(_ctx, getState()); + enterRule(_localctx, 226, RULE_probenkommentar_t); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(1175); + match(PROBENKOMMENTAR_T); + setState(1176); + _la = _input.LA(1); + if ( !(_la==STRING_ESC || _la==STRING) ) { + _errHandler.recoverInline(this); + } else { + consume(); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + public static final String _serializedATN = + "\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3b\u049d\4\2\t\2\4"+ + "\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t"+ + "\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+ + "\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+ + "\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+ + "\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+ + ",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+ + "\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\4<\t<\4=\t="+ + "\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I"+ + "\tI\4J\tJ\4K\tK\4L\tL\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT"+ + "\4U\tU\4V\tV\4W\tW\4X\tX\4Y\tY\4Z\tZ\4[\t[\4\\\t\\\4]\t]\4^\t^\4_\t_\4"+ + "`\t`\4a\ta\4b\tb\4c\tc\4d\td\4e\te\4f\tf\4g\tg\4h\th\4i\ti\4j\tj\4k\t"+ + "k\4l\tl\4m\tm\4n\tn\4o\to\4p\tp\4q\tq\4r\tr\4s\ts\3\2\7\2\u00e8\n\2\f"+ + "\2\16\2\u00eb\13\2\3\2\5\2\u00ee\n\2\3\2\3\2\3\3\3\3\3\4\3\4\6\4\u00f6"+ + "\n\4\r\4\16\4\u00f7\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3"+ + "\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5"+ + "\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\5\5\u0124\n\5\3\6\5\6"+ + "\u0127\n\6\3\6\6\6\u012a\n\6\r\6\16\6\u012b\3\7\3\7\3\b\3\b\3\b\3\b\3"+ + "\b\3\b\3\b\3\b\3\b\3\b\5\b\u013a\n\b\3\t\3\t\5\t\u013e\n\t\3\n\3\n\5\n"+ + "\u0142\n\n\3\13\3\13\5\13\u0146\n\13\3\f\3\f\5\f\u014a\n\f\3\r\3\r\3\r"+ + "\5\r\u014f\n\r\3\16\3\16\5\16\u0153\n\16\3\17\3\17\5\17\u0157\n\17\3\20"+ + "\3\20\5\20\u015b\n\20\3\21\3\21\5\21\u015f\n\21\3\22\3\22\5\22\u0163\n"+ + "\22\3\23\3\23\3\23\5\23\u0168\n\23\3\24\3\24\5\24\u016c\n\24\3\25\3\25"+ + "\5\25\u0170\n\25\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\5\26\u017a\n"+ + "\26\3\27\3\27\5\27\u017e\n\27\3\30\3\30\5\30\u0182\n\30\3\31\3\31\7\31"+ + "\u0186\n\31\f\31\16\31\u0189\13\31\3\32\3\32\3\32\3\32\3\32\3\32\3\32"+ + "\5\32\u0192\n\32\3\33\3\33\3\33\5\33\u0197\n\33\3\34\3\34\5\34\u019b\n"+ + "\34\3\35\3\35\5\35\u019f\n\35\3\36\3\36\3\36\3\37\3\37\3\37\3 \3 \3 \3"+ + "!\3!\3!\3\"\3\"\3\"\3#\3#\3#\3$\3$\3$\3%\3%\3%\3&\3&\3&\3\'\3\'\3\'\3"+ + "(\3(\3(\3)\3)\3)\3*\3*\3*\3+\3+\3+\3,\3,\3,\3-\3-\3-\3.\3.\3.\3/\3/\3"+ + "/\3\60\3\60\3\60\3\61\3\61\3\61\3\62\3\62\3\62\3\63\3\63\3\63\3\64\3\64"+ + "\3\64\3\65\3\65\3\65\7\65\u01e9\n\65\f\65\16\65\u01ec\13\65\3\65\3\65"+ + "\3\66\3\66\3\66\7\66\u01f3\n\66\f\66\16\66\u01f6\13\66\3\66\3\66\3\67"+ + "\3\67\3\67\7\67\u01fd\n\67\f\67\16\67\u0200\13\67\3\67\3\67\38\38\38\7"+ + "8\u0207\n8\f8\168\u020a\138\38\38\39\39\39\79\u0211\n9\f9\169\u0214\13"+ + "9\39\39\3:\3:\3:\3;\3;\3;\3<\3<\3<\3=\3=\3=\3>\3>\3>\3?\3?\3?\7?\u022a"+ + "\n?\f?\16?\u022d\13?\3?\3?\3@\3@\3@\3A\3A\3A\3B\3B\3B\3C\3C\3C\3D\3D\3"+ + "D\3E\3E\3E\3F\3F\3F\3G\3G\3G\3H\3H\3H\3I\3I\3I\3J\3J\3J\7J\u0252\nJ\f"+ + "J\16J\u0255\13J\3J\3J\7J\u0259\nJ\fJ\16J\u025c\13J\3J\3J\3K\3K\3K\7K\u0263"+ + "\nK\fK\16K\u0266\13K\3K\3K\7K\u026a\nK\fK\16K\u026d\13K\3K\3K\3L\3L\3"+ + "L\3M\3M\3M\3N\3N\3N\3O\3O\3O\3P\3P\3P\3Q\3Q\3Q\3R\3R\3R\3S\3S\3S\3T\3"+ + "T\3T\3U\3U\3U\7U\u028f\nU\fU\16U\u0292\13U\3U\3U\7U\u0296\nU\fU\16U\u0299"+ + "\13U\3U\3U\3V\3V\3V\7V\u02a0\nV\fV\16V\u02a3\13V\3V\3V\7V\u02a7\nV\fV"+ + "\16V\u02aa\13V\3V\3V\3W\3W\3W\3X\3X\3X\3Y\3Y\3Y\3Z\3Z\3Z\3[\3[\3[\3\\"+ + "\3\\\3\\\3]\3]\3]\3^\3^\3^\3_\3_\3_\7_\u02c9\n_\f_\16_\u02cc\13_\3_\3"+ + "_\3`\3`\3`\3a\3a\3a\3b\3b\3b\3c\3c\3c\3d\3d\3d\3e\3e\3e\3f\3f\3f\7f\u02e5"+ + "\nf\ff\16f\u02e8\13f\3f\3f\7f\u02ec\nf\ff\16f\u02ef\13f\3f\3f\7f\u02f3"+ + "\nf\ff\16f\u02f6\13f\3f\3f\3g\3g\3g\7g\u02fd\ng\fg\16g\u0300\13g\3g\3"+ + "g\7g\u0304\ng\fg\16g\u0307\13g\3g\3g\7g\u030b\ng\fg\16g\u030e\13g\3g\3"+ + "g\3h\3h\3h\7h\u0315\nh\fh\16h\u0318\13h\3h\3h\7h\u031c\nh\fh\16h\u031f"+ + "\13h\3h\3h\7h\u0323\nh\fh\16h\u0326\13h\3h\5h\u0329\nh\3i\3i\3i\7i\u032e"+ + "\ni\fi\16i\u0331\13i\3i\3i\7i\u0335\ni\fi\16i\u0338\13i\3i\3i\7i\u033c"+ + "\ni\fi\16i\u033f\13i\3i\5i\u0342\ni\3j\3j\3j\7j\u0347\nj\fj\16j\u034a"+ + "\13j\3j\3j\7j\u034e\nj\fj\16j\u0351\13j\3j\3j\7j\u0355\nj\fj\16j\u0358"+ + "\13j\3j\3j\7j\u035c\nj\fj\16j\u035f\13j\5j\u0361\nj\3j\3j\7j\u0365\nj"+ + "\fj\16j\u0368\13j\5j\u036a\nj\3j\3j\7j\u036e\nj\fj\16j\u0371\13j\5j\u0373"+ + "\nj\3j\5j\u0376\nj\3k\3k\3k\7k\u037b\nk\fk\16k\u037e\13k\3k\3k\7k\u0382"+ + "\nk\fk\16k\u0385\13k\3k\3k\7k\u0389\nk\fk\16k\u038c\13k\3k\3k\7k\u0390"+ + "\nk\fk\16k\u0393\13k\5k\u0395\nk\3k\3k\7k\u0399\nk\fk\16k\u039c\13k\5"+ + "k\u039e\nk\3k\3k\7k\u03a2\nk\fk\16k\u03a5\13k\5k\u03a7\nk\3k\5k\u03aa"+ + "\nk\3l\3l\3l\7l\u03af\nl\fl\16l\u03b2\13l\3l\3l\7l\u03b6\nl\fl\16l\u03b9"+ + "\13l\3l\3l\7l\u03bd\nl\fl\16l\u03c0\13l\3l\3l\7l\u03c4\nl\fl\16l\u03c7"+ + "\13l\5l\u03c9\nl\3l\5l\u03cc\nl\3m\3m\3m\7m\u03d1\nm\fm\16m\u03d4\13m"+ + "\3m\3m\7m\u03d8\nm\fm\16m\u03db\13m\3m\3m\7m\u03df\nm\fm\16m\u03e2\13"+ + "m\3m\3m\7m\u03e6\nm\fm\16m\u03e9\13m\5m\u03eb\nm\3m\5m\u03ee\nm\3n\3n"+ + "\3n\7n\u03f3\nn\fn\16n\u03f6\13n\3n\3n\7n\u03fa\nn\fn\16n\u03fd\13n\3"+ + "n\3n\7n\u0401\nn\fn\16n\u0404\13n\3n\3n\7n\u0408\nn\fn\16n\u040b\13n\5"+ + "n\u040d\nn\3n\3n\7n\u0411\nn\fn\16n\u0414\13n\5n\u0416\nn\3n\3n\7n\u041a"+ + "\nn\fn\16n\u041d\13n\5n\u041f\nn\3n\3n\7n\u0423\nn\fn\16n\u0426\13n\5"+ + "n\u0428\nn\3n\3n\3o\3o\3o\7o\u042f\no\fo\16o\u0432\13o\3o\3o\7o\u0436"+ + "\no\fo\16o\u0439\13o\3o\3o\7o\u043d\no\fo\16o\u0440\13o\3o\3o\7o\u0444"+ + "\no\fo\16o\u0447\13o\5o\u0449\no\3o\3o\7o\u044d\no\fo\16o\u0450\13o\3"+ + "o\3o\7o\u0454\no\fo\16o\u0457\13o\5o\u0459\no\3o\3o\7o\u045d\no\fo\16"+ + "o\u0460\13o\5o\u0462\no\3o\5o\u0465\no\3p\3p\3p\7p\u046a\np\fp\16p\u046d"+ + "\13p\3p\3p\7p\u0471\np\fp\16p\u0474\13p\3p\3p\7p\u0478\np\fp\16p\u047b"+ + "\13p\3p\3p\3q\3q\3q\3r\3r\3r\7r\u0485\nr\fr\16r\u0488\13r\3r\3r\7r\u048c"+ + "\nr\fr\16r\u048f\13r\3r\3r\7r\u0493\nr\fr\16r\u0496\13r\3r\3r\3s\3s\3"+ + "s\3s\2\2t\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\66"+ + "8:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0080\u0082\u0084\u0086\u0088\u008a"+ + "\u008c\u008e\u0090\u0092\u0094\u0096\u0098\u009a\u009c\u009e\u00a0\u00a2"+ + "\u00a4\u00a6\u00a8\u00aa\u00ac\u00ae\u00b0\u00b2\u00b4\u00b6\u00b8\u00ba"+ + "\u00bc\u00be\u00c0\u00c2\u00c4\u00c6\u00c8\u00ca\u00cc\u00ce\u00d0\u00d2"+ + "\u00d4\u00d6\u00d8\u00da\u00dc\u00de\u00e0\u00e2\u00e4\2\3\3\2`a\u04dd"+ + "\2\u00e9\3\2\2\2\4\u00f1\3\2\2\2\6\u00f3\3\2\2\2\b\u0123\3\2\2\2\n\u0126"+ + "\3\2\2\2\f\u012d\3\2\2\2\16\u0139\3\2\2\2\20\u013d\3\2\2\2\22\u0141\3"+ + "\2\2\2\24\u0145\3\2\2\2\26\u0149\3\2\2\2\30\u014e\3\2\2\2\32\u0152\3\2"+ + "\2\2\34\u0156\3\2\2\2\36\u015a\3\2\2\2 \u015e\3\2\2\2\"\u0162\3\2\2\2"+ + "$\u0167\3\2\2\2&\u016b\3\2\2\2(\u016f\3\2\2\2*\u0179\3\2\2\2,\u017d\3"+ + "\2\2\2.\u0181\3\2\2\2\60\u0183\3\2\2\2\62\u0191\3\2\2\2\64\u0196\3\2\2"+ + "\2\66\u019a\3\2\2\28\u019e\3\2\2\2:\u01a0\3\2\2\2<\u01a3\3\2\2\2>\u01a6"+ + "\3\2\2\2@\u01a9\3\2\2\2B\u01ac\3\2\2\2D\u01af\3\2\2\2F\u01b2\3\2\2\2H"+ + "\u01b5\3\2\2\2J\u01b8\3\2\2\2L\u01bb\3\2\2\2N\u01be\3\2\2\2P\u01c1\3\2"+ + "\2\2R\u01c4\3\2\2\2T\u01c7\3\2\2\2V\u01ca\3\2\2\2X\u01cd\3\2\2\2Z\u01d0"+ + "\3\2\2\2\\\u01d3\3\2\2\2^\u01d6\3\2\2\2`\u01d9\3\2\2\2b\u01dc\3\2\2\2"+ + "d\u01df\3\2\2\2f\u01e2\3\2\2\2h\u01e5\3\2\2\2j\u01ef\3\2\2\2l\u01f9\3"+ + "\2\2\2n\u0203\3\2\2\2p\u020d\3\2\2\2r\u0217\3\2\2\2t\u021a\3\2\2\2v\u021d"+ + "\3\2\2\2x\u0220\3\2\2\2z\u0223\3\2\2\2|\u0226\3\2\2\2~\u0230\3\2\2\2\u0080"+ + "\u0233\3\2\2\2\u0082\u0236\3\2\2\2\u0084\u0239\3\2\2\2\u0086\u023c\3\2"+ + "\2\2\u0088\u023f\3\2\2\2\u008a\u0242\3\2\2\2\u008c\u0245\3\2\2\2\u008e"+ + "\u0248\3\2\2\2\u0090\u024b\3\2\2\2\u0092\u024e\3\2\2\2\u0094\u025f\3\2"+ + "\2\2\u0096\u0270\3\2\2\2\u0098\u0273\3\2\2\2\u009a\u0276\3\2\2\2\u009c"+ + "\u0279\3\2\2\2\u009e\u027c\3\2\2\2\u00a0\u027f\3\2\2\2\u00a2\u0282\3\2"+ + "\2\2\u00a4\u0285\3\2\2\2\u00a6\u0288\3\2\2\2\u00a8\u028b\3\2\2\2\u00aa"+ + "\u029c\3\2\2\2\u00ac\u02ad\3\2\2\2\u00ae\u02b0\3\2\2\2\u00b0\u02b3\3\2"+ + "\2\2\u00b2\u02b6\3\2\2\2\u00b4\u02b9\3\2\2\2\u00b6\u02bc\3\2\2\2\u00b8"+ + "\u02bf\3\2\2\2\u00ba\u02c2\3\2\2\2\u00bc\u02c5\3\2\2\2\u00be\u02cf\3\2"+ + "\2\2\u00c0\u02d2\3\2\2\2\u00c2\u02d5\3\2\2\2\u00c4\u02d8\3\2\2\2\u00c6"+ + "\u02db\3\2\2\2\u00c8\u02de\3\2\2\2\u00ca\u02e1\3\2\2\2\u00cc\u02f9\3\2"+ + "\2\2\u00ce\u0311\3\2\2\2\u00d0\u032a\3\2\2\2\u00d2\u0343\3\2\2\2\u00d4"+ + "\u0377\3\2\2\2\u00d6\u03ab\3\2\2\2\u00d8\u03cd\3\2\2\2\u00da\u03ef\3\2"+ + "\2\2\u00dc\u042b\3\2\2\2\u00de\u0466\3\2\2\2\u00e0\u047e\3\2\2\2\u00e2"+ + "\u0481\3\2\2\2\u00e4\u0499\3\2\2\2\u00e6\u00e8\5\6\4\2\u00e7\u00e6\3\2"+ + "\2\2\u00e8\u00eb\3\2\2\2\u00e9\u00e7\3\2\2\2\u00e9\u00ea\3\2\2\2\u00ea"+ + "\u00ed\3\2\2\2\u00eb\u00e9\3\2\2\2\u00ec\u00ee\5\4\3\2\u00ed\u00ec\3\2"+ + "\2\2\u00ed\u00ee\3\2\2\2\u00ee\u00ef\3\2\2\2\u00ef\u00f0\7\2\2\3\u00f0"+ + "\3\3\2\2\2\u00f1\u00f2\7\3\2\2\u00f2\5\3\2\2\2\u00f3\u00f5\7\4\2\2\u00f4"+ + "\u00f6\5\b\5\2\u00f5\u00f4\3\2\2\2\u00f6\u00f7\3\2\2\2\u00f7\u00f5\3\2"+ + "\2\2\u00f7\u00f8\3\2\2\2\u00f8\7\3\2\2\2\u00f9\u0124\5\20\t\2\u00fa\u0124"+ + "\5:\36\2\u00fb\u0124\5<\37\2\u00fc\u0124\5B\"\2\u00fd\u0124\5D#\2\u00fe"+ + "\u0124\5$\23\2\u00ff\u0124\5L\'\2\u0100\u0124\5N(\2\u0101\u0124\5P)\2"+ + "\u0102\u0124\5&\24\2\u0103\u0124\5\22\n\2\u0104\u0124\5^\60\2\u0105\u0124"+ + "\5`\61\2\u0106\u0124\5b\62\2\u0107\u0124\5\36\20\2\u0108\u0124\5n8\2\u0109"+ + "\u0124\5p9\2\u010a\u0124\5h\65\2\u010b\u0124\5j\66\2\u010c\u0124\5\24"+ + "\13\2\u010d\u0124\5v<\2\u010e\u0124\5\26\f\2\u010f\u0124\5|?\2\u0110\u0124"+ + "\5~@\2\u0111\u0124\5\u0080A\2\u0112\u0124\5\u0082B\2\u0113\u0124\5\60"+ + "\31\2\u0114\u0124\5\30\r\2\u0115\u0124\5\32\16\2\u0116\u0124\5\u00a6T"+ + "\2\u0117\u0124\5\34\17\2\u0118\u0124\5\u00acW\2\u0119\u0124\5\u00aeX\2"+ + "\u011a\u0124\5\u00b0Y\2\u011b\u0124\5\u00b2Z\2\u011c\u0124\5\u00b4[\2"+ + "\u011d\u0124\5\u00b6\\\2\u011e\u0124\5\u00b8]\2\u011f\u0124\5\u00ba^\2"+ + "\u0120\u0124\5\n\6\2\u0121\u0124\5 \21\2\u0122\u0124\5\"\22\2\u0123\u00f9"+ + "\3\2\2\2\u0123\u00fa\3\2\2\2\u0123\u00fb\3\2\2\2\u0123\u00fc\3\2\2\2\u0123"+ + "\u00fd\3\2\2\2\u0123\u00fe\3\2\2\2\u0123\u00ff\3\2\2\2\u0123\u0100\3\2"+ + "\2\2\u0123\u0101\3\2\2\2\u0123\u0102\3\2\2\2\u0123\u0103\3\2\2\2\u0123"+ + "\u0104\3\2\2\2\u0123\u0105\3\2\2\2\u0123\u0106\3\2\2\2\u0123\u0107\3\2"+ + "\2\2\u0123\u0108\3\2\2\2\u0123\u0109\3\2\2\2\u0123\u010a\3\2\2\2\u0123"+ + "\u010b\3\2\2\2\u0123\u010c\3\2\2\2\u0123\u010d\3\2\2\2\u0123\u010e\3\2"+ + "\2\2\u0123\u010f\3\2\2\2\u0123\u0110\3\2\2\2\u0123\u0111\3\2\2\2\u0123"+ + "\u0112\3\2\2\2\u0123\u0113\3\2\2\2\u0123\u0114\3\2\2\2\u0123\u0115\3\2"+ + "\2\2\u0123\u0116\3\2\2\2\u0123\u0117\3\2\2\2\u0123\u0118\3\2\2\2\u0123"+ + "\u0119\3\2\2\2\u0123\u011a\3\2\2\2\u0123\u011b\3\2\2\2\u0123\u011c\3\2"+ + "\2\2\u0123\u011d\3\2\2\2\u0123\u011e\3\2\2\2\u0123\u011f\3\2\2\2\u0123"+ + "\u0120\3\2\2\2\u0123\u0121\3\2\2\2\u0123\u0122\3\2\2\2\u0124\t\3\2\2\2"+ + "\u0125\u0127\5\f\7\2\u0126\u0125\3\2\2\2\u0126\u0127\3\2\2\2\u0127\u0129"+ + "\3\2\2\2\u0128\u012a\5\16\b\2\u0129\u0128\3\2\2\2\u012a\u012b\3\2\2\2"+ + "\u012b\u0129\3\2\2\2\u012b\u012c\3\2\2\2\u012c\13\3\2\2\2\u012d\u012e"+ + "\7\5\2\2\u012e\r\3\2\2\2\u012f\u013a\5R*\2\u0130\u013a\5.\30\2\u0131\u013a"+ + "\5\u00bc_\2\u0132\u013a\5\u00be`\2\u0133\u013a\5(\25\2\u0134\u013a\5\u00c4"+ + "c\2\u0135\u013a\5\u00c6d\2\u0136\u013a\5\u00c8e\2\u0137\u013a\5\u00ce"+ + "h\2\u0138\u013a\5,\27\2\u0139\u012f\3\2\2\2\u0139\u0130\3\2\2\2\u0139"+ + "\u0131\3\2\2\2\u0139\u0132\3\2\2\2\u0139\u0133\3\2\2\2\u0139\u0134\3\2"+ + "\2\2\u0139\u0135\3\2\2\2\u0139\u0136\3\2\2\2\u0139\u0137\3\2\2\2\u0139"+ + "\u0138\3\2\2\2\u013a\17\3\2\2\2\u013b\u013e\5> \2\u013c\u013e\5@!\2\u013d"+ + "\u013b\3\2\2\2\u013d\u013c\3\2\2\2\u013e\21\3\2\2\2\u013f\u0142\5Z.\2"+ + "\u0140\u0142\5\\/\2\u0141\u013f\3\2\2\2\u0141\u0140\3\2\2\2\u0142\23\3"+ + "\2\2\2\u0143\u0146\5r:\2\u0144\u0146\5t;\2\u0145\u0143\3\2\2\2\u0145\u0144"+ + "\3\2\2\2\u0146\25\3\2\2\2\u0147\u014a\5x=\2\u0148\u014a\5z>\2\u0149\u0147"+ + "\3\2\2\2\u0149\u0148\3\2\2\2\u014a\27\3\2\2\2\u014b\u014f\5\u009cO\2\u014c"+ + "\u014f\5\u009eP\2\u014d\u014f\5\u00a0Q\2\u014e\u014b\3\2\2\2\u014e\u014c"+ + "\3\2\2\2\u014e\u014d\3\2\2\2\u014f\31\3\2\2\2\u0150\u0153\5\u00a2R\2\u0151"+ + "\u0153\5\u00a4S\2\u0152\u0150\3\2\2\2\u0152\u0151\3\2\2\2\u0153\33\3\2"+ + "\2\2\u0154\u0157\5\u00a8U\2\u0155\u0157\5\u00aaV\2\u0156\u0154\3\2\2\2"+ + "\u0156\u0155\3\2\2\2\u0157\35\3\2\2\2\u0158\u015b\5d\63\2\u0159\u015b"+ + "\5f\64\2\u015a\u0158\3\2\2\2\u015a\u0159\3\2\2\2\u015b\37\3\2\2\2\u015c"+ + "\u015f\5\u00caf\2\u015d\u015f\5\u00ccg\2\u015e\u015c\3\2\2\2\u015e\u015d"+ + "\3\2\2\2\u015f!\3\2\2\2\u0160\u0163\5\u00e2r\2\u0161\u0163\5\u00e4s\2"+ + "\u0162\u0160\3\2\2\2\u0162\u0161\3\2\2\2\u0163#\3\2\2\2\u0164\u0168\5"+ + "F$\2\u0165\u0168\5H%\2\u0166\u0168\5J&\2\u0167\u0164\3\2\2\2\u0167\u0165"+ + "\3\2\2\2\u0167\u0166\3\2\2\2\u0168%\3\2\2\2\u0169\u016c\5T+\2\u016a\u016c"+ + "\5V,\2\u016b\u0169\3\2\2\2\u016b\u016a\3\2\2\2\u016c\'\3\2\2\2\u016d\u0170"+ + "\5\u00c0a\2\u016e\u0170\5\u00c2b\2\u016f\u016d\3\2\2\2\u016f\u016e\3\2"+ + "\2\2\u0170)\3\2\2\2\u0171\u017a\5\u00ceh\2\u0172\u017a\5\u00d0i\2\u0173"+ + "\u017a\5\u00d2j\2\u0174\u017a\5\u00d4k\2\u0175\u017a\5\u00d6l\2\u0176"+ + "\u017a\5\u00d8m\2\u0177\u017a\5\u00dan\2\u0178\u017a\5\u00dco\2\u0179"+ + "\u0171\3\2\2\2\u0179\u0172\3\2\2\2\u0179\u0173\3\2\2\2\u0179\u0174\3\2"+ + "\2\2\u0179\u0175\3\2\2\2\u0179\u0176\3\2\2\2\u0179\u0177\3\2\2\2\u0179"+ + "\u0178\3\2\2\2\u017a+\3\2\2\2\u017b\u017e\5\u00dep\2\u017c\u017e\5\u00e0"+ + "q\2\u017d\u017b\3\2\2\2\u017d\u017c\3\2\2\2\u017e-\3\2\2\2\u017f\u0182"+ + "\5T+\2\u0180\u0182\5X-\2\u0181\u017f\3\2\2\2\u0181\u0180\3\2\2\2\u0182"+ + "/\3\2\2\2\u0183\u0187\7\6\2\2\u0184\u0186\5\62\32\2\u0185\u0184\3\2\2"+ + "\2\u0186\u0189\3\2\2\2\u0187\u0185\3\2\2\2\u0187\u0188\3\2\2\2\u0188\61"+ + "\3\2\2\2\u0189\u0187\3\2\2\2\u018a\u0192\5\64\33\2\u018b\u0192\5\66\34"+ + "\2\u018c\u0192\5\u0090I\2\u018d\u0192\58\35\2\u018e\u0192\5\u0096L\2\u018f"+ + "\u0192\5\u0098M\2\u0190\u0192\5\u009aN\2\u0191\u018a\3\2\2\2\u0191\u018b"+ + "\3\2\2\2\u0191\u018c\3\2\2\2\u0191\u018d\3\2\2\2\u0191\u018e\3\2\2\2\u0191"+ + "\u018f\3\2\2\2\u0191\u0190\3\2\2\2\u0192\63\3\2\2\2\u0193\u0197\5\u0086"+ + "D\2\u0194\u0197\5\u0088E\2\u0195\u0197\5\u008aF\2\u0196\u0193\3\2\2\2"+ + "\u0196\u0194\3\2\2\2\u0196\u0195\3\2\2\2\u0197\65\3\2\2\2\u0198\u019b"+ + "\5\u008cG\2\u0199\u019b\5\u008eH\2\u019a\u0198\3\2\2\2\u019a\u0199\3\2"+ + "\2\2\u019b\67\3\2\2\2\u019c\u019f\5\u0092J\2\u019d\u019f\5\u0094K\2\u019e"+ + "\u019c\3\2\2\2\u019e\u019d\3\2\2\2\u019f9\3\2\2\2\u01a0\u01a1\7\b\2\2"+ + "\u01a1\u01a2\t\2\2\2\u01a2;\3\2\2\2\u01a3\u01a4\7\t\2\2\u01a4\u01a5\t"+ + "\2\2\2\u01a5=\3\2\2\2\u01a6\u01a7\7\n\2\2\u01a7\u01a8\t\2\2\2\u01a8?\3"+ + "\2\2\2\u01a9\u01aa\7\13\2\2\u01aa\u01ab\7a\2\2\u01abA\3\2\2\2\u01ac\u01ad"+ + "\7\f\2\2\u01ad\u01ae\t\2\2\2\u01aeC\3\2\2\2\u01af\u01b0\7\r\2\2\u01b0"+ + "\u01b1\t\2\2\2\u01b1E\3\2\2\2\u01b2\u01b3\7\16\2\2\u01b3\u01b4\t\2\2\2"+ + "\u01b4G\3\2\2\2\u01b5\u01b6\7\17\2\2\u01b6\u01b7\t\2\2\2\u01b7I\3\2\2"+ + "\2\u01b8\u01b9\7\20\2\2\u01b9\u01ba\7a\2\2\u01baK\3\2\2\2\u01bb\u01bc"+ + "\7\21\2\2\u01bc\u01bd\t\2\2\2\u01bdM\3\2\2\2\u01be\u01bf\7\22\2\2\u01bf"+ + "\u01c0\t\2\2\2\u01c0O\3\2\2\2\u01c1\u01c2\7\23\2\2\u01c2\u01c3\t\2\2\2"+ + "\u01c3Q\3\2\2\2\u01c4\u01c5\7\24\2\2\u01c5\u01c6\7a\2\2\u01c6S\3\2\2\2"+ + "\u01c7\u01c8\7\25\2\2\u01c8\u01c9\t\2\2\2\u01c9U\3\2\2\2\u01ca\u01cb\7"+ + "\26\2\2\u01cb\u01cc\t\2\2\2\u01ccW\3\2\2\2\u01cd\u01ce\7\27\2\2\u01ce"+ + "\u01cf\t\2\2\2\u01cfY\3\2\2\2\u01d0\u01d1\7\30\2\2\u01d1\u01d2\t\2\2\2"+ + "\u01d2[\3\2\2\2\u01d3\u01d4\7\31\2\2\u01d4\u01d5\t\2\2\2\u01d5]\3\2\2"+ + "\2\u01d6\u01d7\7\32\2\2\u01d7\u01d8\t\2\2\2\u01d8_\3\2\2\2\u01d9\u01da"+ + "\7\33\2\2\u01da\u01db\t\2\2\2\u01dba\3\2\2\2\u01dc\u01dd\7\34\2\2\u01dd"+ + "\u01de\t\2\2\2\u01dec\3\2\2\2\u01df\u01e0\7\35\2\2\u01e0\u01e1\t\2\2\2"+ + "\u01e1e\3\2\2\2\u01e2\u01e3\7\36\2\2\u01e3\u01e4\7a\2\2\u01e4g\3\2\2\2"+ + "\u01e5\u01e6\7\37\2\2\u01e6\u01ea\7a\2\2\u01e7\u01e9\7\7\2\2\u01e8\u01e7"+ + "\3\2\2\2\u01e9\u01ec\3\2\2\2\u01ea\u01e8\3\2\2\2\u01ea\u01eb\3\2\2\2\u01eb"+ + "\u01ed\3\2\2\2\u01ec\u01ea\3\2\2\2\u01ed\u01ee\7a\2\2\u01eei\3\2\2\2\u01ef"+ + "\u01f0\7 \2\2\u01f0\u01f4\7a\2\2\u01f1\u01f3\7\7\2\2\u01f2\u01f1\3\2\2"+ + "\2\u01f3\u01f6\3\2\2\2\u01f4\u01f2\3\2\2\2\u01f4\u01f5\3\2\2\2\u01f5\u01f7"+ + "\3\2\2\2\u01f6\u01f4\3\2\2\2\u01f7\u01f8\7a\2\2\u01f8k\3\2\2\2\u01f9\u01fa"+ + "\7!\2\2\u01fa\u01fe\7a\2\2\u01fb\u01fd\7\7\2\2\u01fc\u01fb\3\2\2\2\u01fd"+ + "\u0200\3\2\2\2\u01fe\u01fc\3\2\2\2\u01fe\u01ff\3\2\2\2\u01ff\u0201\3\2"+ + "\2\2\u0200\u01fe\3\2\2\2\u0201\u0202\7a\2\2\u0202m\3\2\2\2\u0203\u0204"+ + "\7\"\2\2\u0204\u0208\7a\2\2\u0205\u0207\7\7\2\2\u0206\u0205\3\2\2\2\u0207"+ + "\u020a\3\2\2\2\u0208\u0206\3\2\2\2\u0208\u0209\3\2\2\2\u0209\u020b\3\2"+ + "\2\2\u020a\u0208\3\2\2\2\u020b\u020c\7a\2\2\u020co\3\2\2\2\u020d\u020e"+ + "\7#\2\2\u020e\u0212\7a\2\2\u020f\u0211\7\7\2\2\u0210\u020f\3\2\2\2\u0211"+ + "\u0214\3\2\2\2\u0212\u0210\3\2\2\2\u0212\u0213\3\2\2\2\u0213\u0215\3\2"+ + "\2\2\u0214\u0212\3\2\2\2\u0215\u0216\7a\2\2\u0216q\3\2\2\2\u0217\u0218"+ + "\7$\2\2\u0218\u0219\t\2\2\2\u0219s\3\2\2\2\u021a\u021b\7%\2\2\u021b\u021c"+ + "\t\2\2\2\u021cu\3\2\2\2\u021d\u021e\7&\2\2\u021e\u021f\t\2\2\2\u021fw"+ + "\3\2\2\2\u0220\u0221\7\'\2\2\u0221\u0222\t\2\2\2\u0222y\3\2\2\2\u0223"+ + "\u0224\7(\2\2\u0224\u0225\t\2\2\2\u0225{\3\2\2\2\u0226\u0227\7)\2\2\u0227"+ + "\u022b\7a\2\2\u0228\u022a\7\7\2\2\u0229\u0228\3\2\2\2\u022a\u022d\3\2"+ + "\2\2\u022b\u0229\3\2\2\2\u022b\u022c\3\2\2\2\u022c\u022e\3\2\2\2\u022d"+ + "\u022b\3\2\2\2\u022e\u022f\7a\2\2\u022f}\3\2\2\2\u0230\u0231\7*\2\2\u0231"+ + "\u0232\7a\2\2\u0232\177\3\2\2\2\u0233\u0234\7+\2\2\u0234\u0235\t\2\2\2"+ + "\u0235\u0081\3\2\2\2\u0236\u0237\7,\2\2\u0237\u0238\t\2\2\2\u0238\u0083"+ + "\3\2\2\2\u0239\u023a\7-\2\2\u023a\u023b\7a\2\2\u023b\u0085\3\2\2\2\u023c"+ + "\u023d\7.\2\2\u023d\u023e\t\2\2\2\u023e\u0087\3\2\2\2\u023f\u0240\7/\2"+ + "\2\u0240\u0241\t\2\2\2\u0241\u0089\3\2\2\2\u0242\u0243\7\60\2\2\u0243"+ + "\u0244\7a\2\2\u0244\u008b\3\2\2\2\u0245\u0246\7\61\2\2\u0246\u0247\7a"+ + "\2\2\u0247\u008d\3\2\2\2\u0248\u0249\7\62\2\2\u0249\u024a\t\2\2\2\u024a"+ + "\u008f\3\2\2\2\u024b\u024c\7\63\2\2\u024c\u024d\7a\2\2\u024d\u0091\3\2"+ + "\2\2\u024e\u024f\7\64\2\2\u024f\u0253\t\2\2\2\u0250\u0252\7\7\2\2\u0251"+ + "\u0250\3\2\2\2\u0252\u0255\3\2\2\2\u0253\u0251\3\2\2\2\u0253\u0254\3\2"+ + "\2\2\u0254\u0256\3\2\2\2\u0255\u0253\3\2\2\2\u0256\u025a\t\2\2\2\u0257"+ + "\u0259\7\7\2\2\u0258\u0257\3\2\2\2\u0259\u025c\3\2\2\2\u025a\u0258\3\2"+ + "\2\2\u025a\u025b\3\2\2\2\u025b\u025d\3\2\2\2\u025c\u025a\3\2\2\2\u025d"+ + "\u025e\t\2\2\2\u025e\u0093\3\2\2\2\u025f\u0260\7\65\2\2\u0260\u0264\7"+ + "a\2\2\u0261\u0263\7\7\2\2\u0262\u0261\3\2\2\2\u0263\u0266\3\2\2\2\u0264"+ + "\u0262\3\2\2\2\u0264\u0265\3\2\2\2\u0265\u0267\3\2\2\2\u0266\u0264\3\2"+ + "\2\2\u0267\u026b\t\2\2\2\u0268\u026a\7\7\2\2\u0269\u0268\3\2\2\2\u026a"+ + "\u026d\3\2\2\2\u026b\u0269\3\2\2\2\u026b\u026c\3\2\2\2\u026c\u026e\3\2"+ + "\2\2\u026d\u026b\3\2\2\2\u026e\u026f\t\2\2\2\u026f\u0095\3\2\2\2\u0270"+ + "\u0271\7\66\2\2\u0271\u0272\t\2\2\2\u0272\u0097\3\2\2\2\u0273\u0274\7"+ + "\67\2\2\u0274\u0275\t\2\2\2\u0275\u0099\3\2\2\2\u0276\u0277\78\2\2\u0277"+ + "\u0278\7a\2\2\u0278\u009b\3\2\2\2\u0279\u027a\79\2\2\u027a\u027b\t\2\2"+ + "\2\u027b\u009d\3\2\2\2\u027c\u027d\7:\2\2\u027d\u027e\t\2\2\2\u027e\u009f"+ + "\3\2\2\2\u027f\u0280\7;\2\2\u0280\u0281\7a\2\2\u0281\u00a1\3\2\2\2\u0282"+ + "\u0283\7<\2\2\u0283\u0284\7a\2\2\u0284\u00a3\3\2\2\2\u0285\u0286\7=\2"+ + "\2\u0286\u0287\t\2\2\2\u0287\u00a5\3\2\2\2\u0288\u0289\7>\2\2\u0289\u028a"+ + "\7a\2\2\u028a\u00a7\3\2\2\2\u028b\u028c\7?\2\2\u028c\u0290\t\2\2\2\u028d"+ + "\u028f\7\7\2\2\u028e\u028d\3\2\2\2\u028f\u0292\3\2\2\2\u0290\u028e\3\2"+ + "\2\2\u0290\u0291\3\2\2\2\u0291\u0293\3\2\2\2\u0292\u0290\3\2\2\2\u0293"+ + "\u0297\t\2\2\2\u0294\u0296\7\7\2\2\u0295\u0294\3\2\2\2\u0296\u0299\3\2"+ + "\2\2\u0297\u0295\3\2\2\2\u0297\u0298\3\2\2\2\u0298\u029a\3\2\2\2\u0299"+ + "\u0297\3\2\2\2\u029a\u029b\t\2\2\2\u029b\u00a9\3\2\2\2\u029c\u029d\7@"+ + "\2\2\u029d\u02a1\7a\2\2\u029e\u02a0\7\7\2\2\u029f\u029e\3\2\2\2\u02a0"+ + "\u02a3\3\2\2\2\u02a1\u029f\3\2\2\2\u02a1\u02a2\3\2\2\2\u02a2\u02a4\3\2"+ + "\2\2\u02a3\u02a1\3\2\2\2\u02a4\u02a8\t\2\2\2\u02a5\u02a7\7\7\2\2\u02a6"+ + "\u02a5\3\2\2\2\u02a7\u02aa\3\2\2\2\u02a8\u02a6\3\2\2\2\u02a8\u02a9\3\2"+ + "\2\2\u02a9\u02ab\3\2\2\2\u02aa\u02a8\3\2\2\2\u02ab\u02ac\t\2\2\2\u02ac"+ + "\u00ab\3\2\2\2\u02ad\u02ae\7A\2\2\u02ae\u02af\t\2\2\2\u02af\u00ad\3\2"+ + "\2\2\u02b0\u02b1\7B\2\2\u02b1\u02b2\t\2\2\2\u02b2\u00af\3\2\2\2\u02b3"+ + "\u02b4\7C\2\2\u02b4\u02b5\7a\2\2\u02b5\u00b1\3\2\2\2\u02b6\u02b7\7D\2"+ + "\2\u02b7\u02b8\t\2\2\2\u02b8\u00b3\3\2\2\2\u02b9\u02ba\7E\2\2\u02ba\u02bb"+ + "\t\2\2\2\u02bb\u00b5\3\2\2\2\u02bc\u02bd\7F\2\2\u02bd\u02be\7a\2\2\u02be"+ + "\u00b7\3\2\2\2\u02bf\u02c0\7G\2\2\u02c0\u02c1\7a\2\2\u02c1\u00b9\3\2\2"+ + "\2\u02c2\u02c3\7H\2\2\u02c3\u02c4\t\2\2\2\u02c4\u00bb\3\2\2\2\u02c5\u02c6"+ + "\7I\2\2\u02c6\u02ca\7a\2\2\u02c7\u02c9\7\7\2\2\u02c8\u02c7\3\2\2\2\u02c9"+ + "\u02cc\3\2\2\2\u02ca\u02c8\3\2\2\2\u02ca\u02cb\3\2\2\2\u02cb\u02cd\3\2"+ + "\2\2\u02cc\u02ca\3\2\2\2\u02cd\u02ce\7a\2\2\u02ce\u00bd\3\2\2\2\u02cf"+ + "\u02d0\7J\2\2\u02d0\u02d1\7a\2\2\u02d1\u00bf\3\2\2\2\u02d2\u02d3\7K\2"+ + "\2\u02d3\u02d4\t\2\2\2\u02d4\u00c1\3\2\2\2\u02d5\u02d6\7L\2\2\u02d6\u02d7"+ + "\t\2\2\2\u02d7\u00c3\3\2\2\2\u02d8\u02d9\7M\2\2\u02d9\u02da\t\2\2\2\u02da"+ + "\u00c5\3\2\2\2\u02db\u02dc\7N\2\2\u02dc\u02dd\7a\2\2\u02dd\u00c7\3\2\2"+ + "\2\u02de\u02df\7O\2\2\u02df\u02e0\7a\2\2\u02e0\u00c9\3\2\2\2\u02e1\u02e2"+ + "\7P\2\2\u02e2\u02e6\t\2\2\2\u02e3\u02e5\7\7\2\2\u02e4\u02e3\3\2\2\2\u02e5"+ + "\u02e8\3\2\2\2\u02e6\u02e4\3\2\2\2\u02e6\u02e7\3\2\2\2\u02e7\u02e9\3\2"+ + "\2\2\u02e8\u02e6\3\2\2\2\u02e9\u02ed\7a\2\2\u02ea\u02ec\7\7\2\2\u02eb"+ + "\u02ea\3\2\2\2\u02ec\u02ef\3\2\2\2\u02ed\u02eb\3\2\2\2\u02ed\u02ee\3\2"+ + "\2\2\u02ee\u02f0\3\2\2\2\u02ef\u02ed\3\2\2\2\u02f0\u02f4\t\2\2\2\u02f1"+ + "\u02f3\7\7\2\2\u02f2\u02f1\3\2\2\2\u02f3\u02f6\3\2\2\2\u02f4\u02f2\3\2"+ + "\2\2\u02f4\u02f5\3\2\2\2\u02f5\u02f7\3\2\2\2\u02f6\u02f4\3\2\2\2\u02f7"+ + "\u02f8\7a\2\2\u02f8\u00cb\3\2\2\2\u02f9\u02fa\7Q\2\2\u02fa\u02fe\t\2\2"+ + "\2\u02fb\u02fd\7\7\2\2\u02fc\u02fb\3\2\2\2\u02fd\u0300\3\2\2\2\u02fe\u02fc"+ + "\3\2\2\2\u02fe\u02ff\3\2\2\2\u02ff\u0301\3\2\2\2\u0300\u02fe\3\2\2\2\u0301"+ + "\u0305\7a\2\2\u0302\u0304\7\7\2\2\u0303\u0302\3\2\2\2\u0304\u0307\3\2"+ + "\2\2\u0305\u0303\3\2\2\2\u0305\u0306\3\2\2\2\u0306\u0308\3\2\2\2\u0307"+ + "\u0305\3\2\2\2\u0308\u030c\7a\2\2\u0309\u030b\7\7\2\2\u030a\u0309\3\2"+ + "\2\2\u030b\u030e\3\2\2\2\u030c\u030a\3\2\2\2\u030c\u030d\3\2\2\2\u030d"+ + "\u030f\3\2\2\2\u030e\u030c\3\2\2\2\u030f\u0310\7a\2\2\u0310\u00cd\3\2"+ + "\2\2\u0311\u0312\7R\2\2\u0312\u0316\t\2\2\2\u0313\u0315\7\7\2\2\u0314"+ + "\u0313\3\2\2\2\u0315\u0318\3\2\2\2\u0316\u0314\3\2\2\2\u0316\u0317\3\2"+ + "\2\2\u0317\u0319\3\2\2\2\u0318\u0316\3\2\2\2\u0319\u031d\7a\2\2\u031a"+ + "\u031c\7\7\2\2\u031b\u031a\3\2\2\2\u031c\u031f\3\2\2\2\u031d\u031b\3\2"+ + "\2\2\u031d\u031e\3\2\2\2\u031e\u0320\3\2\2\2\u031f\u031d\3\2\2\2\u0320"+ + "\u0324\t\2\2\2\u0321\u0323\7\7\2\2\u0322\u0321\3\2\2\2\u0323\u0326\3\2"+ + "\2\2\u0324\u0322\3\2\2\2\u0324\u0325\3\2\2\2\u0325\u0328\3\2\2\2\u0326"+ + "\u0324\3\2\2\2\u0327\u0329\7a\2\2\u0328\u0327\3\2\2\2\u0328\u0329\3\2"+ + "\2\2\u0329\u00cf\3\2\2\2\u032a\u032b\7S\2\2\u032b\u032f\7a\2\2\u032c\u032e"+ + "\7\7\2\2\u032d\u032c\3\2\2\2\u032e\u0331\3\2\2\2\u032f\u032d\3\2\2\2\u032f"+ + "\u0330\3\2\2\2\u0330\u0332\3\2\2\2\u0331\u032f\3\2\2\2\u0332\u0336\7a"+ + "\2\2\u0333\u0335\7\7\2\2\u0334\u0333\3\2\2\2\u0335\u0338\3\2\2\2\u0336"+ + "\u0334\3\2\2\2\u0336\u0337\3\2\2\2\u0337\u0339\3\2\2\2\u0338\u0336\3\2"+ + "\2\2\u0339\u033d\7a\2\2\u033a\u033c\7\7\2\2\u033b\u033a\3\2\2\2\u033c"+ + "\u033f\3\2\2\2\u033d\u033b\3\2\2\2\u033d\u033e\3\2\2\2\u033e\u0341\3\2"+ + "\2\2\u033f\u033d\3\2\2\2\u0340\u0342\7a\2\2\u0341\u0340\3\2\2\2\u0341"+ + "\u0342\3\2\2\2\u0342\u00d1\3\2\2\2\u0343\u0344\7T\2\2\u0344\u0348\t\2"+ + "\2\2\u0345\u0347\7\7\2\2\u0346\u0345\3\2\2\2\u0347\u034a\3\2\2\2\u0348"+ + "\u0346\3\2\2\2\u0348\u0349\3\2\2\2\u0349\u034b\3\2\2\2\u034a\u0348\3\2"+ + "\2\2\u034b\u034f\7a\2\2\u034c\u034e\7\7\2\2\u034d\u034c\3\2\2\2\u034e"+ + "\u0351\3\2\2\2\u034f\u034d\3\2\2\2\u034f\u0350\3\2\2\2\u0350\u0352\3\2"+ + "\2\2\u0351\u034f\3\2\2\2\u0352\u0356\t\2\2\2\u0353\u0355\7\7\2\2\u0354"+ + "\u0353\3\2\2\2\u0355\u0358\3\2\2\2\u0356\u0354\3\2\2\2\u0356\u0357\3\2"+ + "\2\2\u0357\u0360\3\2\2\2\u0358\u0356\3\2\2\2\u0359\u035d\7a\2\2\u035a"+ + "\u035c\7\7\2\2\u035b\u035a\3\2\2\2\u035c\u035f\3\2\2\2\u035d\u035b\3\2"+ + "\2\2\u035d\u035e\3\2\2\2\u035e\u0361\3\2\2\2\u035f\u035d\3\2\2\2\u0360"+ + "\u0359\3\2\2\2\u0360\u0361\3\2\2\2\u0361\u0369\3\2\2\2\u0362\u0366\7a"+ + "\2\2\u0363\u0365\7\7\2\2\u0364\u0363\3\2\2\2\u0365\u0368\3\2\2\2\u0366"+ + "\u0364\3\2\2\2\u0366\u0367\3\2\2\2\u0367\u036a\3\2\2\2\u0368\u0366\3\2"+ + "\2\2\u0369\u0362\3\2\2\2\u0369\u036a\3\2\2\2\u036a\u0372\3\2\2\2\u036b"+ + "\u036f\7a\2\2\u036c\u036e\7\7\2\2\u036d\u036c\3\2\2\2\u036e\u0371\3\2"+ + "\2\2\u036f\u036d\3\2\2\2\u036f\u0370\3\2\2\2\u0370\u0373\3\2\2\2\u0371"+ + "\u036f\3\2\2\2\u0372\u036b\3\2\2\2\u0372\u0373\3\2\2\2\u0373\u0375\3\2"+ + "\2\2\u0374\u0376\t\2\2\2\u0375\u0374\3\2\2\2\u0375\u0376\3\2\2\2\u0376"+ + "\u00d3\3\2\2\2\u0377\u0378\7U\2\2\u0378\u037c\t\2\2\2\u0379\u037b\7\7"+ + "\2\2\u037a\u0379\3\2\2\2\u037b\u037e\3\2\2\2\u037c\u037a\3\2\2\2\u037c"+ + "\u037d\3\2\2\2\u037d\u037f\3\2\2\2\u037e\u037c\3\2\2\2\u037f\u0383\7a"+ + "\2\2\u0380\u0382\7\7\2\2\u0381\u0380\3\2\2\2\u0382\u0385\3\2\2\2\u0383"+ + "\u0381\3\2\2\2\u0383\u0384\3\2\2\2\u0384\u0386\3\2\2\2\u0385\u0383\3\2"+ + "\2\2\u0386\u038a\t\2\2\2\u0387\u0389\7\7\2\2\u0388\u0387\3\2\2\2\u0389"+ + "\u038c\3\2\2\2\u038a\u0388\3\2\2\2\u038a\u038b\3\2\2\2\u038b\u0394\3\2"+ + "\2\2\u038c\u038a\3\2\2\2\u038d\u0391\7a\2\2\u038e\u0390\7\7\2\2\u038f"+ + "\u038e\3\2\2\2\u0390\u0393\3\2\2\2\u0391\u038f\3\2\2\2\u0391\u0392\3\2"+ + "\2\2\u0392\u0395\3\2\2\2\u0393\u0391\3\2\2\2\u0394\u038d\3\2\2\2\u0394"+ + "\u0395\3\2\2\2\u0395\u039d\3\2\2\2\u0396\u039a\7a\2\2\u0397\u0399\7\7"+ + "\2\2\u0398\u0397\3\2\2\2\u0399\u039c\3\2\2\2\u039a\u0398\3\2\2\2\u039a"+ + "\u039b\3\2\2\2\u039b\u039e\3\2\2\2\u039c\u039a\3\2\2\2\u039d\u0396\3\2"+ + "\2\2\u039d\u039e\3\2\2\2\u039e\u03a6\3\2\2\2\u039f\u03a3\7a\2\2\u03a0"+ + "\u03a2\7\7\2\2\u03a1\u03a0\3\2\2\2\u03a2\u03a5\3\2\2\2\u03a3\u03a1\3\2"+ + "\2\2\u03a3\u03a4\3\2\2\2\u03a4\u03a7\3\2\2\2\u03a5\u03a3\3\2\2\2\u03a6"+ + "\u039f\3\2\2\2\u03a6\u03a7\3\2\2\2\u03a7\u03a9\3\2\2\2\u03a8\u03aa\t\2"+ + "\2\2\u03a9\u03a8\3\2\2\2\u03a9\u03aa\3\2\2\2\u03aa\u00d5\3\2\2\2\u03ab"+ + "\u03ac\7V\2\2\u03ac\u03b0\t\2\2\2\u03ad\u03af\7\7\2\2\u03ae\u03ad\3\2"+ + "\2\2\u03af\u03b2\3\2\2\2\u03b0\u03ae\3\2\2\2\u03b0\u03b1\3\2\2\2\u03b1"+ + "\u03b3\3\2\2\2\u03b2\u03b0\3\2\2\2\u03b3\u03b7\7a\2\2\u03b4\u03b6\7\7"+ + "\2\2\u03b5\u03b4\3\2\2\2\u03b6\u03b9\3\2\2\2\u03b7\u03b5\3\2\2\2\u03b7"+ + "\u03b8\3\2\2\2\u03b8\u03ba\3\2\2\2\u03b9\u03b7\3\2\2\2\u03ba\u03be\t\2"+ + "\2\2\u03bb\u03bd\7\7\2\2\u03bc\u03bb\3\2\2\2\u03bd\u03c0\3\2\2\2\u03be"+ + "\u03bc\3\2\2\2\u03be\u03bf\3\2\2\2\u03bf\u03c8\3\2\2\2\u03c0\u03be\3\2"+ + "\2\2\u03c1\u03c5\7a\2\2\u03c2\u03c4\7\7\2\2\u03c3\u03c2\3\2\2\2\u03c4"+ + "\u03c7\3\2\2\2\u03c5\u03c3\3\2\2\2\u03c5\u03c6\3\2\2\2\u03c6\u03c9\3\2"+ + "\2\2\u03c7\u03c5\3\2\2\2\u03c8\u03c1\3\2\2\2\u03c8\u03c9\3\2\2\2\u03c9"+ + "\u03cb\3\2\2\2\u03ca\u03cc\7a\2\2\u03cb\u03ca\3\2\2\2\u03cb\u03cc\3\2"+ + "\2\2\u03cc\u00d7\3\2\2\2\u03cd\u03ce\7W\2\2\u03ce\u03d2\7a\2\2\u03cf\u03d1"+ + "\7\7\2\2\u03d0\u03cf\3\2\2\2\u03d1\u03d4\3\2\2\2\u03d2\u03d0\3\2\2\2\u03d2"+ + "\u03d3\3\2\2\2\u03d3\u03d5\3\2\2\2\u03d4\u03d2\3\2\2\2\u03d5\u03d9\7a"+ + "\2\2\u03d6\u03d8\7\7\2\2\u03d7\u03d6\3\2\2\2\u03d8\u03db\3\2\2\2\u03d9"+ + "\u03d7\3\2\2\2\u03d9\u03da\3\2\2\2\u03da\u03dc\3\2\2\2\u03db\u03d9\3\2"+ + "\2\2\u03dc\u03e0\7a\2\2\u03dd\u03df\7\7\2\2\u03de\u03dd\3\2\2\2\u03df"+ + "\u03e2\3\2\2\2\u03e0\u03de\3\2\2\2\u03e0\u03e1\3\2\2\2\u03e1\u03ea\3\2"+ + "\2\2\u03e2\u03e0\3\2\2\2\u03e3\u03e7\7a\2\2\u03e4\u03e6\7\7\2\2\u03e5"+ + "\u03e4\3\2\2\2\u03e6\u03e9\3\2\2\2\u03e7\u03e5\3\2\2\2\u03e7\u03e8\3\2"+ + "\2\2\u03e8\u03eb\3\2\2\2\u03e9\u03e7\3\2\2\2\u03ea\u03e3\3\2\2\2\u03ea"+ + "\u03eb\3\2\2\2\u03eb\u03ed\3\2\2\2\u03ec\u03ee\7a\2\2\u03ed\u03ec\3\2"+ + "\2\2\u03ed\u03ee\3\2\2\2\u03ee\u00d9\3\2\2\2\u03ef\u03f0\7X\2\2\u03f0"+ + "\u03f4\t\2\2\2\u03f1\u03f3\7\7\2\2\u03f2\u03f1\3\2\2\2\u03f3\u03f6\3\2"+ + "\2\2\u03f4\u03f2\3\2\2\2\u03f4\u03f5\3\2\2\2\u03f5\u03f7\3\2\2\2\u03f6"+ + "\u03f4\3\2\2\2\u03f7\u03fb\7a\2\2\u03f8\u03fa\7\7\2\2\u03f9\u03f8\3\2"+ + "\2\2\u03fa\u03fd\3\2\2\2\u03fb\u03f9\3\2\2\2\u03fb\u03fc\3\2\2\2\u03fc"+ + "\u03fe\3\2\2\2\u03fd\u03fb\3\2\2\2\u03fe\u0402\t\2\2\2\u03ff\u0401\7\7"+ + "\2\2\u0400\u03ff\3\2\2\2\u0401\u0404\3\2\2\2\u0402\u0400\3\2\2\2\u0402"+ + "\u0403\3\2\2\2\u0403\u040c\3\2\2\2\u0404\u0402\3\2\2\2\u0405\u0409\7a"+ + "\2\2\u0406\u0408\7\7\2\2\u0407\u0406\3\2\2\2\u0408\u040b\3\2\2\2\u0409"+ + "\u0407\3\2\2\2\u0409\u040a\3\2\2\2\u040a\u040d\3\2\2\2\u040b\u0409\3\2"+ + "\2\2\u040c\u0405\3\2\2\2\u040c\u040d\3\2\2\2\u040d\u0415\3\2\2\2\u040e"+ + "\u0412\7a\2\2\u040f\u0411\7\7\2\2\u0410\u040f\3\2\2\2\u0411\u0414\3\2"+ + "\2\2\u0412\u0410\3\2\2\2\u0412\u0413\3\2\2\2\u0413\u0416\3\2\2\2\u0414"+ + "\u0412\3\2\2\2\u0415\u040e\3\2\2\2\u0415\u0416\3\2\2\2\u0416\u041e\3\2"+ + "\2\2\u0417\u041b\7a\2\2\u0418\u041a\7\7\2\2\u0419\u0418\3\2\2\2\u041a"+ + "\u041d\3\2\2\2\u041b\u0419\3\2\2\2\u041b\u041c\3\2\2\2\u041c\u041f\3\2"+ + "\2\2\u041d\u041b\3\2\2\2\u041e\u0417\3\2\2\2\u041e\u041f\3\2\2\2\u041f"+ + "\u0427\3\2\2\2\u0420\u0424\7a\2\2\u0421\u0423\7\7\2\2\u0422\u0421\3\2"+ + "\2\2\u0423\u0426\3\2\2\2\u0424\u0422\3\2\2\2\u0424\u0425\3\2\2\2\u0425"+ + "\u0428\3\2\2\2\u0426\u0424\3\2\2\2\u0427\u0420\3\2\2\2\u0427\u0428\3\2"+ + "\2\2\u0428\u0429\3\2\2\2\u0429\u042a\t\2\2\2\u042a\u00db\3\2\2\2\u042b"+ + "\u042c\7Y\2\2\u042c\u0430\t\2\2\2\u042d\u042f\7\7\2\2\u042e\u042d\3\2"+ + "\2\2\u042f\u0432\3\2\2\2\u0430\u042e\3\2\2\2\u0430\u0431\3\2\2\2\u0431"+ + "\u0433\3\2\2\2\u0432\u0430\3\2\2\2\u0433\u0437\7a\2\2\u0434\u0436\7\7"+ + "\2\2\u0435\u0434\3\2\2\2\u0436\u0439\3\2\2\2\u0437\u0435\3\2\2\2\u0437"+ + "\u0438\3\2\2\2\u0438\u043a\3\2\2\2\u0439\u0437\3\2\2\2\u043a\u043e\t\2"+ + "\2\2\u043b\u043d\7\7\2\2\u043c\u043b\3\2\2\2\u043d\u0440\3\2\2\2\u043e"+ + "\u043c\3\2\2\2\u043e\u043f\3\2\2\2\u043f\u0448\3\2\2\2\u0440\u043e\3\2"+ + "\2\2\u0441\u0445\7a\2\2\u0442\u0444\7\7\2\2\u0443\u0442\3\2\2\2\u0444"+ + "\u0447\3\2\2\2\u0445\u0443\3\2\2\2\u0445\u0446\3\2\2\2\u0446\u0449\3\2"+ + "\2\2\u0447\u0445\3\2\2\2\u0448\u0441\3\2\2\2\u0448\u0449\3\2\2\2\u0449"+ + "\u044a\3\2\2\2\u044a\u044e\7a\2\2\u044b\u044d\7\7\2\2\u044c\u044b\3\2"+ + "\2\2\u044d\u0450\3\2\2\2\u044e\u044c\3\2\2\2\u044e\u044f\3\2\2\2\u044f"+ + "\u0458\3\2\2\2\u0450\u044e\3\2\2\2\u0451\u0455\7a\2\2\u0452\u0454\7\7"+ + "\2\2\u0453\u0452\3\2\2\2\u0454\u0457\3\2\2\2\u0455\u0453\3\2\2\2\u0455"+ + "\u0456\3\2\2\2\u0456\u0459\3\2\2\2\u0457\u0455\3\2\2\2\u0458\u0451\3\2"+ + "\2\2\u0458\u0459\3\2\2\2\u0459\u0461\3\2\2\2\u045a\u045e\7a\2\2\u045b"+ + "\u045d\7\7\2\2\u045c\u045b\3\2\2\2\u045d\u0460\3\2\2\2\u045e\u045c\3\2"+ + "\2\2\u045e\u045f\3\2\2\2\u045f\u0462\3\2\2\2\u0460\u045e\3\2\2\2\u0461"+ + "\u045a\3\2\2\2\u0461\u0462\3\2\2\2\u0462\u0464\3\2\2\2\u0463\u0465\t\2"+ + "\2\2\u0464\u0463\3\2\2\2\u0464\u0465\3\2\2\2\u0465\u00dd\3\2\2\2\u0466"+ + "\u0467\7Z\2\2\u0467\u046b\t\2\2\2\u0468\u046a\7\7\2\2\u0469\u0468\3\2"+ + "\2\2\u046a\u046d\3\2\2\2\u046b\u0469\3\2\2\2\u046b\u046c\3\2\2\2\u046c"+ + "\u046e\3\2\2\2\u046d\u046b\3\2\2\2\u046e\u0472\7a\2\2\u046f\u0471\7\7"+ + "\2\2\u0470\u046f\3\2\2\2\u0471\u0474\3\2\2\2\u0472\u0470\3\2\2\2\u0472"+ + "\u0473\3\2\2\2\u0473\u0475\3\2\2\2\u0474\u0472\3\2\2\2\u0475\u0479\7a"+ + "\2\2\u0476\u0478\7\7\2\2\u0477\u0476\3\2\2\2\u0478\u047b\3\2\2\2\u0479"+ + "\u0477\3\2\2\2\u0479\u047a\3\2\2\2\u047a\u047c\3\2\2\2\u047b\u0479\3\2"+ + "\2\2\u047c\u047d\t\2\2\2\u047d\u00df\3\2\2\2\u047e\u047f\7[\2\2\u047f"+ + "\u0480\t\2\2\2\u0480\u00e1\3\2\2\2\u0481\u0482\7\\\2\2\u0482\u0486\t\2"+ + "\2\2\u0483\u0485\7\7\2\2\u0484\u0483\3\2\2\2\u0485\u0488\3\2\2\2\u0486"+ + "\u0484\3\2\2\2\u0486\u0487\3\2\2\2\u0487\u0489\3\2\2\2\u0488\u0486\3\2"+ + "\2\2\u0489\u048d\7a\2\2\u048a\u048c\7\7\2\2\u048b\u048a\3\2\2\2\u048c"+ + "\u048f\3\2\2\2\u048d\u048b\3\2\2\2\u048d\u048e\3\2\2\2\u048e\u0490\3\2"+ + "\2\2\u048f\u048d\3\2\2\2\u0490\u0494\7a\2\2\u0491\u0493\7\7\2\2\u0492"+ + "\u0491\3\2\2\2\u0493\u0496\3\2\2\2\u0494\u0492\3\2\2\2\u0494\u0495\3\2"+ + "\2\2\u0495\u0497\3\2\2\2\u0496\u0494\3\2\2\2\u0497\u0498\t\2\2\2\u0498"+ + "\u00e3\3\2\2\2\u0499\u049a\7]\2\2\u049a\u049b\t\2\2\2\u049b\u00e5\3\2"+ + "\2\2w\u00e9\u00ed\u00f7\u0123\u0126\u012b\u0139\u013d\u0141\u0145\u0149"+ + "\u014e\u0152\u0156\u015a\u015e\u0162\u0167\u016b\u016f\u0179\u017d\u0181"+ + "\u0187\u0191\u0196\u019a\u019e\u01ea\u01f4\u01fe\u0208\u0212\u022b\u0253"+ + "\u025a\u0264\u026b\u0290\u0297\u02a1\u02a8\u02ca\u02e6\u02ed\u02f4\u02fe"+ + "\u0305\u030c\u0316\u031d\u0324\u0328\u032f\u0336\u033d\u0341\u0348\u034f"+ + "\u0356\u035d\u0360\u0366\u0369\u036f\u0372\u0375\u037c\u0383\u038a\u0391"+ + "\u0394\u039a\u039d\u03a3\u03a6\u03a9\u03b0\u03b7\u03be\u03c5\u03c8\u03cb"+ + "\u03d2\u03d9\u03e0\u03e7\u03ea\u03ed\u03f4\u03fb\u0402\u0409\u040c\u0412"+ + "\u0415\u041b\u041e\u0424\u0427\u0430\u0437\u043e\u0445\u0448\u044e\u0455"+ + "\u0458\u045e\u0461\u0464\u046b\u0472\u0479\u0486\u048d\u0494"; + public static final ATN _ATN = + new ATNDeserializer().deserialize(_serializedATN.toCharArray()); + static { + _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()]; + for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) { + _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i); + } + } +} \ No newline at end of file
--- a/src/main/java/de/intevation/lada/importer/laf/LafParserException.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -/** - * Exception thrown in the LAF import process. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class LafParserException -extends Exception -{ - /** - * - */ - private static final long serialVersionUID = 1L; - - public LafParserException(String message) { - super(message); - } -}
--- a/src/main/java/de/intevation/lada/importer/laf/LafProducer.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,456 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.inject.Inject; - -import de.intevation.lada.importer.ReportItem; -import de.intevation.lada.model.land.KommentarM; -import de.intevation.lada.model.land.KommentarP; -import de.intevation.lada.model.land.Messung; -import de.intevation.lada.model.land.Messwert; -import de.intevation.lada.model.land.Ortszuordnung; -import de.intevation.lada.model.land.Probe; -import de.intevation.lada.model.land.ZusatzWert; -import de.intevation.lada.model.stammdaten.Ort; - -/** - * The LAFProducer creates entity objects form key-value pairs using the - * AttributeMapper. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class LafProducer -{ - /** - * The probe object created by this producer. - */ - private Probe probe; - - /** - * The messung object created by this producer. - */ - private Messung messung; - - /** - * Creator used to build ort objects. - */ - @Inject - private OrtCreator ort; - - /** - * Probekommentare created by this producer. - */ - private List<KommentarP> pKommentare; - - /** - * Messungskommentare created by this producer. - */ - private Map<Messung, List<KommentarM>> mKommentare; - - /** - * Messungen created by this producer. - */ - private List<Messung> messungen; - - /** - * Orte created by this producer. - */ - private List<Ortszuordnung> ortszuordnungen; - - /** - * SOrte created by this producer. - */ - private List<Ort> orte; - - /** - * Messwerte created by this producer. - */ - private Map<Messung, List<Messwert>> messwerte; - - /** - * Zusatzwerte created by this producer. - */ - private List<ZusatzWert> zusatzwerte; - - /** - * Format mapping for probe objects. - */ - private List<EntryFormat> probenFormat; - - /** - * Format mapping for messung objects. - */ - private List<EntryFormat> messungFormat; - - /** - * Format mapping for ort objects. - */ - private List<EntryFormat> ortFormat; - - /** - * The warnings. - */ - private Map<String, List<ReportItem>> warnings; - - /** - * The errors. - */ - private Map<String, List<ReportItem>> errors; - - /** - * The mapper used to set attributes. - */ - @Inject - private AttributeMapper mapper; - - /** - * Default contructor. Initializes the producer and reads the config file - * using the systemproperty "de.intevation.lada.importconfig". - */ - public LafProducer() { - this.warnings = new HashMap<String, List<ReportItem>>(); - this.errors = new HashMap<String, List<ReportItem>>(); - this.probe = new Probe(); - this.pKommentare = new ArrayList<KommentarP>(); - this.mKommentare = new HashMap<Messung, List<KommentarM>>(); - this.messungen = new ArrayList<Messung>(); - this.ortszuordnungen = new ArrayList<Ortszuordnung>(); - this.messwerte = new HashMap<Messung, List<Messwert>>(); - String fileName = "/import.json"; - LafFormat format = new LafFormat(); - format.readConfigFile(fileName); - probenFormat = format.getFormat("probe"); - messungFormat = format.getFormat("messung"); - ortFormat = format.getFormat("ort"); - } - - /** - * Add data to the producer. - * This triggers the producer to create a new object or add data to - * existing objects. - * - * @param key The key. - * @param values The value - * @throws LafParserException - */ - public void addData(String key, Object values) - throws LafParserException { - String lKey = key.toLowerCase(); - if(lKey.equals("probenkommentar")) { - KommentarP kommentar = new KommentarP(); - kommentar.setProbeId(this.probe.getId()); - this.pKommentare.add( - mapper.addAttribute(lKey, values, kommentar)); - } - else if (lKey.equals("kommentar")) { - KommentarM kommentar = new KommentarM(); - kommentar.setMessungsId(this.messung.getId()); - if (this.mKommentare.get(this.messung) == null) { - this.mKommentare.put(this.messung, new ArrayList<KommentarM>()); - } - this.mKommentare.get(this.messung).add( - mapper.addAttribute(lKey, values, kommentar)); - } - else if (lKey.equals("probenzusatzbeschreibung")) { - ZusatzWert wert = new ZusatzWert(); - ZusatzWert zusatzWert = mapper.addAttribute(lKey, values, wert); - if (zusatzWert != null) { - zusatzWert.setProbeId(probe.getId()); - this.zusatzwerte.add(zusatzWert); - } - else { - String ekey = probe.getId() == null ? - "probeId" : probe.getId().toString(); - List<ReportItem> err = this.errors.get(ekey); - if (err == null) { - this.errors.put(ekey, mapper.getErrors()); - } - else { - err.addAll(mapper.getErrors()); - } - } - } - else if (lKey.equals("pzb_s")) { - ZusatzWert wert = new ZusatzWert(); - ZusatzWert zusatzWert = mapper.addAttributeS(lKey, values, wert); - if (zusatzWert != null) { - zusatzWert.setProbeId(probe.getId()); - this.zusatzwerte.add(zusatzWert); - } - else { - String ekey = probe.getId() == null ? - "probeId" : probe.getId().toString(); - List<ReportItem> err = this.errors.get(ekey); - if (err == null) { - this.errors.put(ekey, mapper.getErrors()); - } - else { - err.addAll(mapper.getErrors()); - } - } - } - else if (lKey.equals("messwert")) { - Messwert m = new Messwert(); - m.setMessungsId(this.messung.getId()); - Messwert wert = mapper.addAttribute(lKey, values, m); - if (wert != null) { - if (this.messwerte.get(this.messung) == null) { - this.messwerte.put(this.messung, new ArrayList<Messwert>()); - } - this.messwerte.get(this.messung).add( - mapper.addAttribute(lKey, values, wert)); - } - else { - String ekey = probe.getId() == null ? - "probeId" : probe.getId().toString(); - List<ReportItem> err = this.errors.get(ekey); - if (err == null) { - this.errors.put(ekey, mapper.getErrors()); - } - else { - err.addAll(mapper.getErrors()); - } - } - } - else if (isValidMessung(lKey, values.toString())) { - this.messung = mapper.addAttribute(lKey, values, this.messung); - } - else if (isValidProbe(lKey, values.toString())) { - this.probe = mapper.addAttribute(lKey, values, this.probe); - if (this.probe == null) { - this.errors.put(values.toString(), mapper.getErrors()); - throw new LafParserException(values.toString() + " exists"); - } - } - else if (isValidOrt(lKey, values.toString())) { - this.ort.addAttribute(lKey, values); - } - } - - /** - * Check if the key is defined in the config file and validate the value - * using the pattern defined for this key. - * - * @param key The key. - * @param value The value. - * @return valid or not. - */ - private boolean isValidOrt(String key, String value) { - for (EntryFormat ef: ortFormat) { - if (ef.getKey().equals(key.toLowerCase())) { - if (ef.getPattern().matcher(value).matches()) { - return true; - } - } - } - return false; - } - - /** - * Check if the key is defined in the config file and validate the value - * using the pattern defined for this key. - * - * @param key The key. - * @param value The value. - * @return valid or not. - */ - private boolean isValidMessung(String key, String value) { - for (EntryFormat ef: messungFormat) { - if (ef.getKey().equals(key.toLowerCase())) { - if (ef.getPattern().matcher(value).matches()) { - return true; - } - } - } - return false; - } - - /** - * Check if the key is defined in the config file and validate the value - * using the pattern defined for this key. - * - * @param key The key. - * @param value The value. - * @return valid or not. - */ - private boolean isValidProbe(String key, String value) { - for (EntryFormat ef: probenFormat) { - if (ef.getKey().equals(key.toLowerCase())) { - if (ef.getPattern().matcher(value).matches()) { - return true; - } - } - } - return false; - } - - /** - * @return the {@link LProbe} entity. - */ - public Probe getProbe() { - return this.probe; - } - - /** - * @return List of {@link LMessung} entities. - */ - public List<Messung> getMessungen() { - return this.messungen; - } - - /** - * @return List of {@link Ort} entities. - */ - public List<Ort> getOrte() { - return this.orte; - } - - /** - * @return List of {@link LOrt} entities. - */ - public List<Ortszuordnung> getOrtszuordnungen() { - return this.ortszuordnungen; - } - - /** - * @return List of {@link LKommentarP} entities. - */ - public List<KommentarP> getProbenKommentare() { - return this.pKommentare; - } - - /** - * @return List of {@link LKommentarM} entities. - */ - public Map<Messung, List<KommentarM>> getMessungsKommentare() { - return this.mKommentare; - } - - /** - * @return List of {@link LMesswert} entities. - */ - public Map<Messung, List<Messwert>> getMesswerte() { - return this.messwerte; - } - - /** - * @return List of {@link LZusatzWert} entities. - */ - public List<ZusatzWert> getZusatzwerte() { - return this.zusatzwerte; - } - - /** - * Reset errors and warnings. - */ - public void reset() { - this.errors = new HashMap<String, List<ReportItem>>(); - this.warnings = new HashMap<String, List<ReportItem>>(); - this.probe = new Probe(); - this.messungen = new ArrayList<Messung>(); - this.messung = null; - this.ortszuordnungen = new ArrayList<Ortszuordnung>(); - this.orte = new ArrayList<Ort>(); - this.ort.reset(); - this.messwerte = new HashMap<Messung, List<Messwert>>(); - this.mKommentare = new HashMap<Messung, List<KommentarM>>(); - this.pKommentare = new ArrayList<KommentarP>(); - mapper.reset(); - } - - /** - * Add the current {@link LMessung} entity to the List and create a new one. - */ - public void newMessung() { - if (this.messung != null) { - if (this.messung.getFertig() == null) { - this.messung.setFertig(false); - } - if (this.messung.getGeplant() == null) { - this.messung.setGeplant(false); - } - this.messungen.add(this.messung); - } - this.messung = new Messung(); - } - - /** - * Add the {@link Ort} and {@link LOrt} entities to the lists and create - * a new {@link OrtCreator}. - */ - public void newOrt() { - if (this.ort != null) { - Ort o = this.ort.toOrt(); - if (o != null) { - this.orte.add(o); - } - Ortszuordnung lo = this.ort.toOrtszuordnung(); - if (lo != null) { - this.ortszuordnungen.add(lo); - } - } - OrtCreator creator = this.ort; - creator.reset(); - creator.setProbeId(this.probe.getId()); - } - - /** - * @return the warnings - */ - public Map<String, List<ReportItem>> getWarnings() { - if (this.probe == null) { - return this.warnings; - } - if (mapper.getWarnings() == null || mapper.getWarnings().size() == 0) { - return this.warnings; - } - String key = probe.getId() == null ? "probeId" : probe.getId().toString(); - List<ReportItem> warn = this.warnings.get(key); - if (warn == null) { - this.warnings.put(key, mapper.getWarnings()); - } - else { - warn.addAll(mapper.getWarnings()); - } - return this.warnings; - } - - /** - * @return the errors - */ - public Map<String, List<ReportItem>> getErrors() { - if (this.probe == null) { - return this.errors; - } - if (mapper.getErrors() == null || mapper.getErrors().size() == 0) { - return this.errors; - } - String key = probe.getIdAlt() == null ? - "probeId" : probe.getIdAlt(); - List<ReportItem> err = this.errors.get(key); - if (err == null) { - this.errors.put(key, mapper.getErrors()); - } - else { - err.addAll(mapper.getErrors()); - } - return this.errors; - } - - public void finishOrt() { - if (orte.isEmpty()) { - return; - } - } -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/importer/laf/LafRawData.java Fri Sep 30 14:05:28 2016 +0200 @@ -0,0 +1,115 @@ +package de.intevation.lada.importer.laf; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LafRawData { + + private List<LafRawData.Probe> probe; + + public LafRawData () { + this.probe = new ArrayList<LafRawData.Probe>(); + } + + public class Probe { + private Map<String, String> attributes; + private List<LafRawData.Messung> messung; + private List<Map<String, String>> kommentar; + private List<Map<String, String>> zusatzwert; + private List<Map<String, String>> ort; + + public Probe() { + this.attributes = new HashMap<String, String>(); + this.ort = new ArrayList<Map<String, String>>(); + this.kommentar = new ArrayList<Map<String, String>>(); + this.zusatzwert = new ArrayList<Map<String, String>>(); + this.messung = new ArrayList<LafRawData.Messung>(); + } + + public void addAttribute(String key, String value) { + this.attributes.put(key, value); + } + + public Map<String, String> getAttributes() { + return this.attributes; + } + + public void addMessung(LafRawData.Messung messung) { + this.messung.add(messung); + } + + public List<LafRawData.Messung> getMessungen() { + return this.messung; + } + + public void addKommentar(Map<String, String> kommentar) { + this.kommentar.add(kommentar); + } + + public List<Map<String, String>> getKommentare() { + return this.kommentar; + } + + public void addZusatzwert(Map<String, String> zusatzwert) { + this.zusatzwert.add(zusatzwert); + } + + public List<Map<String, String>> getZusatzwerte() { + return this.zusatzwert; + } + + public void addOrt(Map<String, String> ort) { + this.ort.add(ort); + } + + public List<Map<String, String>> getOrte() { + return this.ort; + } + }; + + public class Messung { + private Map<String, String> attributes; + private List<Map<String, String>> messwert; + private List<Map<String, String>> kommentar; + + public Messung() { + this.attributes = new HashMap<String, String>(); + this.messwert = new ArrayList<Map<String, String>>(); + this.kommentar = new ArrayList<Map<String, String>>(); + } + + public void addAttribute(String key, String value) { + this.attributes.put(key, value); + } + + public Map<String, String> getAttributes() { + return this.attributes; + } + + public void addMesswert(Map<String, String> messwert) { + this.messwert.add(messwert); + } + + public List<Map<String, String>> getMesswerte() { + return this.messwert; + } + + public void addKommentar(Map<String, String> kommentar) { + this.kommentar.add(kommentar); + } + } + + public void addProbe(LafRawData.Probe probe) { + this.probe.add(probe); + } + + public List<LafRawData.Probe> getProben() { + return this.probe; + } + + public int count() { + return this.probe.size(); + } +}
--- a/src/main/java/de/intevation/lada/importer/laf/LafWriter.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,226 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import javax.inject.Inject; -import javax.persistence.PersistenceException; - -import de.intevation.lada.importer.ReportItem; -import de.intevation.lada.model.land.KommentarM; -import de.intevation.lada.model.land.KommentarP; -import de.intevation.lada.model.land.Messung; -import de.intevation.lada.model.land.Messwert; -import de.intevation.lada.model.land.Ortszuordnung; -import de.intevation.lada.model.land.Probe; -import de.intevation.lada.model.stammdaten.Ort; -import de.intevation.lada.util.annotation.AuthorizationConfig; -import de.intevation.lada.util.annotation.RepositoryConfig; -import de.intevation.lada.util.auth.Authorization; -import de.intevation.lada.util.auth.AuthorizationType; -import de.intevation.lada.util.auth.UserInfo; -import de.intevation.lada.util.data.Repository; -import de.intevation.lada.util.data.RepositoryType; - -/** - * Writer to persist new entities in the database. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class LafWriter { - - /** - * The repository to write database objects. - */ - @Inject - @RepositoryConfig(type=RepositoryType.RW) - private Repository repository; - - /** - * The authorization module. - */ - @Inject - @AuthorizationConfig(type=AuthorizationType.HEADER) - private Authorization authorization; - - /** - * The errors. - */ - private List<ReportItem> errors; - - /** - * The warnings. - */ - private List<ReportItem> warnings; - - /** - * The current probe id used to create child objects. - */ - private Integer currentProbeId; - - /** - * Default constructor. - */ - public LafWriter() { - errors = new ArrayList<ReportItem>(); - warnings = new ArrayList<ReportItem>(); - } - - /** - * Write a new {@link LProbe} object to the database using - * authorization and validation. - * - * @param auth The authentication information. - * @param probe The new {@link LProbe} object. - * @return success - */ - public boolean writeProbe(UserInfo userInfo, Probe probe) { - if (!authorization.isAuthorized(userInfo, probe, Probe.class)) { - errors.add(new ReportItem("auth", "not authorized", 699)); - return false; - } - if (probe.getIdAlt() == null) { - errors.add(new ReportItem("probeId", "missing", 673)); - return false; - } - try { - repository.create(probe, "land"); - this.currentProbeId = probe.getId(); - } - catch (PersistenceException e) { - errors.add(new ReportItem("probe", "writing", 670)); - return false; - } - return true; - } - - /** - * Write new {@link LMessung} objects to the database using - * authorization and validation. - * - * @param auth The authentication information. - * @param messungen The new {@link LMessung} objects. - * @return success - */ - public boolean writeMessungen( - UserInfo userInfo, - Messung messung - ) { - messung.setProbeId(this.currentProbeId); - repository.create(messung, "land"); - return true; - } - - /** - * Write new {@link SOrt} objects to the database. - * - * @param auth The authentication information. - * @param orte List of {@link SOrt} objects. - * @return success - */ - public boolean writeOrte(UserInfo userInfo, List<Ort> orte) { - return true; - } - - /** - * Write new {@link LOrt} objects to the database using validation. - * - * @param auth The authentication information. - * @param orte List of {@link LOrt} objects. - * @return success - */ - public boolean writeOrtszuordung(UserInfo userInfo, Ortszuordnung ort) { - ort.setProbeId(this.currentProbeId); - repository.create(ort, "land"); - return true; - } - - /** - * Write new {@link LKommentarP} objects to the database. - * - * @param auth The authentication information. - * @param kommentare List of {@link LKommentarP} objects. - * @return success - */ - public boolean writeProbenKommentare( - UserInfo userInfo, - List<KommentarP> kommentare - ) { - for(KommentarP kommentar: kommentare) { - kommentar.setProbeId(this.currentProbeId); - repository.create(kommentar, "land"); - } - return true; - } - - /** - * Write new {@link LKommentarM} objects to the database. - * - * @param auth The authentication information. - * @param kommentare List of {@link LKommentarM} objects. - * @return success - */ - public boolean writeMessungKommentare( - UserInfo userInfo, - Map<Messung, List<KommentarM>> kommentare - ) { - for (Messung messung : kommentare.keySet()) { - for (KommentarM kommentar: kommentare.get(messung)) { - kommentar.setMessungsId(messung.getId()); - repository.create(kommentar, "land"); - } - } - return true; - } - - /** - * Write new {@link LMesswert} objects to the database using validation. - * - * @param auth The authentication information. - * @param werte List of {@link LMesswert} objects. - * @return success - */ - public boolean writeMesswerte( - UserInfo userInfo, - Map<Messung, List<Messwert>> werte - ) { - for (Messung messung : werte.keySet()) { - for (Messwert messwert: werte.get(messung)) { - messwert.setMessungsId(messung.getId()); - repository.create(messwert, "land"); - } - } - return true; - } - - /** - * @return the errors - */ - public List<ReportItem> getErrors() { - return errors; - } - - /** - * @return the warnings - */ - public List<ReportItem> getWarnings() { - return warnings; - } - - /** - * Reset the errors and warnings. - */ - public void reset() { - this.warnings = new ArrayList<ReportItem>(); - this.errors = new ArrayList<ReportItem>(); - this.currentProbeId = null; - } -}
--- a/src/main/java/de/intevation/lada/importer/laf/OrtCreator.java Tue Sep 20 16:01:02 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,794 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ -package de.intevation.lada.importer.laf; - -import java.util.ArrayList; -import java.util.List; - -import javax.inject.Inject; - -import org.apache.log4j.Logger; - -import de.intevation.lada.importer.ReportItem; -import de.intevation.lada.model.land.Ortszuordnung; -import de.intevation.lada.model.stammdaten.Ort; -import de.intevation.lada.model.stammdaten.Staat; -import de.intevation.lada.model.stammdaten.Verwaltungseinheit; -import de.intevation.lada.util.annotation.RepositoryConfig; -import de.intevation.lada.util.data.QueryBuilder; -import de.intevation.lada.util.data.Repository; -import de.intevation.lada.util.data.RepositoryType; - -/** - * Class to produce Ort/LOrt objects from a given set of attributes. - * - * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> - */ -public class OrtCreator -{ - @Inject - private Logger logger; - - @Inject - @RepositoryConfig(type=RepositoryType.RW) - private Repository repository; - - /** - * List of warnings. - */ - private List<ReportItem> warnings; - - /** - * List of errors. - */ - private List<ReportItem> errors; - - private Integer probeId; - private Integer ortId; - private String ortCode; - private String ortTyp; - private String zusatztext; - private String landLang; - private String landKurz; - private String landS; - private String gemSchluessel; - private String gemName; - private String koordArt; - private String koord; - private String koordS; - private String bezeichnung; - private String beschreibung; - private String nuts; - private String hoehe; - private String koordinaten; - private String koordinatenS; - - public OrtCreator() { - this.ortId = null; - this.warnings = new ArrayList<ReportItem>(); - this.errors = new ArrayList<ReportItem>(); - } - - /** - * @return the warnings - */ - public List<ReportItem> getWarnings() { - return warnings; - } - - /** - * @return the errors - */ - public List<ReportItem> getErrors() { - return errors; - } - - /** - * @return the probeId - */ - public Integer getProbeId() { - return this.probeId; - } - - /** - * @param probeId the probeId to set - */ - public void setProbeId(Integer probeId) { - this.probeId = probeId; - } - - /** - * @return the ortCode - */ - public String getOrtCode() { - return ortCode; - } - - /** - * @param ortCode the ortCode to set - */ - public void setOrtCode(String ortCode) { - this.ortCode = ortCode; - } - - /** - * @return the ortTyp - */ - public String getOrtTyp() { - return ortTyp; - } - - /** - * @param ortTyp the ortTyp to set - */ - public void setOrtTyp(String ortTyp) { - this.ortTyp = ortTyp; - } - - /** - * @return the zusatztext - */ - public String getZusatztext() { - return zusatztext; - } - - /** - * @param zusatztext the zusatztext to set - */ - public void setZusatztext(String zusatztext) { - this.zusatztext = zusatztext; - } - - /** - * @return the landLang - */ - public String getLandLang() { - return landLang; - } - - /** - * @param landLang the landLang to set - */ - public void setLandLang(String landLang) { - this.landLang = landLang; - } - - /** - * @return the landKurz - */ - public String getLandKurz() { - return landKurz; - } - - /** - * @param landKurz the landKurz to set - */ - public void setLandKurz(String landKurz) { - this.landKurz = landKurz; - } - - /** - * @return the landS - */ - public String getLandS() { - return landS; - } - - /** - * @param landS the landS to set - */ - public void setLandS(String landS) { - this.landS = landS; - } - - /** - * @return the gemSchluessel - */ - public String getGemSchluessel() { - return gemSchluessel; - } - - /** - * @param gemSchluessel the gemSchluessel to set - */ - public void setGemSchluessel(String gemSchluessel) { - this.gemSchluessel = gemSchluessel; - } - - /** - * @return the koordArt - */ - public String getKoordArt() { - return koordArt; - } - - /** - * @param koordArt the koordArt to set - */ - public void setKoordArt(String koordArt) { - this.koordArt = koordArt; - } - - /** - * @return the koord - */ - public String getKoord() { - return koord; - } - - /** - * @param koord the koord to set - */ - public void setKoord(String koord) { - this.koord = koord; - } - - /** - * @return the koordS - */ - public String getKoordS() { - return koordS; - } - - /** - * @param koordS the koordS to set - */ - public void setKoordS(String koordS) { - this.koordS = koordS; - } - - /** - * @return the nuts - */ - public String getNuts() { - return nuts; - } - - /** - * @param nuts the nuts to set - */ - public void setNuts(String nuts) { - this.nuts = nuts; - } - - /** - * @return the hoehe - */ - public String getHoehe() { - return hoehe; - } - - /** - * @param hoehe the hoehe to set - */ - public void setHoehe(String hoehe) { - this.hoehe = hoehe; - } - - /** - * @return the bezeichung - */ - public String getBezeichnung() { - return bezeichnung; - } - - /** - * @param bezeichnung the bezeichnung to set - */ - public void setBezeichnung(String bezeichnung) { - this.bezeichnung = bezeichnung; - } - - /** - * @return the gemName - */ - public String getGemName() { - return gemName; - } - - /** - * @param gemName the gemName to set - */ - public void setGemName(String gemName) { - this.gemName = gemName; - } - - /** - * @return the beschreibung - */ - public String getBeschreibung() { - return beschreibung; - } - - /** - * @param beschreibung the beschreibung to set - */ - public void setBeschreibung(String beschreibung) { - this.beschreibung = beschreibung; - } - - /** - * @return the koordinaten - */ - public String getKoordinaten() { - return koordinaten; - } - - /** - * @param koordinaten the koordinaten to set - */ - public void setKoordinaten(String koordinaten) { - this.koordinaten = koordinaten; - } - - /** - * @return the koordinatenS - */ - public String getKoordinatenS() { - return koordinatenS; - } - - /** - * @param koordinatenS the koordinatenS to set - */ - public void setKoordinatenS(String koordinatenS) { - this.koordinatenS = koordinatenS; - } - - /** - * Add an attribute to the OrtCreator. The creator is used to build the - * two objects Ort and LOrt. - * - * @param key The key mapping to a object member. - * @param value The value to set. - * @param ort The creator object. - * @return The updated creator object. - */ - public void addAttribute( - String key, - Object value - ) { - if ("ort_code".equals(key)) { - this.setOrtCode(value.toString()); - } - if ("ort_typ".equals(key)) { - this.setOrtTyp(value.toString()); - } - if ("ort_zusatz".equals(key)) { - this.setZusatztext(value.toString()); - } - if ("ort_land_lang".equals(key)) { - this.setLandLang(value.toString()); - } - if ("ort_land_kurz".equals(key)) { - this.setLandKurz(value.toString()); - } - if ("ort_land_s".equals(key)) { - this.setLandS(value.toString()); - } - if ("ort_gemeindeschluessel".equals(key)) { - this.setGemSchluessel(value.toString()); - } - if ("ort_bezeichnung".equals(key)) { - this.setBezeichnung(value.toString()); - } - if ("ort_beschreibung".equals(key)) { - this.setBeschreibung(value.toString()); - } - if ("ort_nuts_code".equals(key)) { - this.setNuts(value.toString()); - } - if ("ort_hoehe_land".equals(key)) { - this.setHoehe(value.toString()); - } - if ("ort_koordinaten".equals(key)) { - this.setKoordinaten(value.toString()); - } - if ("ort_koordinaten_s".equals(key)) { - this.setKoordinatenS(value.toString()); - } - } - - - /** - * Create the Ort object. - * - * @return The new Ort. - */ - public Ort toOrt() { - if (this.ortCode != null && this.ortCode.length() > 0) { - return null; - } - logger.debug("create a new ort"); - Ort ort = new Ort(); - repository.create(ort, "stamm"); - this.ortId = ort.getId(); - boolean koord = true; - if (this.koordinatenS != null && this.koordinatenS.length() > 0) { - ort = setKoordinatenS(ort); - koord = false; - if (this.koordinaten != null && this.koordinaten.length() > 0) { - this.warnings.add(new ReportItem("koodinaten", null, 631)); - } - } - else if (this.koordinaten != null && this.koordinaten.length() > 0) { - ort = setKoordinaten(ort); - koord = false; - } - if (this.gemSchluessel != null && - this.gemSchluessel.length() > 0){ - ort = setGemeindeS(ort, koord); - koord = false; - if(this.gemName != null && this.gemName.length() > 0) { - this.warnings.add(new ReportItem("gemName", null, 631)); - } - } - else if (this.gemName != null && this.gemName.length() > 0) { - ort = setGemeinde(ort, koord); - koord = false; - } - if(this.landS != null && this.landS.length() > 0) { - ort = setLandS(ort, koord); - koord = false; - if (this.landLang != null && this.landLang.length() > 0) { - this.warnings.add(new ReportItem("landLang", null, 631)); - } - if (this.landKurz != null && this.landKurz.length() > 0) { - this.warnings.add(new ReportItem("landKurz", null, 631)); - } - } - else if (this.landKurz != null && this.landKurz.length() > 0) { - ort = setLandKurz(ort, koord); - koord = false; - if (this.landLang != null && this.landLang.length() > 0) { - this.warnings.add(new ReportItem("landLang", null, 631)); - } - } - else if (this.landLang != null && this.landLang.length() > 0) { - ort = setLandLang(ort, koord); - } - if (koord) { - this.warnings.add(new ReportItem("koordinaten", null, 631)); - return null; - } - if (this.nuts != null && this.nuts.length() > 0) { - ort.setNutsCode(nuts); - } - else if (ort.getGemId() != null && - ort.getGemId().length() > 0) - { - QueryBuilder<Verwaltungseinheit> builder = - new QueryBuilder<Verwaltungseinheit>( - repository.entityManager("stamm"), - Verwaltungseinheit.class); - builder.and("id", ort.getGemId()); - @SuppressWarnings("unchecked") - List<Verwaltungseinheit> einheit = - (List<Verwaltungseinheit>)repository.filter( - builder.getQuery(), - "stamm").getData(); - - if (!einheit.isEmpty()) { - ort.setNutsCode(einheit.get(0).getNuts()); - } - } - ort.setLangtext(beschreibung); - if (this.hoehe != null) { - ort.setHoeheLand(Float.valueOf(hoehe)); - } - repository.update(ort, "stamm"); - return ort; - } - - /** - * Find the SStaat object identified by the land_lang string and set a - * reference to the ort object. - * - * @param ort The ort object. - * @param koord Set the coordinates or not. - * @return The Ort object. - */ - private Ort setLandLang(Ort ort, boolean koord) { - QueryBuilder<Staat> builder = - new QueryBuilder<Staat>( - repository.entityManager("stamm"), - Staat.class); - builder.and("staat", this.landLang); - @SuppressWarnings("unchecked") - List<Staat> staat = - (List<Staat>)repository.filter( - builder.getQuery(), - "stamm").getData(); - - if (staat.isEmpty()) { - this.warnings.add(new ReportItem("landLang", null, 631)); - return ort; - } - ort.setStaatId(staat.get(0).getId()); - if (koord) { - ort.setKoordXExtern(staat.get(0).getKoordXExtern()); - ort.setKoordYExtern(staat.get(0).getKoordYExtern()); - } - return ort; - } - - /** - * Find the SStaat object identified by the land_kurz string and set a - * reference to the ort object. - * - * @param ort The ort object. - * @param koord Set the coordinates or not. - * @return The Ort object. - */ - private Ort setLandKurz(Ort ort, boolean koord) { - QueryBuilder<Staat> builder = - new QueryBuilder<Staat>( - repository.entityManager("stamm"), - Staat.class); - builder.and("staatKurz", this.landKurz); - @SuppressWarnings("unchecked") - List<Staat> staat = - (List<Staat>)repository.filter( - builder.getQuery(), - "stamm").getData(); - - if (staat.isEmpty()) { - this.warnings.add(new ReportItem("landKurz", null, 631)); - return ort; - } - ort.setStaatId(staat.get(0).getId()); - if (koord) { - ort.setKoordXExtern(staat.get(0).getKoordXExtern()); - ort.setKoordYExtern(staat.get(0).getKoordYExtern()); - } - return ort; - } - - /** - * Find the SStaat object identified by the land_s id and set a - * reference to the ort object. - * - * @param ort The ort object. - * @param koord Set the coordinates or not. - * @return The Ort object. - */ - private Ort setLandS(Ort ort, boolean koord) { - ort.setStaatId(Integer.valueOf(this.landS)); - if (koord) { - QueryBuilder<Staat> builder = - new QueryBuilder<Staat>( - repository.entityManager("stamm"), - Staat.class); - builder.and("id", this.landS); - @SuppressWarnings("unchecked") - List<Staat> staat = - (List<Staat>)repository.filter( - builder.getQuery(), - "stamm").getData(); - - if (staat.isEmpty()) { - this.warnings.add(new ReportItem("staat", null, 631)); - return ort; - } - ort.setKoordXExtern(staat.get(0).getKoordXExtern()); - ort.setLongitude(Double.valueOf(staat.get(0).getKoordXExtern())); - ort.setKoordYExtern(staat.get(0).getKoordYExtern()); - ort.setLatitude(Double.valueOf(staat.get(0).getKoordYExtern())); - } - return ort; - } - - /** - * Find the SVerwaltungseinheit object identified by the gem_name string - * and set a reference to the ort object. - * - * @param ort The ort object. - * @param koord Set the coordinates or not. - * @return The Ort object. - */ - private Ort setGemeinde(Ort ort, boolean koord) { - QueryBuilder<Verwaltungseinheit> builder = - new QueryBuilder<Verwaltungseinheit>( - repository.entityManager("stamm"), - Verwaltungseinheit.class); - builder.and("bezeichnung", this.gemName); - @SuppressWarnings("unchecked") - List<Verwaltungseinheit> einheit= - (List<Verwaltungseinheit>)repository.filter( - builder.getQuery(), - "stamm").getData(); - if (einheit.isEmpty()) { - this.warnings.add(new ReportItem("verwaltungseinheit", null, 631)); - return ort; - } - ort.setGemId(einheit.get(0).getId()); - if (koord) { - ort.setKoordXExtern(einheit.get(0).getKoordXExtern()); - ort.setKoordYExtern(einheit.get(0).getKoordYExtern()); - } - return ort; - } - - /** - * Find the SVerwaltungseinheit object identified by the gem_schluessel id - * and set a reference to the ort object. - * - * @param ort The ort object. - * @param koord Set the coordinates or not. - * @return The Ort object. - */ - private Ort setGemeindeS(Ort ort, boolean koord) { - ort.setGemId(this.gemSchluessel); - if (koord) { - QueryBuilder<Verwaltungseinheit> builder = - new QueryBuilder<Verwaltungseinheit>( - repository.entityManager("stamm"), - Verwaltungseinheit.class); - builder.and("bezeichnung", this.gemName); - @SuppressWarnings("unchecked") - List<Verwaltungseinheit> einheit= - (List<Verwaltungseinheit>)repository.filter( - builder.getQuery(), - "stamm").getData(); - if (einheit.isEmpty()) { - this.warnings.add(new ReportItem("verwaltungseinheit", null, 631)); - return ort; - } - ort.setKoordXExtern(einheit.get(0).getKoordXExtern()); - ort.setKoordYExtern(einheit.get(0).getKoordYExtern()); - } - return ort; - } - - /** - * Parse the coordinates and the the attributes to the new ort object. - * - * @param ort The ort object. - * @return The Ort object. - */ - private Ort setKoordinaten(Ort ort) { - String art = ""; - String x = ""; - String y = ""; - String tmp = ""; - if (this.koordinaten.startsWith("\"")) { - tmp = this.koordinaten.substring(1); - art = tmp.substring(0, tmp.indexOf("\"")); - tmp = tmp.substring(tmp.indexOf("\"") + 2); - } - else { - art = this.koordinaten.substring(0, this.koordinaten.indexOf(" ")); - tmp = this.koordinaten.substring( - 0, this.koordinaten.indexOf(" ") + 1); - } - if (tmp.startsWith("\"")) { - tmp = tmp.substring(1); - x = tmp.substring(0, tmp.indexOf("\"")); - tmp = tmp.substring(0, tmp.indexOf("\"") + 2); - } - else { - x = tmp.substring(0, tmp.indexOf(" ")); - tmp = tmp.substring(0, tmp.indexOf(" ") + 1); - } - if (tmp.startsWith("\"")) { - tmp = tmp.substring(1); - y = tmp.substring(0, tmp.indexOf("\"")); - } - else { - y = tmp; - } - ort.setKoordXExtern(x); - ort.setKoordYExtern(y); - ort.setKdaId(Integer.valueOf(art)); - return ort; - } - - /** - * Parse the coordinates and the the attributes to the new ort object. - * - * @param ort The ort object. - * @return The Ort object. - */ - private Ort setKoordinatenS(Ort ort) { - String art = ""; - String x = ""; - String y = ""; - String tmp = ""; - if (this.koordinatenS.startsWith("\"")) { - tmp = this.koordinatenS.substring(1); - art = tmp.substring(0, tmp.indexOf("\"")); - tmp = tmp.substring(tmp.indexOf("\"") + 2); - } - else { - art = this.koordinatenS.substring(0, this.koordinatenS.indexOf(" ")); - tmp = this.koordinatenS.substring( - this.koordinatenS.indexOf(" ") + 1); - } - if (tmp.startsWith("\"")) { - tmp = tmp.substring(1); - x = tmp.substring(0, tmp.indexOf("\"")); - tmp = tmp.substring(tmp.indexOf("\"") + 2); - } - else { - x = tmp.substring(0, tmp.indexOf(" ")); - tmp = tmp.substring(tmp.indexOf(" ") + 1); - } - if (tmp.startsWith("\"")) { - tmp = tmp.substring(1); - y = tmp.substring(0, tmp.indexOf("\"")); - } - else { - y = tmp; - } - ort.setKoordXExtern(x); - ort.setLongitude(Double.valueOf(x)); - ort.setKoordYExtern(y); - ort.setLatitude(Double.valueOf(y)); - ort.setKdaId(Integer.valueOf(art)); - return ort; - } - - /** - * Create the new LOrt object from the given attributes. - * - * @return The new LOrt object. - */ - public Ortszuordnung toOrtszuordnung() { - if (this.ortId == null && - (this.ortCode == null || this.ortCode.length() == 0) - ) { - return null; - } - if(this.ortCode != null && this.ortCode.length() > 0) { - QueryBuilder<Ort> builder = - new QueryBuilder<Ort>( - repository.entityManager("stamm"), - Ort.class); - builder.and("bezeichnung", this.ortCode); - @SuppressWarnings("unchecked") - List<Ort> orte= - (List<Ort>)repository.filter( - builder.getQuery(), - "stamm").getData(); - if (orte != null && !orte.isEmpty()) { - this.ortId = orte.get(0).getId(); - } - } - Ortszuordnung ort = new Ortszuordnung(); - ort.setOrtId(Long.valueOf(this.ortId)); - ort.setProbeId(this.probeId); - ort.setOrtszuordnungTyp(this.ortTyp); - ort.setOrtszusatztext(this.zusatztext); - return ort; - } - - /** - * Reset the current data sets. - */ - public void reset() { - this.beschreibung = null; - this.bezeichnung = null; - this.gemName = null; - this.gemSchluessel = null; - this.hoehe = null; - this.koord = null; - this.koordArt = null; - this.koordinaten = null; - this.koordinatenS = null; - this.koordS = null; - this.landKurz = null; - this.landLang = null; - this.landS = null; - this.nuts = null; - this.ortCode = null; - this.ortId = null; - this.ortTyp = null; - this.probeId = null; - this.zusatztext = null; - } -}
--- a/src/main/java/de/intevation/lada/rest/importer/LafImportService.java Tue Sep 20 16:01:02 2016 +0200 +++ b/src/main/java/de/intevation/lada/rest/importer/LafImportService.java Fri Sep 30 14:05:28 2016 +0200 @@ -34,7 +34,7 @@ * * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ -@Path("data/laf/import") +@Path("data/import") @RequestScoped public class LafImportService { @@ -65,7 +65,8 @@ @Consumes(MediaType.TEXT_PLAIN) public Response upload( String content, - @Context HttpServletRequest request) { + @Context HttpServletRequest request + ) { UserInfo userInfo = authorization.getInfo(request); importer.doImport(content, userInfo);