Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/importer/laf/LafRawData.java @ 1097:186d602e031a
Merged branch schema-update into default.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 14 Oct 2016 18:17:42 +0200 |
parents | |
children | 7683c4162746 |
comparison
equal
deleted
inserted
replaced
1096:565c8a67034d | 1097:186d602e031a |
---|---|
1 package de.intevation.lada.importer.laf; | |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.HashMap; | |
5 import java.util.List; | |
6 import java.util.Map; | |
7 | |
8 public class LafRawData { | |
9 | |
10 private List<LafRawData.Probe> probe; | |
11 | |
12 public LafRawData () { | |
13 this.probe = new ArrayList<LafRawData.Probe>(); | |
14 } | |
15 | |
16 public class Probe { | |
17 private Map<String, String> attributes; | |
18 private List<LafRawData.Messung> messung; | |
19 private List<Map<String, String>> kommentar; | |
20 private List<Map<String, String>> zusatzwert; | |
21 private List<Map<String, String>> ort; | |
22 | |
23 public Probe() { | |
24 this.attributes = new HashMap<String, String>(); | |
25 this.ort = new ArrayList<Map<String, String>>(); | |
26 this.kommentar = new ArrayList<Map<String, String>>(); | |
27 this.zusatzwert = new ArrayList<Map<String, String>>(); | |
28 this.messung = new ArrayList<LafRawData.Messung>(); | |
29 } | |
30 | |
31 public void addAttribute(String key, String value) { | |
32 this.attributes.put(key, value); | |
33 } | |
34 | |
35 public Map<String, String> getAttributes() { | |
36 return this.attributes; | |
37 } | |
38 | |
39 public void addMessung(LafRawData.Messung messung) { | |
40 this.messung.add(messung); | |
41 } | |
42 | |
43 public List<LafRawData.Messung> getMessungen() { | |
44 return this.messung; | |
45 } | |
46 | |
47 public void addKommentar(Map<String, String> kommentar) { | |
48 this.kommentar.add(kommentar); | |
49 } | |
50 | |
51 public List<Map<String, String>> getKommentare() { | |
52 return this.kommentar; | |
53 } | |
54 | |
55 public void addZusatzwert(Map<String, String> zusatzwert) { | |
56 this.zusatzwert.add(zusatzwert); | |
57 } | |
58 | |
59 public List<Map<String, String>> getZusatzwerte() { | |
60 return this.zusatzwert; | |
61 } | |
62 | |
63 public void addOrt(Map<String, String> ort) { | |
64 this.ort.add(ort); | |
65 } | |
66 | |
67 public List<Map<String, String>> getOrte() { | |
68 return this.ort; | |
69 } | |
70 }; | |
71 | |
72 public class Messung { | |
73 private Map<String, String> attributes; | |
74 private List<Map<String, String>> messwert; | |
75 private List<Map<String, String>> kommentar; | |
76 | |
77 public Messung() { | |
78 this.attributes = new HashMap<String, String>(); | |
79 this.messwert = new ArrayList<Map<String, String>>(); | |
80 this.kommentar = new ArrayList<Map<String, String>>(); | |
81 } | |
82 | |
83 public void addAttribute(String key, String value) { | |
84 this.attributes.put(key, value); | |
85 } | |
86 | |
87 public Map<String, String> getAttributes() { | |
88 return this.attributes; | |
89 } | |
90 | |
91 public void addMesswert(Map<String, String> messwert) { | |
92 this.messwert.add(messwert); | |
93 } | |
94 | |
95 public List<Map<String, String>> getMesswerte() { | |
96 return this.messwert; | |
97 } | |
98 | |
99 public void addKommentar(Map<String, String> kommentar) { | |
100 this.kommentar.add(kommentar); | |
101 } | |
102 } | |
103 | |
104 public void addProbe(LafRawData.Probe probe) { | |
105 this.probe.add(probe); | |
106 } | |
107 | |
108 public List<LafRawData.Probe> getProben() { | |
109 return this.probe; | |
110 } | |
111 | |
112 public int count() { | |
113 return this.probe.size(); | |
114 } | |
115 } |