Project

General

Profile

Download (4.85 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2009 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.abcd206.in;
10

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

    
16
import org.apache.log4j.Logger;
17

    
18
import eu.etaxonomy.cdm.io.specimen.SpecimenDataHolder;
19

    
20
/**
21
 * @author a.mueller
22
 \* @since 16.06.2010
23
 *
24
 */
25
public class Abcd206DataHolder extends SpecimenDataHolder{
26
    @SuppressWarnings("unused")
27
    private static final Logger logger = Logger.getLogger(Abcd206DataHolder.class);
28

    
29
    //per import
30

    
31
    protected List<String> knownABCDelements = new ArrayList<String>();
32
    protected HashMap<String,String> allABCDelements = new HashMap<String,String>();
33
    public String gatheringAgentsText ="";
34
    public List<String> gatheringAgentsList=new ArrayList<String>();
35

    
36
    //per unit
37

    
38

    
39

    
40

    
41

    
42
    protected List<String[]> associatedUnitIds;
43

    
44

    
45
    protected String institutionCode;
46
    /**
47
     * @return the institutionCode
48
     */
49
    public String getInstitutionCode() {
50
        return institutionCode;
51
    }
52

    
53

    
54

    
55

    
56
    /**
57
     * @param institutionCode the institutionCode to set
58
     */
59
    public void setInstitutionCode(String institutionCode) {
60
        this.institutionCode = institutionCode;
61
    }
62

    
63

    
64

    
65

    
66
    /**
67
     * @return the collectionCode
68
     */
69
    public String getCollectionCode() {
70
        return collectionCode;
71
    }
72

    
73

    
74

    
75

    
76
    /**
77
     * @param collectionCode the collectionCode to set
78
     */
79
    public void setCollectionCode(String collectionCode) {
80
        this.collectionCode = collectionCode;
81
    }
82

    
83
    protected String collectionCode;
84

    
85

    
86
    protected String accessionNumber;
87

    
88
    protected Double longitude;
89
    protected Double latitude;
90
    protected String locality;
91
    protected String languageIso;
92
    protected String country;
93
    protected String isocountry;
94

    
95

    
96
    protected Integer altitude;
97

    
98
    private String gatheringDepthUnit;
99

    
100
    private Double gatheringDepthMax;
101

    
102
    private Double gatheringDepthMin;
103
    private String gatheringDepthText;
104

    
105
    private String gatheringMethod;
106

    
107

    
108

    
109

    
110
    @Override
111
    public void reset() {
112
        super.reset();
113
        accessionNumber = null;
114
        institutionCode = null;
115
        collectionCode = null;
116
        setUnitID(null);
117
        setUnitNotes(null);
118
        setRecordBasis(null);
119

    
120
        longitude = null;
121
        latitude = null;
122
        locality = null;
123
        languageIso = null;
124
        country = null;
125
        isocountry = null;
126

    
127
        altitude = null;
128

    
129
        gatheringElevationText = null;
130
        gatheringElevation = null;
131

    
132

    
133
        setReferenceList(new ArrayList<String[]>());
134
        setMultimediaObjects(new HashMap<String,Map<String, String>>());
135
        setGatheringMultimediaObjects(new HashMap<String,Map<String, String>>());
136
        setDocSources(new ArrayList<String>());
137
        associatedUnitIds = new ArrayList<String[]>();
138
    }
139

    
140

    
141

    
142

    
143
    /**
144
     * @param textContent
145
     */
146
    public void setGatheringDepthMin(Double gatheringDepthMin) {
147
        this.gatheringDepthMin = gatheringDepthMin;
148

    
149
    }
150

    
151
    public Double getGatheringDepthMin() {
152
        return gatheringDepthMin;
153

    
154
    }
155

    
156

    
157

    
158
    /**
159
     * @param textContent
160
     */
161
    public void setGatheringDepthMax(Double gatheringDepthMax) {
162
        this.gatheringDepthMax = gatheringDepthMax;
163

    
164
    }
165

    
166
    public Double getGatheringDepthMax() {
167
        return gatheringDepthMax;
168

    
169
    }
170

    
171

    
172

    
173
    /**
174
     * @param textContent
175
     */
176
    public void setGatheringDepthUnit(String gatheringDepthUnit) {
177
        this.gatheringDepthUnit = gatheringDepthUnit;
178

    
179
    }
180

    
181
    public String getGatheringDepthUnit() {
182
        return gatheringDepthUnit;
183

    
184
    }
185

    
186

    
187

    
188

    
189

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

    
197

    
198

    
199

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

    
207

    
208

    
209

    
210
    /**
211
     * @param gatheringMethod
212
     */
213
    public void setGatheringMethod(String gatheringMethod) {
214
        this.gatheringMethod = gatheringMethod;
215

    
216
    }
217

    
218
    /**
219
     * @param gatheringMethod
220
     */
221
    public String getGatheringMethod() {
222
        return this.gatheringMethod ;
223

    
224
    }
225
    public void addAssociatedUnitId(String[] associatedUnitId){
226
        this.associatedUnitIds.add(associatedUnitId);
227
    }
228

    
229
    public List<String[]> getAssociatedUnitIds(){
230
        return associatedUnitIds;
231
    }
232

    
233

    
234
}
(1-1/15)