Project

General

Profile

Download (10.6 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2016 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.io.specimen;
10

    
11
import java.util.ArrayList;
12
import java.util.HashMap;
13
import java.util.List;
14
import java.util.Map;
15

    
16
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Identification;
17
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
18

    
19
/**
20
 * @author k.luther
21
 \* @since 18.07.2016
22
 *
23
 */
24
public class SpecimenDataHolder {
25

    
26
    protected String nomenclatureCode;
27
    protected List<HashMap<String, String>> atomisedIdentificationList;
28
    private String recordBasis;
29
    protected String gatheringElevationText;
30
    private String gatheringElevationMin;
31
    private String gatheringElevationMax;
32
    private String gatheringNotes;
33
    private String gatheringDateText;
34

    
35
    protected String gatheringElevation;
36

    
37
    private String gatheringElevationUnit;
38
    protected Double depth;
39
    /**
40
     * @return the depth
41
     */
42
    public Double getDepth() {
43
        return depth;
44
    }
45

    
46

    
47

    
48
    /**
49
     * @param depth the depth to set
50
     */
51
    public void setDepth(Double depth) {
52
        this.depth = depth;
53
    }
54

    
55

    
56

    
57
    private String gatheringSpatialDatum;
58
    private String gatheringCoordinateErrorMethod;
59
    private String kindOfUnit;
60

    
61
    private Map<String, String> namedAreaList;
62
    private String fieldNumber;
63
    private String unitNotes; //  occurenceRemarks(DwCA)
64

    
65
    private HashMap<String, Map<String,String>> multimediaObjects;
66
    private HashMap<String, Map<String,String>> gatheringMultimediaObjects;
67
    private List<Identification> identificationList;
68

    
69
    private List<SpecimenTypeDesignationStatus> statusList;
70

    
71
    private List<String[]> referenceList;
72
    private List<String> docSources;
73
    private String unitID;
74

    
75

    
76

    
77

    
78

    
79
    /**
80
     * @return the nomenclatureCode
81
     */
82
    public String getNomenclatureCode() {
83
        return nomenclatureCode;
84
    }
85

    
86

    
87

    
88
    /**
89
     * @param nomenclatureCode the nomenclatureCode to set
90
     */
91
    public void setNomenclatureCode(String nomenclatureCode) {
92
        this.nomenclatureCode = nomenclatureCode;
93
    }
94

    
95

    
96

    
97
    /**
98
     * @return the atomisedIdentificationList
99
     */
100
    public List<HashMap<String, String>> getAtomisedIdentificationList() {
101
        if (atomisedIdentificationList == null){
102
            atomisedIdentificationList = new ArrayList<HashMap<String,String>>();
103
        }
104
        return atomisedIdentificationList;
105
    }
106

    
107

    
108

    
109
    /**
110
     * @param atomisedIdentificationList the atomisedIdentificationList to set
111
     */
112
    public void setAtomisedIdentificationList(List<HashMap<String, String>> atomisedIdentificationList) {
113
        this.atomisedIdentificationList = atomisedIdentificationList;
114
    }
115

    
116

    
117

    
118
    /**
119
     * @return the gatheringElevationText
120
     */
121
    public String getGatheringElevationText() {
122
        return gatheringElevationText;
123
    }
124

    
125

    
126

    
127
    /**
128
     * @param gatheringElevationText the gatheringElevationText to set
129
     */
130
    public void setGatheringElevationText(String gatheringElevationText) {
131
        this.gatheringElevationText = gatheringElevationText;
132
    }
133

    
134

    
135

    
136
    /**
137
     * @return the gatheringElevationMax
138
     */
139
    public String getGatheringElevationMax() {
140
        return gatheringElevationMax;
141
    }
142

    
143

    
144

    
145
    /**
146
     * @param gatheringElevationMax the gatheringElevationMax to set
147
     */
148
    public void setGatheringElevationMax(String gatheringElevationMax) {
149
        this.gatheringElevationMax = gatheringElevationMax;
150
    }
151

    
152

    
153

    
154
    /**
155
     * @return the gatheringElevationMin
156
     */
157
    public String getGatheringElevationMin() {
158
        return gatheringElevationMin;
159
    }
160

    
161

    
162

    
163
    /**
164
     * @param gatheringElevationMin the gatheringElevationMin to set
165
     */
166
    public void setGatheringElevationMin(String gatheringElevationMin) {
167
        this.gatheringElevationMin = gatheringElevationMin;
168
    }
169

    
170

    
171

    
172
    /**
173
     * @return the kindOfUnit
174
     */
175
    public String getKindOfUnit() {
176
        return kindOfUnit;
177
    }
178

    
179

    
180

    
181
    /**
182
     * @param kindOfUnit the kindOfUnit to set
183
     */
184
    public void setKindOfUnit(String kindOfUnit) {
185
        this.kindOfUnit = kindOfUnit;
186
    }
187

    
188

    
189

    
190
    /**
191
     * @return the gatheringElevationUnit
192
     */
193
    public String getGatheringElevationUnit() {
194
        return gatheringElevationUnit;
195
    }
196

    
197

    
198

    
199
    /**
200
     * @param gatheringElevationUnit the gatheringElevationUnit to set
201
     */
202
    public void setGatheringElevationUnit(String gatheringElevationUnit) {
203
        this.gatheringElevationUnit = gatheringElevationUnit;
204
    }
205

    
206

    
207

    
208
    /**
209
     * @return the gatheringDateText
210
     */
211
    public String getGatheringDateText() {
212
        return gatheringDateText;
213
    }
214

    
215

    
216

    
217
    /**
218
     * @param gatheringDateText the gatheringDateText to set
219
     */
220
    public void setGatheringDateText(String gatheringDateText) {
221
        this.gatheringDateText = gatheringDateText;
222
    }
223

    
224

    
225

    
226
    /**
227
     * @return the gatheringNotes
228
     */
229
    public String getGatheringNotes() {
230
        return gatheringNotes;
231
    }
232

    
233

    
234

    
235
    /**
236
     * @param gatheringNotes the gatheringNotes to set
237
     */
238
    public void setGatheringNotes(String gatheringNotes) {
239
        this.gatheringNotes = gatheringNotes;
240
    }
241

    
242

    
243

    
244
    /**
245
     * @return the gatheringSpatialDatum
246
     */
247
    public String getGatheringSpatialDatum() {
248
        return gatheringSpatialDatum;
249
    }
250

    
251

    
252

    
253
    /**
254
     * @param gatheringSpatialDatum the gatheringSpatialDatum to set
255
     */
256
    public void setGatheringSpatialDatum(String gatheringSpatialDatum) {
257
        this.gatheringSpatialDatum = gatheringSpatialDatum;
258
    }
259

    
260

    
261

    
262
    /**
263
     * @return the namedAreaList
264
     */
265
    public Map<String, String> getNamedAreaList() {
266
        return namedAreaList;
267
    }
268

    
269

    
270

    
271
    /**
272
     * @param namedAreaList the namedAreaList to set
273
     */
274
    public void setNamedAreaList(Map<String, String> namedAreaList) {
275
        this.namedAreaList = namedAreaList;
276
    }
277

    
278

    
279

    
280
    /**
281
     * @return the gatheringCoordinateErrorMethod
282
     */
283
    public String getGatheringCoordinateErrorMethod() {
284
        return gatheringCoordinateErrorMethod;
285
    }
286

    
287

    
288

    
289
    /**
290
     * @param gatheringCoordinateErrorMethod the gatheringCoordinateErrorMethod to set
291
     */
292
    public void setGatheringCoordinateErrorMethod(String gatheringCoordinateErrorMethod) {
293
        this.gatheringCoordinateErrorMethod = gatheringCoordinateErrorMethod;
294
    }
295

    
296

    
297

    
298
    /**
299
     *
300
     */
301
    public void reset() {
302
        nomenclatureCode = null;
303
        atomisedIdentificationList = new ArrayList<HashMap<String,String>>();
304
        gatheringDateText = null;
305
        gatheringNotes = null;
306
        kindOfUnit = null;
307

    
308
        setRecordBasis(null);
309
        gatheringElevationText = null;
310
        gatheringElevationMin = null;
311
        gatheringElevationMax = null;
312
        gatheringNotes = null;
313
        gatheringDateText = null;
314

    
315
        gatheringElevation = null;
316

    
317
        gatheringElevationUnit = null;
318
        gatheringSpatialDatum = null;
319
        gatheringCoordinateErrorMethod = null;
320
        depth = null;
321

    
322

    
323
    }
324

    
325

    
326

    
327
    /**
328
     * @return the fieldNumber
329
     */
330
    public String getFieldNumber() {
331
        return fieldNumber;
332
    }
333

    
334

    
335

    
336
    /**
337
     * @param fieldNumber the fieldNumber to set
338
     */
339
    public void setFieldNumber(String fieldNumber) {
340
        this.fieldNumber = fieldNumber;
341
    }
342

    
343

    
344

    
345
    /**
346
     * @return the unitNotes
347
     */
348
    public String getUnitNotes() {
349
        return unitNotes;
350
    }
351

    
352

    
353

    
354
    /**
355
     * @param unitNotes the unitNotes to set
356
     */
357
    public void setUnitNotes(String unitNotes) {
358
        this.unitNotes = unitNotes;
359
    }
360

    
361

    
362

    
363
    /**
364
     * @return the multimediaObjects
365
     */
366
    public HashMap<String,Map<String, String>> getMultimediaObjects() {
367
        return multimediaObjects;
368
    }
369

    
370

    
371

    
372
    /**
373
     * @param multimediaObjects the multimediaObjects to set
374
     */
375
    public void setMultimediaObjects(HashMap<String,Map<String, String>> multimediaObjects) {
376
        this.multimediaObjects = multimediaObjects;
377
    }
378

    
379
    public void putMultiMediaObject(String uri, Map<String, String> attributes){
380
        this.multimediaObjects.put(uri, attributes);
381
    }
382

    
383
    /**
384
     * @return the multimediaObjects
385
     */
386
    public HashMap<String,Map<String, String>> getGatheringMultimediaObjects() {
387
        return gatheringMultimediaObjects;
388
    }
389

    
390

    
391

    
392
    /**
393
     * @param multimediaObjects the multimediaObjects to set
394
     */
395
    public void setGatheringMultimediaObjects(HashMap<String,Map<String, String>> multimediaObjects) {
396
        this.gatheringMultimediaObjects = multimediaObjects;
397
    }
398

    
399
    public void putGatheringMultiMediaObject(String uri, Map<String, String> attributes){
400
        this.gatheringMultimediaObjects.put(uri, attributes);
401
    }
402

    
403

    
404

    
405
    /**
406
     * @return the identificationList
407
     */
408
    public List<Identification> getIdentificationList() {
409
        if (identificationList == null){
410
            identificationList = new ArrayList<Identification>();
411
        }
412
        return identificationList;
413
    }
414

    
415

    
416

    
417
    /**
418
     * @param identificationList the identificationList to set
419
     */
420
    public void setIdentificationList(List<Identification> identificationList) {
421
        this.identificationList = identificationList;
422
    }
423

    
424

    
425

    
426
    /**
427
     * @return the statusList
428
     */
429
    public List<SpecimenTypeDesignationStatus> getStatusList() {
430
        return statusList;
431
    }
432

    
433

    
434

    
435
    /**
436
     * @param statusList the statusList to set
437
     */
438
    public void setStatusList(List<SpecimenTypeDesignationStatus> statusList) {
439
        this.statusList = statusList;
440
    }
441

    
442

    
443

    
444
    /**
445
     * @return the referenceList
446
     */
447
    public List<String[]> getReferenceList() {
448
        return referenceList;
449
    }
450

    
451

    
452

    
453
    /**
454
     * @param referenceList the referenceList to set
455
     */
456
    public void setReferenceList(List<String[]> referenceList) {
457
        this.referenceList = referenceList;
458
    }
459

    
460

    
461

    
462
    /**
463
     * @return the docSources
464
     */
465
    public List<String> getDocSources() {
466
        return docSources;
467
    }
468

    
469

    
470

    
471
    /**
472
     * @param docSources the docSources to set
473
     */
474
    public void setDocSources(List<String> docSources) {
475
        this.docSources = docSources;
476
    }
477

    
478

    
479

    
480
    /**
481
     * @return the unitID
482
     */
483
    public String getUnitID() {
484
        return unitID;
485
    }
486

    
487

    
488

    
489
    /**
490
     * @param unitID the unitID to set
491
     */
492
    public void setUnitID(String unitID) {
493
        this.unitID = unitID;
494
    }
495

    
496

    
497

    
498
    /**
499
     * @return the recordBasis
500
     */
501
    public String getRecordBasis() {
502
        return recordBasis;
503
    }
504

    
505

    
506

    
507
    /**
508
     * @param recordBasis the recordBasis to set
509
     */
510
    public void setRecordBasis(String recordBasis) {
511
        this.recordBasis = recordBasis;
512
    }
513
}
(1-1/7)