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.common.URI;
|
17
|
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Identification;
|
18
|
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
|
19
|
|
20
|
/**
|
21
|
* @author k.luther
|
22
|
* @since 18.07.2016
|
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
|
private URI preferredStableUri;
|
41
|
|
42
|
private String gatheringSpatialDatum;
|
43
|
private String gatheringCoordinateErrorMethod;
|
44
|
private String kindOfUnit;
|
45
|
|
46
|
private Map<String, String> namedAreaList;
|
47
|
private String fieldNumber;
|
48
|
private String unitNotes; // occurenceRemarks(DwCA)
|
49
|
|
50
|
private HashMap<String, Map<String,String>> multimediaObjects;
|
51
|
private HashMap<String, Map<String,String>> gatheringMultimediaObjects;
|
52
|
private List<Identification> identificationList;
|
53
|
|
54
|
private List<SpecimenTypeDesignationStatus> statusList;
|
55
|
|
56
|
private List<String[]> referenceList;
|
57
|
private List<String> docSources;
|
58
|
private String unitID;
|
59
|
|
60
|
//**************** GETTER / SETTER *************************/
|
61
|
|
62
|
public Double getDepth() {
|
63
|
return depth;
|
64
|
}
|
65
|
public void setDepth(Double depth) {
|
66
|
this.depth = depth;
|
67
|
}
|
68
|
|
69
|
public String getNomenclatureCode() {
|
70
|
return nomenclatureCode;
|
71
|
}
|
72
|
public void setNomenclatureCode(String nomenclatureCode) {
|
73
|
this.nomenclatureCode = nomenclatureCode;
|
74
|
}
|
75
|
|
76
|
public List<HashMap<String, String>> getAtomisedIdentificationList() {
|
77
|
if (atomisedIdentificationList == null){
|
78
|
atomisedIdentificationList = new ArrayList<>();
|
79
|
}
|
80
|
return atomisedIdentificationList;
|
81
|
}
|
82
|
public void setAtomisedIdentificationList(List<HashMap<String, String>> atomisedIdentificationList) {
|
83
|
this.atomisedIdentificationList = atomisedIdentificationList;
|
84
|
}
|
85
|
|
86
|
public String getGatheringElevationText() {
|
87
|
return gatheringElevationText;
|
88
|
}
|
89
|
public void setGatheringElevationText(String gatheringElevationText) {
|
90
|
this.gatheringElevationText = gatheringElevationText;
|
91
|
}
|
92
|
|
93
|
public String getGatheringElevationMax() {
|
94
|
return gatheringElevationMax;
|
95
|
}
|
96
|
public void setGatheringElevationMax(String gatheringElevationMax) {
|
97
|
this.gatheringElevationMax = gatheringElevationMax;
|
98
|
}
|
99
|
|
100
|
public String getGatheringElevationMin() {
|
101
|
return gatheringElevationMin;
|
102
|
}
|
103
|
public void setGatheringElevationMin(String gatheringElevationMin) {
|
104
|
this.gatheringElevationMin = gatheringElevationMin;
|
105
|
}
|
106
|
|
107
|
public String getKindOfUnit() {
|
108
|
return kindOfUnit;
|
109
|
}
|
110
|
public void setKindOfUnit(String kindOfUnit) {
|
111
|
this.kindOfUnit = kindOfUnit;
|
112
|
}
|
113
|
|
114
|
public String getGatheringElevationUnit() {
|
115
|
return gatheringElevationUnit;
|
116
|
}
|
117
|
public void setGatheringElevationUnit(String gatheringElevationUnit) {
|
118
|
this.gatheringElevationUnit = gatheringElevationUnit;
|
119
|
}
|
120
|
|
121
|
public String getGatheringDateText() {
|
122
|
return gatheringDateText;
|
123
|
}
|
124
|
public void setGatheringDateText(String gatheringDateText) {
|
125
|
this.gatheringDateText = gatheringDateText;
|
126
|
}
|
127
|
|
128
|
public String getGatheringNotes() {
|
129
|
return gatheringNotes;
|
130
|
}
|
131
|
public void setGatheringNotes(String gatheringNotes) {
|
132
|
this.gatheringNotes = gatheringNotes;
|
133
|
}
|
134
|
|
135
|
public String getGatheringSpatialDatum() {
|
136
|
return gatheringSpatialDatum;
|
137
|
}
|
138
|
public void setGatheringSpatialDatum(String gatheringSpatialDatum) {
|
139
|
this.gatheringSpatialDatum = gatheringSpatialDatum;
|
140
|
}
|
141
|
|
142
|
public Map<String, String> getNamedAreaList() {
|
143
|
return namedAreaList;
|
144
|
}
|
145
|
public void setNamedAreaList(Map<String, String> namedAreaList) {
|
146
|
this.namedAreaList = namedAreaList;
|
147
|
}
|
148
|
|
149
|
public String getGatheringCoordinateErrorMethod() {
|
150
|
return gatheringCoordinateErrorMethod;
|
151
|
}
|
152
|
public void setGatheringCoordinateErrorMethod(String gatheringCoordinateErrorMethod) {
|
153
|
this.gatheringCoordinateErrorMethod = gatheringCoordinateErrorMethod;
|
154
|
}
|
155
|
|
156
|
public void reset() {
|
157
|
//nomenclatureCode = null;
|
158
|
atomisedIdentificationList = new ArrayList<>();
|
159
|
gatheringDateText = null;
|
160
|
gatheringNotes = null;
|
161
|
kindOfUnit = null;
|
162
|
|
163
|
setRecordBasis(null);
|
164
|
gatheringElevationText = null;
|
165
|
gatheringElevationMin = null;
|
166
|
gatheringElevationMax = null;
|
167
|
gatheringNotes = null;
|
168
|
gatheringDateText = null;
|
169
|
|
170
|
gatheringElevation = null;
|
171
|
|
172
|
gatheringElevationUnit = null;
|
173
|
gatheringSpatialDatum = null;
|
174
|
gatheringCoordinateErrorMethod = null;
|
175
|
depth = null;
|
176
|
fieldNumber = null;
|
177
|
}
|
178
|
|
179
|
public String getFieldNumber() {
|
180
|
return fieldNumber;
|
181
|
}
|
182
|
public void setFieldNumber(String fieldNumber) {
|
183
|
this.fieldNumber = fieldNumber;
|
184
|
}
|
185
|
|
186
|
public String getUnitNotes() {
|
187
|
return unitNotes;
|
188
|
}
|
189
|
public void setUnitNotes(String unitNotes) {
|
190
|
this.unitNotes = unitNotes;
|
191
|
}
|
192
|
|
193
|
public HashMap<String,Map<String, String>> getMultimediaObjects() {
|
194
|
return multimediaObjects;
|
195
|
}
|
196
|
public void setMultimediaObjects(HashMap<String,Map<String, String>> multimediaObjects) {
|
197
|
this.multimediaObjects = multimediaObjects;
|
198
|
}
|
199
|
|
200
|
public void putMultiMediaObject(String uri, Map<String, String> attributes){
|
201
|
if (this.multimediaObjects == null){
|
202
|
this.multimediaObjects = new HashMap<>();
|
203
|
}
|
204
|
this.multimediaObjects.put(uri, attributes);
|
205
|
}
|
206
|
|
207
|
public HashMap<String,Map<String, String>> getGatheringMultimediaObjects() {
|
208
|
return gatheringMultimediaObjects;
|
209
|
}
|
210
|
public void setGatheringMultimediaObjects(HashMap<String,Map<String, String>> multimediaObjects) {
|
211
|
this.gatheringMultimediaObjects = multimediaObjects;
|
212
|
}
|
213
|
|
214
|
public void putGatheringMultiMediaObject(String uri, Map<String, String> attributes){
|
215
|
if (gatheringMultimediaObjects == null){
|
216
|
gatheringMultimediaObjects = new HashMap<>();
|
217
|
}
|
218
|
this.gatheringMultimediaObjects.put(uri, attributes);
|
219
|
}
|
220
|
|
221
|
public List<Identification> getIdentificationList() {
|
222
|
if (identificationList == null){
|
223
|
identificationList = new ArrayList<>();
|
224
|
}
|
225
|
return identificationList;
|
226
|
}
|
227
|
public void setIdentificationList(List<Identification> identificationList) {
|
228
|
this.identificationList = identificationList;
|
229
|
}
|
230
|
|
231
|
public List<SpecimenTypeDesignationStatus> getStatusList() {
|
232
|
return statusList;
|
233
|
}
|
234
|
public void setStatusList(List<SpecimenTypeDesignationStatus> statusList) {
|
235
|
this.statusList = statusList;
|
236
|
}
|
237
|
|
238
|
public List<String[]> getReferenceList() {
|
239
|
return referenceList;
|
240
|
}
|
241
|
public void setReferenceList(List<String[]> referenceList) {
|
242
|
this.referenceList = referenceList;
|
243
|
}
|
244
|
|
245
|
public List<String> getDocSources() {
|
246
|
return docSources;
|
247
|
}
|
248
|
public void setDocSources(List<String> docSources) {
|
249
|
this.docSources = docSources;
|
250
|
}
|
251
|
|
252
|
public String getUnitID() {
|
253
|
return unitID;
|
254
|
}
|
255
|
public void setUnitID(String unitID) {
|
256
|
this.unitID = unitID;
|
257
|
}
|
258
|
|
259
|
public String getRecordBasis() {
|
260
|
return recordBasis;
|
261
|
}
|
262
|
public void setRecordBasis(String recordBasis) {
|
263
|
this.recordBasis = recordBasis;
|
264
|
}
|
265
|
|
266
|
public URI getPreferredStableUri() {
|
267
|
return preferredStableUri;
|
268
|
}
|
269
|
public void setPreferredStableUri(URI preferredStableUri) {
|
270
|
this.preferredStableUri = preferredStableUri;
|
271
|
}
|
272
|
}
|