Revision 2720ea2c
Added by Andreas Müller over 3 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/SpecimenDataHolder.java | ||
---|---|---|
20 | 20 |
/** |
21 | 21 |
* @author k.luther |
22 | 22 |
* @since 18.07.2016 |
23 |
* |
|
24 | 23 |
*/ |
25 | 24 |
public class SpecimenDataHolder { |
26 | 25 |
|
... | ... | |
39 | 38 |
protected Double depth; |
40 | 39 |
|
41 | 40 |
private URI preferredStableUri; |
42 |
/** |
|
43 |
* @return the depth |
|
44 |
*/ |
|
45 |
public Double getDepth() { |
|
46 |
return depth; |
|
47 |
} |
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
/** |
|
52 |
* @param depth the depth to set |
|
53 |
*/ |
|
54 |
public void setDepth(Double depth) { |
|
55 |
this.depth = depth; |
|
56 |
} |
|
57 |
|
|
58 |
|
|
59 | 41 |
|
60 | 42 |
private String gatheringSpatialDatum; |
61 | 43 |
private String gatheringCoordinateErrorMethod; |
... | ... | |
75 | 57 |
private List<String> docSources; |
76 | 58 |
private String unitID; |
77 | 59 |
|
60 |
//**************** GETTER / SETTER *************************/ |
|
78 | 61 |
|
62 |
public Double getDepth() { |
|
63 |
return depth; |
|
64 |
} |
|
65 |
public void setDepth(Double depth) { |
|
66 |
this.depth = depth; |
|
67 |
} |
|
79 | 68 |
|
80 |
|
|
81 |
|
|
82 |
/** |
|
83 |
* @return the nomenclatureCode |
|
84 |
*/ |
|
85 | 69 |
public String getNomenclatureCode() { |
86 | 70 |
return nomenclatureCode; |
87 | 71 |
} |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
/** |
|
92 |
* @param nomenclatureCode the nomenclatureCode to set |
|
93 |
*/ |
|
94 | 72 |
public void setNomenclatureCode(String nomenclatureCode) { |
95 | 73 |
this.nomenclatureCode = nomenclatureCode; |
96 | 74 |
} |
97 | 75 |
|
98 |
|
|
99 |
|
|
100 |
/** |
|
101 |
* @return the atomisedIdentificationList |
|
102 |
*/ |
|
103 | 76 |
public List<HashMap<String, String>> getAtomisedIdentificationList() { |
104 | 77 |
if (atomisedIdentificationList == null){ |
105 |
atomisedIdentificationList = new ArrayList<HashMap<String,String>>();
|
|
78 |
atomisedIdentificationList = new ArrayList<>(); |
|
106 | 79 |
} |
107 | 80 |
return atomisedIdentificationList; |
108 | 81 |
} |
109 |
|
|
110 |
|
|
111 |
|
|
112 |
/** |
|
113 |
* @param atomisedIdentificationList the atomisedIdentificationList to set |
|
114 |
*/ |
|
115 | 82 |
public void setAtomisedIdentificationList(List<HashMap<String, String>> atomisedIdentificationList) { |
116 | 83 |
this.atomisedIdentificationList = atomisedIdentificationList; |
117 | 84 |
} |
118 | 85 |
|
119 |
|
|
120 |
|
|
121 |
/** |
|
122 |
* @return the gatheringElevationText |
|
123 |
*/ |
|
124 | 86 |
public String getGatheringElevationText() { |
125 | 87 |
return gatheringElevationText; |
126 | 88 |
} |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
/** |
|
131 |
* @param gatheringElevationText the gatheringElevationText to set |
|
132 |
*/ |
|
133 | 89 |
public void setGatheringElevationText(String gatheringElevationText) { |
134 | 90 |
this.gatheringElevationText = gatheringElevationText; |
135 | 91 |
} |
136 | 92 |
|
137 |
|
|
138 |
|
|
139 |
/** |
|
140 |
* @return the gatheringElevationMax |
|
141 |
*/ |
|
142 | 93 |
public String getGatheringElevationMax() { |
143 | 94 |
return gatheringElevationMax; |
144 | 95 |
} |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
/** |
|
149 |
* @param gatheringElevationMax the gatheringElevationMax to set |
|
150 |
*/ |
|
151 | 96 |
public void setGatheringElevationMax(String gatheringElevationMax) { |
152 | 97 |
this.gatheringElevationMax = gatheringElevationMax; |
153 | 98 |
} |
154 | 99 |
|
155 |
|
|
156 |
|
|
157 |
/** |
|
158 |
* @return the gatheringElevationMin |
|
159 |
*/ |
|
160 | 100 |
public String getGatheringElevationMin() { |
161 | 101 |
return gatheringElevationMin; |
162 | 102 |
} |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
/** |
|
167 |
* @param gatheringElevationMin the gatheringElevationMin to set |
|
168 |
*/ |
|
169 | 103 |
public void setGatheringElevationMin(String gatheringElevationMin) { |
170 | 104 |
this.gatheringElevationMin = gatheringElevationMin; |
171 | 105 |
} |
172 | 106 |
|
173 |
|
|
174 |
|
|
175 |
/** |
|
176 |
* @return the kindOfUnit |
|
177 |
*/ |
|
178 | 107 |
public String getKindOfUnit() { |
179 | 108 |
return kindOfUnit; |
180 | 109 |
} |
181 |
|
|
182 |
|
|
183 |
|
|
184 |
/** |
|
185 |
* @param kindOfUnit the kindOfUnit to set |
|
186 |
*/ |
|
187 | 110 |
public void setKindOfUnit(String kindOfUnit) { |
188 | 111 |
this.kindOfUnit = kindOfUnit; |
189 | 112 |
} |
190 | 113 |
|
191 |
|
|
192 |
|
|
193 |
/** |
|
194 |
* @return the gatheringElevationUnit |
|
195 |
*/ |
|
196 | 114 |
public String getGatheringElevationUnit() { |
197 | 115 |
return gatheringElevationUnit; |
198 | 116 |
} |
199 |
|
|
200 |
|
|
201 |
|
|
202 |
/** |
|
203 |
* @param gatheringElevationUnit the gatheringElevationUnit to set |
|
204 |
*/ |
|
205 | 117 |
public void setGatheringElevationUnit(String gatheringElevationUnit) { |
206 | 118 |
this.gatheringElevationUnit = gatheringElevationUnit; |
207 | 119 |
} |
208 | 120 |
|
209 |
|
|
210 |
|
|
211 |
/** |
|
212 |
* @return the gatheringDateText |
|
213 |
*/ |
|
214 | 121 |
public String getGatheringDateText() { |
215 | 122 |
return gatheringDateText; |
216 | 123 |
} |
217 |
|
|
218 |
|
|
219 |
|
|
220 |
/** |
|
221 |
* @param gatheringDateText the gatheringDateText to set |
|
222 |
*/ |
|
223 | 124 |
public void setGatheringDateText(String gatheringDateText) { |
224 | 125 |
this.gatheringDateText = gatheringDateText; |
225 | 126 |
} |
226 | 127 |
|
227 |
|
|
228 |
|
|
229 |
/** |
|
230 |
* @return the gatheringNotes |
|
231 |
*/ |
|
232 | 128 |
public String getGatheringNotes() { |
233 | 129 |
return gatheringNotes; |
234 | 130 |
} |
235 |
|
|
236 |
|
|
237 |
|
|
238 |
/** |
|
239 |
* @param gatheringNotes the gatheringNotes to set |
|
240 |
*/ |
|
241 | 131 |
public void setGatheringNotes(String gatheringNotes) { |
242 | 132 |
this.gatheringNotes = gatheringNotes; |
243 | 133 |
} |
244 | 134 |
|
245 |
|
|
246 |
|
|
247 |
/** |
|
248 |
* @return the gatheringSpatialDatum |
|
249 |
*/ |
|
250 | 135 |
public String getGatheringSpatialDatum() { |
251 | 136 |
return gatheringSpatialDatum; |
252 | 137 |
} |
253 |
|
|
254 |
|
|
255 |
|
|
256 |
/** |
|
257 |
* @param gatheringSpatialDatum the gatheringSpatialDatum to set |
|
258 |
*/ |
|
259 | 138 |
public void setGatheringSpatialDatum(String gatheringSpatialDatum) { |
260 | 139 |
this.gatheringSpatialDatum = gatheringSpatialDatum; |
261 | 140 |
} |
262 | 141 |
|
263 |
|
|
264 |
|
|
265 |
/** |
|
266 |
* @return the namedAreaList |
|
267 |
*/ |
|
268 | 142 |
public Map<String, String> getNamedAreaList() { |
269 | 143 |
return namedAreaList; |
270 | 144 |
} |
271 |
|
|
272 |
|
|
273 |
|
|
274 |
/** |
|
275 |
* @param namedAreaList the namedAreaList to set |
|
276 |
*/ |
|
277 | 145 |
public void setNamedAreaList(Map<String, String> namedAreaList) { |
278 | 146 |
this.namedAreaList = namedAreaList; |
279 | 147 |
} |
280 | 148 |
|
281 |
|
|
282 |
|
|
283 |
/** |
|
284 |
* @return the gatheringCoordinateErrorMethod |
|
285 |
*/ |
|
286 | 149 |
public String getGatheringCoordinateErrorMethod() { |
287 | 150 |
return gatheringCoordinateErrorMethod; |
288 | 151 |
} |
289 |
|
|
290 |
|
|
291 |
|
|
292 |
/** |
|
293 |
* @param gatheringCoordinateErrorMethod the gatheringCoordinateErrorMethod to set |
|
294 |
*/ |
|
295 | 152 |
public void setGatheringCoordinateErrorMethod(String gatheringCoordinateErrorMethod) { |
296 | 153 |
this.gatheringCoordinateErrorMethod = gatheringCoordinateErrorMethod; |
297 | 154 |
} |
298 | 155 |
|
299 |
|
|
300 |
|
|
301 |
/** |
|
302 |
* |
|
303 |
*/ |
|
304 | 156 |
public void reset() { |
305 | 157 |
//nomenclatureCode = null; |
306 |
atomisedIdentificationList = new ArrayList<HashMap<String,String>>();
|
|
158 |
atomisedIdentificationList = new ArrayList<>(); |
|
307 | 159 |
gatheringDateText = null; |
308 | 160 |
gatheringNotes = null; |
309 | 161 |
kindOfUnit = null; |
... | ... | |
322 | 174 |
gatheringCoordinateErrorMethod = null; |
323 | 175 |
depth = null; |
324 | 176 |
fieldNumber = null; |
325 |
|
|
326 |
|
|
327 | 177 |
} |
328 | 178 |
|
329 |
|
|
330 |
|
|
331 |
/** |
|
332 |
* @return the fieldNumber |
|
333 |
*/ |
|
334 | 179 |
public String getFieldNumber() { |
335 | 180 |
return fieldNumber; |
336 | 181 |
} |
337 |
|
|
338 |
|
|
339 |
|
|
340 |
/** |
|
341 |
* @param fieldNumber the fieldNumber to set |
|
342 |
*/ |
|
343 | 182 |
public void setFieldNumber(String fieldNumber) { |
344 | 183 |
this.fieldNumber = fieldNumber; |
345 | 184 |
} |
346 | 185 |
|
347 |
|
|
348 |
|
|
349 |
/** |
|
350 |
* @return the unitNotes |
|
351 |
*/ |
|
352 | 186 |
public String getUnitNotes() { |
353 | 187 |
return unitNotes; |
354 | 188 |
} |
355 |
|
|
356 |
|
|
357 |
|
|
358 |
/** |
|
359 |
* @param unitNotes the unitNotes to set |
|
360 |
*/ |
|
361 | 189 |
public void setUnitNotes(String unitNotes) { |
362 | 190 |
this.unitNotes = unitNotes; |
363 | 191 |
} |
364 | 192 |
|
365 |
|
|
366 |
|
|
367 |
/** |
|
368 |
* @return the multimediaObjects |
|
369 |
*/ |
|
370 | 193 |
public HashMap<String,Map<String, String>> getMultimediaObjects() { |
371 | 194 |
return multimediaObjects; |
372 | 195 |
} |
373 |
|
|
374 |
|
|
375 |
|
|
376 |
/** |
|
377 |
* @param multimediaObjects the multimediaObjects to set |
|
378 |
*/ |
|
379 | 196 |
public void setMultimediaObjects(HashMap<String,Map<String, String>> multimediaObjects) { |
380 | 197 |
this.multimediaObjects = multimediaObjects; |
381 | 198 |
} |
... | ... | |
387 | 204 |
this.multimediaObjects.put(uri, attributes); |
388 | 205 |
} |
389 | 206 |
|
390 |
/** |
|
391 |
* @return the multimediaObjects |
|
392 |
*/ |
|
393 | 207 |
public HashMap<String,Map<String, String>> getGatheringMultimediaObjects() { |
394 | 208 |
return gatheringMultimediaObjects; |
395 | 209 |
} |
396 |
|
|
397 |
|
|
398 |
|
|
399 |
/** |
|
400 |
* @param multimediaObjects the multimediaObjects to set |
|
401 |
*/ |
|
402 | 210 |
public void setGatheringMultimediaObjects(HashMap<String,Map<String, String>> multimediaObjects) { |
403 | 211 |
this.gatheringMultimediaObjects = multimediaObjects; |
404 | 212 |
} |
... | ... | |
410 | 218 |
this.gatheringMultimediaObjects.put(uri, attributes); |
411 | 219 |
} |
412 | 220 |
|
413 |
|
|
414 |
|
|
415 |
/** |
|
416 |
* @return the identificationList |
|
417 |
*/ |
|
418 | 221 |
public List<Identification> getIdentificationList() { |
419 | 222 |
if (identificationList == null){ |
420 |
identificationList = new ArrayList<Identification>();
|
|
223 |
identificationList = new ArrayList<>(); |
|
421 | 224 |
} |
422 | 225 |
return identificationList; |
423 | 226 |
} |
424 |
|
|
425 |
|
|
426 |
|
|
427 |
/** |
|
428 |
* @param identificationList the identificationList to set |
|
429 |
*/ |
|
430 | 227 |
public void setIdentificationList(List<Identification> identificationList) { |
431 | 228 |
this.identificationList = identificationList; |
432 | 229 |
} |
433 | 230 |
|
434 |
|
|
435 |
|
|
436 |
/** |
|
437 |
* @return the statusList |
|
438 |
*/ |
|
439 | 231 |
public List<SpecimenTypeDesignationStatus> getStatusList() { |
440 | 232 |
return statusList; |
441 | 233 |
} |
442 |
|
|
443 |
|
|
444 |
|
|
445 |
/** |
|
446 |
* @param statusList the statusList to set |
|
447 |
*/ |
|
448 | 234 |
public void setStatusList(List<SpecimenTypeDesignationStatus> statusList) { |
449 | 235 |
this.statusList = statusList; |
450 | 236 |
} |
451 | 237 |
|
452 |
|
|
453 |
|
|
454 |
/** |
|
455 |
* @return the referenceList |
|
456 |
*/ |
|
457 | 238 |
public List<String[]> getReferenceList() { |
458 | 239 |
return referenceList; |
459 | 240 |
} |
460 |
|
|
461 |
|
|
462 |
|
|
463 |
/** |
|
464 |
* @param referenceList the referenceList to set |
|
465 |
*/ |
|
466 | 241 |
public void setReferenceList(List<String[]> referenceList) { |
467 | 242 |
this.referenceList = referenceList; |
468 | 243 |
} |
469 | 244 |
|
470 |
|
|
471 |
|
|
472 |
/** |
|
473 |
* @return the docSources |
|
474 |
*/ |
|
475 | 245 |
public List<String> getDocSources() { |
476 | 246 |
return docSources; |
477 | 247 |
} |
478 |
|
|
479 |
|
|
480 |
|
|
481 |
/** |
|
482 |
* @param docSources the docSources to set |
|
483 |
*/ |
|
484 | 248 |
public void setDocSources(List<String> docSources) { |
485 | 249 |
this.docSources = docSources; |
486 | 250 |
} |
487 | 251 |
|
488 |
|
|
489 |
|
|
490 |
/** |
|
491 |
* @return the unitID |
|
492 |
*/ |
|
493 | 252 |
public String getUnitID() { |
494 | 253 |
return unitID; |
495 | 254 |
} |
496 |
|
|
497 |
|
|
498 |
|
|
499 |
/** |
|
500 |
* @param unitID the unitID to set |
|
501 |
*/ |
|
502 | 255 |
public void setUnitID(String unitID) { |
503 | 256 |
this.unitID = unitID; |
504 | 257 |
} |
505 | 258 |
|
506 |
|
|
507 |
|
|
508 |
/** |
|
509 |
* @return the recordBasis |
|
510 |
*/ |
|
511 | 259 |
public String getRecordBasis() { |
512 | 260 |
return recordBasis; |
513 | 261 |
} |
514 |
|
|
515 |
|
|
516 |
|
|
517 |
/** |
|
518 |
* @param recordBasis the recordBasis to set |
|
519 |
*/ |
|
520 | 262 |
public void setRecordBasis(String recordBasis) { |
521 | 263 |
this.recordBasis = recordBasis; |
522 | 264 |
} |
523 | 265 |
|
524 |
|
|
525 |
|
|
526 | 266 |
public URI getPreferredStableUri() { |
527 | 267 |
return preferredStableUri; |
528 | 268 |
} |
529 |
|
|
530 |
|
|
531 |
|
|
532 | 269 |
public void setPreferredStableUri(URI preferredStableUri) { |
533 | 270 |
this.preferredStableUri = preferredStableUri; |
534 | 271 |
} |
535 |
} |
|
272 |
} |
Also available in: Unified diff
cleanup