Project

General

Profile

Download (6.96 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.gbif.in;
10

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

    
15
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
16

    
17
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
18
import eu.etaxonomy.cdm.io.specimen.SpecimenDataHolder;
19
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206DataHolder;
20
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
21

    
22
/**
23
 * @author k.luther
24
 * @since 15.07.2016
25
 *
26
 */
27
public class GbifDataHolder extends SpecimenDataHolder{
28
    @SuppressWarnings("unused")
29
    private static final Logger logger = LogManager.getLogger(Abcd206DataHolder.class);
30

    
31
    //per import
32
    protected List<SpecimenTypeDesignationStatus> statusList;
33
    protected List<String> knownGbifElements = new ArrayList<String>();
34
    protected HashMap<String,String> allGbifElements = new HashMap<String,String>();
35
    public List<String> gatheringAgentList;
36
    protected List<String> gatheringTeamList;
37
    private GbifResponse response;
38

    
39
    /*per unit
40
    protected List<Identification> identificationList;
41
    private List<HashMap<String, String>> atomisedIdentificationList;
42
    protected Map<String, String> namedAreaList;
43
    protected List<String[]> referenceList;
44
    protected List<String> multimediaObjects;
45
    protected List<String> docSources;
46
    protected List<String> associatedUnitIds;
47

    
48
    private String nomenclatureCode;
49
    protected String institutionCode;
50
    protected String collectionCode;
51
    protected String unitID;
52
    protected String recordBasis;
53
    protected String kindOfUnit;
54
    protected String accessionNumber;
55
    protected String fieldNumber;
56
    protected Double longitude;
57
    protected Double latitude;
58
    protected String locality;
59
    protected String languageIso;
60
    protected String country;
61
    protected String isocountry;
62
    protected Integer depth;
63
    protected Integer altitude;
64
    protected String unitNotes;
65
    protected String gatheringNotes;
66
    protected String gatheringDateText;
67
    protected String gatheringElevationText;
68
    protected String gatheringElevation;
69
    protected String gatheringElevationMax;
70
    protected String gatheringElevationMin;
71
    protected String gatheringElevationUnit;
72
    protected String gatheringSpatialDatum;
73
    protected String gatheringCoordinateErrorMethod;
74
    */
75

    
76

    
77
    protected String key;
78
    protected String datasetKey;
79
    protected String publishingOrgKey;
80
    protected String publishingCountry;
81
    protected String protocol;
82
    protected String lastCrawled;
83
    protected String lastParsed;
84
    protected String extensions;
85
    protected String basisOfRecord;
86
    protected String individualCount;
87
    protected String taxonKey;
88
    protected String kingdomKey;
89
    protected String phylumKey;
90
    protected String classKey;
91
    protected String orderKey;
92
    protected String familyKey;
93
    protected String genusKey;
94
    protected String speciesKey;
95
    protected String scientificName;
96
    protected String kingdom;
97
    protected String phylum;
98
    protected String order;
99
    protected String family;
100
    protected String genus;
101
    protected String species;
102
    protected String genericName;
103
    protected String specificEpithet;
104
    protected String taxonRank;
105
    protected String dateIdentified;
106
    protected Double decimalLongitude;
107
    protected Double decimalLatitude;
108
    protected String elevation;
109
    protected String continent;
110
    protected String stateProvince;
111
    protected String year;
112
    protected String month;
113
    protected String day;
114
    protected String eventDate;
115
    protected String[] issues;
116
   protected String lastInterpreted;
117
   protected String identifiers;
118
   protected String[] facts;
119
   protected String[] relations;
120
   protected String geodeticDatum;
121
   protected String className;
122
   protected String countryCode;
123
   protected String country;
124
   protected String nomenclaturalStatus;
125
   protected String rightsHolder;
126
   protected String identifier;
127
   protected String recordNumber;
128
   protected String nomenclaturalCode;
129
   protected String county;
130
   protected String locality;
131
   protected String datasetName;
132
   protected String gbifID;
133
   protected String collectionCode;
134
   protected String occurrenceID;
135
   protected String type;
136
   protected String taxonID;
137
   protected String license;
138
   protected String catalogNumber;
139
   protected String recordedBy;
140
    protected String institutionCode;
141
    protected String ownerInstitutionCode;
142
    protected String bibliographicCitation;
143
    protected String identifiedBy;
144
    protected String collectionID;
145

    
146

    
147

    
148
    @Override
149
    public void reset() {
150

    
151
        key = null;
152
        datasetKey = null;
153
        publishingOrgKey = null;
154
        publishingCountry = null;
155
        protocol = null;
156
        lastCrawled = null;
157
        lastParsed = null;
158
        extensions = null;
159
        basisOfRecord = null;
160
        individualCount = null;
161
        taxonKey = null;
162
        kingdomKey = null;
163
        phylumKey = null;
164
        classKey = null;
165
        orderKey = null;
166
        familyKey = null;
167
        genusKey = null;
168
        speciesKey = null;
169
        scientificName = null;
170
        kingdom = null;
171
        phylum = null;
172
        order = null;
173
        family = null;
174
        genus = null;
175
        species = null;
176
        genericName = null;
177
        specificEpithet = null;
178
        taxonRank = null;
179
        dateIdentified = null;
180
        decimalLongitude = null;
181
        decimalLatitude = null;
182
        elevation = null;
183
        continent = null;
184
        stateProvince = null;
185
        year = null;
186
        month = null;
187
        day = null;
188
        eventDate = null;
189
        issues = null;
190
       lastInterpreted = null;
191
       identifiers = null;
192
       facts =  null;
193
       relations = null;
194
       geodeticDatum = null;
195
       className = null;
196
       countryCode = null;
197
       country = null;
198
       nomenclaturalStatus = null;
199
       rightsHolder = null;
200
       identifier = null;
201
       recordNumber = null;
202
       nomenclaturalCode = null;
203
       county = null;
204
       locality = null;
205
       datasetName = null;
206
       gbifID = null;
207
       collectionCode = null;
208
       occurrenceID = null;
209
       type = null;
210
       taxonID = null;
211
       license = null;
212
       catalogNumber = null;
213
       recordedBy = null;
214
       institutionCode = null;
215
       ownerInstitutionCode = null;
216
       bibliographicCitation = null;
217
       identifiedBy = null;
218
       collectionID = null;
219
    }
220

    
221

    
222

    
223
    /**
224
     * @return the nomenclatureCode
225
     */
226
    @Override
227
    public String getNomenclatureCode() {
228
        return nomenclaturalCode;
229
    }
230

    
231

    
232

    
233
    /**
234
     * @param nomenclatureCode the nomenclatureCode to set
235
     */
236
    @Override
237
    public void setNomenclatureCode(String nomenclatureCode) {
238
        this.nomenclaturalCode = nomenclatureCode;
239
    }
240

    
241

    
242

    
243

    
244

    
245
}
(1-1/5)