Project

General

Profile

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

    
12
import java.util.ArrayList;
13
import java.util.List;
14
import java.util.UUID;
15

    
16
import eu.etaxonomy.cdm.model.taxon.Synonym;
17
import eu.etaxonomy.cdm.model.taxon.Taxon;
18

    
19
/**
20
 * @author a.mueller
21
 * @date 21.09.2016
22
 *
23
 */
24
public class TaxonInContextDTO {
25
    private UUID classificationUuid;
26
    private UUID taxonNodeUuid;
27
    private UUID taxonUuid;
28
    private String taxonLabel;
29

    
30
    //name
31
    private UUID nameUuid;
32
    private String nameLabel;
33
    private String nameWithoutAuthor;
34
    private UUID rankUuid;
35
    private String rankLabel;
36
    private String genusOrUninomial;
37
    private String infraGenericEpithet;
38
    private String speciesEpithet;
39
    private String infraSpecificEpithet;
40
    private String authorship;
41

    
42
    //sec
43
    private UUID secundumUuid;
44
    private String secundumLabel;
45

    
46
    private List<EntityDTO<Taxon>> children = new ArrayList<>();
47

    
48
    private List<EntityDTO<Synonym>> synonyms = new ArrayList<>();
49

    
50
    private List<MarkedEntityDTO<Taxon>> markedAncestors = new ArrayList<>();
51

    
52

    
53

    
54
//********************* GETTER / SETTER ****************************/
55

    
56
    /**
57
     * @return the classificationUuid
58
     */
59
    public UUID getClassificationUuid() {
60
        return classificationUuid;
61
    }
62

    
63
    /**
64
     * @param classificationUuid the classificationUuid to set
65
     */
66
    public void setClassificationUuid(UUID classificationUuid) {
67
        this.classificationUuid = classificationUuid;
68
    }
69

    
70
    /**
71
     * @param taxonNodeUuid the taxonNodeUuid to set
72
     */
73
    public void setTaxonNodeUuid(UUID taxonNodeUuid) {
74
        this.taxonNodeUuid = taxonNodeUuid;
75
    }
76

    
77
    /**
78
     * @param taxonUuid the taxonUuid to set
79
     */
80
    public void setTaxonUuid(UUID taxonUuid) {
81
        this.taxonUuid = taxonUuid;
82
    }
83

    
84
    /**
85
     * @param nameUuid the nameUuid to set
86
     */
87
    public void setNameUuid(UUID nameUuid) {
88
        this.nameUuid = nameUuid;
89
    }
90

    
91
    /**
92
     * @param rankUuid the rankUuid to set
93
     */
94
    public void setRankUuid(UUID rankUuid) {
95
        this.rankUuid = rankUuid;
96
    }
97

    
98
    /**
99
     * @param rankLabel the rankLabel to set
100
     */
101
    public void setRankLabel(String rankLabel) {
102
        this.rankLabel = rankLabel;
103
    }
104

    
105
    /**
106
     * @param genusOrUninomial the genusOrUninomial to set
107
     */
108
    public void setGenusOrUninomial(String genusOrUninomial) {
109
        this.genusOrUninomial = genusOrUninomial;
110
    }
111

    
112
    /**
113
     * @param infragenericEpithet the infragenericEpithet to set
114
     */
115
    public void setInfraGenericEpithet(String infraGenericEpithet) {
116
        this.infraGenericEpithet = infraGenericEpithet;
117
    }
118

    
119
    /**
120
     * @param speciesEpithet the speciesEpithet to set
121
     */
122
    public void setSpeciesEpithet(String speciesEpithet) {
123
        this.speciesEpithet = speciesEpithet;
124
    }
125

    
126
    /**
127
     * @param infraspecificEpithet the infraspecificEpithet to set
128
     */
129
    public void setInfraSpecificEpithet(String infraSpecificEpithet) {
130
        this.infraSpecificEpithet = infraSpecificEpithet;
131
    }
132

    
133
    /**
134
     * @param authorship the authorship to set
135
     */
136
    public void setAuthorship(String authorship) {
137
        this.authorship = authorship;
138
    }
139

    
140
    /**
141
     * @param secundumUuid the secundumUuid to set
142
     */
143
    public void setSecundumUuid(UUID secundumUuid) {
144
        this.secundumUuid = secundumUuid;
145
    }
146

    
147
    /**
148
     * @param secundumLabel the secundumLabel to set
149
     */
150
    public void setSecundumLabel(String secundumLabel) {
151
        this.secundumLabel = secundumLabel;
152
    }
153

    
154
    /**
155
     * @param children the children to set
156
     */
157
    public void setChildren(List<EntityDTO<Taxon>> children) {
158
        this.children = children;
159
    }
160

    
161

    
162
    /**
163
     * @param markedAncestors the markedAncestors to set
164
     */
165
    public void setMarkedAncestors(List<MarkedEntityDTO<Taxon>> markedAncestors) {
166
        this.markedAncestors = markedAncestors;
167
    }
168

    
169
    /**
170
     * @return the taxonNodeUuid
171
     */
172
    public UUID getTaxonNodeUuid() {
173
        return taxonNodeUuid;
174
    }
175

    
176
    /**
177
     * @return the taxonUuid
178
     */
179
    public UUID getTaxonUuid() {
180
        return taxonUuid;
181
    }
182

    
183
    /**
184
     * @return the nameUuid
185
     */
186
    public UUID getNameUuid() {
187
        return nameUuid;
188
    }
189

    
190
    /**
191
     * @return the rankUuid
192
     */
193
    public UUID getRankUuid() {
194
        return rankUuid;
195
    }
196

    
197
    /**
198
     * @return the rankLabel
199
     */
200
    public String getRankLabel() {
201
        return rankLabel;
202
    }
203

    
204
    /**
205
     * @return the genusOrUninomial
206
     */
207
    public String getGenusOrUninomial() {
208
        return genusOrUninomial;
209
    }
210

    
211
    /**
212
     * @return the infragenericEpithet
213
     */
214
    public String getInfraGenericEpithet() {
215
        return infraGenericEpithet;
216
    }
217

    
218
    /**
219
     * @return the speciesEpithet
220
     */
221
    public String getSpeciesEpithet() {
222
        return speciesEpithet;
223
    }
224

    
225
    /**
226
     * @return the infraspecificEpithet
227
     */
228
    public String getInfraSpecificEpithet() {
229
        return infraSpecificEpithet;
230
    }
231

    
232
    /**
233
     * @return the authorship
234
     */
235
    public String getAuthorship() {
236
        return authorship;
237
    }
238

    
239
    /**
240
     * @return the secundumUuid
241
     */
242
    public UUID getSecundumUuid() {
243
        return secundumUuid;
244
    }
245

    
246
    /**
247
     * @return the secundumLabel
248
     */
249
    public String getSecundumLabel() {
250
        return secundumLabel;
251
    }
252

    
253

    
254
    /**
255
     * @return the taxonLabel
256
     */
257
    public String getTaxonLabel() {
258
        return taxonLabel;
259
    }
260

    
261
    /**
262
     * @param taxonLabel the taxonLabel to set
263
     */
264
    public void setTaxonLabel(String taxonLabel) {
265
        this.taxonLabel = taxonLabel;
266
    }
267

    
268
    /**
269
     * @return the nameLabel
270
     */
271
    public String getNameLabel() {
272
        return nameLabel;
273
    }
274

    
275
    /**
276
     * @param nameLabel the nameLabel to set
277
     */
278
    public void setNameLabel(String nameLabel) {
279
        this.nameLabel = nameLabel;
280
    }
281

    
282
    /**
283
     * @return the nameWithoutAuthor
284
     */
285
    public String getNameWithoutAuthor() {
286
        return nameWithoutAuthor;
287
    }
288

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

    
296

    
297
    /**
298
     * @return the children
299
     */
300
    public List<EntityDTO<Taxon>> getChildren() {
301
        return children;
302
    }
303

    
304
    /**
305
     * @return the synonyms
306
     */
307
    public List<EntityDTO<Synonym>> getSynonyms() {
308
        return synonyms;
309
    }
310
    /**
311
     * @param synonyms the synonyms to set
312
     */
313
    public void setSynonyms(List<EntityDTO<Synonym>> synonyms) {
314
        this.synonyms = synonyms;
315
    }
316

    
317
    /**
318
     * @return the markedAncestors
319
     */
320
    public List<MarkedEntityDTO<Taxon>> getMarkedAncestors() {
321
        return markedAncestors;
322
    }
323

    
324
// *************************** ADDER *******************************/
325

    
326
    public void addChild(EntityDTO<Taxon> childDto){
327
        this.children.add(childDto);
328
    }
329

    
330

    
331
    public void addSynonym(EntityDTO<Synonym> synonymDto){
332
        this.synonyms.add(synonymDto);
333
    }
334

    
335
    public void addMarkedAncestor(MarkedEntityDTO<Taxon> markedAncestor){
336
        this.markedAncestors.add(markedAncestor);
337
    }
338

    
339
}
(14-14/14)