Project

General

Profile

Download (7.57 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.api.service.dto;
10

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

    
15
import eu.etaxonomy.cdm.model.taxon.Synonym;
16
import eu.etaxonomy.cdm.model.taxon.Taxon;
17
import eu.etaxonomy.cdm.persistence.dto.TaxonStatus;
18

    
19
/**
20
 * @author a.mueller
21
 * @since 21.09.2016
22
 *
23
 */
24
public class TaxonInContextDTO {
25

    
26
    private UUID classificationUuid;
27
    private UUID taxonNodeUuid;
28
    private UUID taxonUuid;
29
    private String taxonLabel;
30
    private TaxonStatus taxonStatus;
31

    
32
    //name
33
    private UUID nameUuid;
34
    private String nameLabel;
35

    
36
    private String nameWithoutAuthor;
37
    private UUID rankUuid;
38
    private String rankLabel;
39
    private String genusOrUninomial;
40
    private String infraGenericEpithet;
41
    private String speciesEpithet;
42
    private String infraSpecificEpithet;
43
    private String authorship;
44

    
45
    //sec
46
    private UUID secundumUuid;
47
    private String secundumLabel;
48

    
49
    //accepted taxon
50
    private UUID acceptedTaxonUuid;
51
    private String acceptedNameLabel;
52

    
53
    private String acceptedTaxonLabel;
54

    
55

    
56
    //parent taxon
57
    private UUID parentTaxonUuid;
58
    private String parentNameLabel;
59
    private String parentTaxonLabel;
60

    
61

    
62

    
63
    private List<EntityDTO<Taxon>> children = new ArrayList<>();
64

    
65
    private List<EntityDTO<Synonym>> synonyms = new ArrayList<>();
66

    
67
    private List<MarkedEntityDTO<Taxon>> markedAncestors = new ArrayList<>();
68

    
69

    
70

    
71
//********************* GETTER / SETTER ****************************/
72

    
73
    public UUID getClassificationUuid() {return classificationUuid;}
74
    public void setClassificationUuid(UUID classificationUuid) {this.classificationUuid = classificationUuid;}
75

    
76
    public String getAcceptedTaxonLabel() {return acceptedTaxonLabel;}
77
    public void setAcceptedTaxonLabel(String acceptedTaxonLabel) {this.acceptedTaxonLabel = acceptedTaxonLabel;}
78

    
79
    public void setTaxonNodeUuid(UUID taxonNodeUuid) {this.taxonNodeUuid = taxonNodeUuid;}
80
    public void setTaxonUuid(UUID taxonUuid) {this.taxonUuid = taxonUuid;}
81

    
82
    public void setNameUuid(UUID nameUuid) {this.nameUuid = nameUuid;}
83

    
84
    public void setRankUuid(UUID rankUuid) {this.rankUuid = rankUuid;}
85
    public void setRankLabel(String rankLabel) {this.rankLabel = rankLabel;}
86

    
87
    public void setGenusOrUninomial(String genusOrUninomial) {this.genusOrUninomial = genusOrUninomial;}
88

    
89
    public void setInfraGenericEpithet(String infraGenericEpithet) {this.infraGenericEpithet = infraGenericEpithet;}
90

    
91
    public void setSpeciesEpithet(String speciesEpithet) {this.speciesEpithet = speciesEpithet;}
92

    
93
    public void setInfraSpecificEpithet(String infraSpecificEpithet) {this.infraSpecificEpithet = infraSpecificEpithet;}
94

    
95
    public void setAuthorship(String authorship) {this.authorship = authorship;}
96

    
97
    public void setSecundumUuid(UUID secundumUuid) {this.secundumUuid = secundumUuid;}
98

    
99
    public void setSecundumLabel(String secundumLabel) {this.secundumLabel = secundumLabel;}
100

    
101
    public void setChildren(List<EntityDTO<Taxon>> children) {this.children = children;}
102

    
103
    public void setMarkedAncestors(List<MarkedEntityDTO<Taxon>> markedAncestors) {this.markedAncestors = markedAncestors;}
104

    
105
    public UUID getTaxonNodeUuid() {return taxonNodeUuid;}
106

    
107
    public UUID getTaxonUuid() {return taxonUuid;}
108

    
109
    public UUID getNameUuid() {return nameUuid;}
110

    
111
    public UUID getRankUuid() {return rankUuid;}
112

    
113
    public String getRankLabel() {return rankLabel;}
114

    
115
    public String getGenusOrUninomial() {return genusOrUninomial;}
116

    
117
    public String getInfraGenericEpithet() {return infraGenericEpithet;}
118
    public String getSpeciesEpithet() {return speciesEpithet;}
119

    
120
    public String getInfraSpecificEpithet() {return infraSpecificEpithet;}
121

    
122
    /**
123
     * @return the authorship
124
     */
125
    public String getAuthorship() {
126
        return authorship;
127
    }
128

    
129
    /**
130
     * @return the secundumUuid
131
     */
132
    public UUID getSecundumUuid() {
133
        return secundumUuid;
134
    }
135

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

    
143

    
144
    /**
145
     * @return the taxonLabel
146
     */
147
    public String getTaxonLabel() {
148
        return taxonLabel;
149
    }
150

    
151
    /**
152
     * @param taxonLabel the taxonLabel to set
153
     */
154
    public void setTaxonLabel(String taxonLabel) {
155
        this.taxonLabel = taxonLabel;
156
    }
157

    
158
    /**
159
     * @return the nameLabel
160
     */
161
    public String getNameLabel() {
162
        return nameLabel;
163
    }
164

    
165
    /**
166
     * @param nameLabel the nameLabel to set
167
     */
168
    public void setNameLabel(String nameLabel) {
169
        this.nameLabel = nameLabel;
170
    }
171

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

    
179
    /**
180
     * @param nameWithoutAuthor the nameWithoutAuthor to set
181
     */
182
    public void setNameWithoutAuthor(String nameWithoutAuthor) {
183
        this.nameWithoutAuthor = nameWithoutAuthor;
184
    }
185

    
186

    
187
    /**
188
     * @return the children
189
     */
190
    public List<EntityDTO<Taxon>> getChildren() {
191
        return children;
192
    }
193

    
194
    /**
195
     * @return the synonyms
196
     */
197
    public List<EntityDTO<Synonym>> getSynonyms() {
198
        return synonyms;
199
    }
200
    /**
201
     * @param synonyms the synonyms to set
202
     */
203
    public void setSynonyms(List<EntityDTO<Synonym>> synonyms) {
204
        this.synonyms = synonyms;
205
    }
206

    
207
    /**
208
     * @return the markedAncestors
209
     */
210
    public List<MarkedEntityDTO<Taxon>> getMarkedAncestors() {
211
        return markedAncestors;
212
    }
213

    
214

    
215
    /**
216
     * @return the acceptedTaxonUuid
217
     */
218
    public UUID getAcceptedTaxonUuid() {
219
        return acceptedTaxonUuid;
220
    }
221

    
222
    /**
223
     * @param acceptedTaxonUuid the acceptedTaxonUuid to set
224
     */
225
    public void setAcceptedTaxonUuid(UUID acceptedTaxonUuid) {
226
        this.acceptedTaxonUuid = acceptedTaxonUuid;
227
    }
228

    
229
    /**
230
     * @return the acceptedNameLabel
231
     */
232
    public String getAcceptedNameLabel() {
233
        return acceptedNameLabel;
234
    }
235

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

    
243
    /**
244
     * @return the taxonStatus
245
     */
246
    public TaxonStatus getTaxonStatus() {
247
        return taxonStatus;
248
    }
249

    
250
    /**
251
     * @param taxonStatus the taxonStatus to set
252
     */
253
    public void setTaxonStatus(TaxonStatus taxonStatus) {
254
        this.taxonStatus = taxonStatus;
255
    }
256

    
257
    public UUID getParentTaxonUuid() {
258
        return parentTaxonUuid;
259
    }
260
    public void setParentTaxonUuid(UUID parentTaxonUuid) {
261
        this.parentTaxonUuid = parentTaxonUuid;
262
    }
263

    
264
    public String getParentNameLabel() {
265
        return parentNameLabel;
266
    }
267
    public void setParentNameLabel(String parentNameLabel) {
268
        this.parentNameLabel = parentNameLabel;
269
    }
270

    
271
    public String getParentTaxonLabel() {
272
        return parentTaxonLabel;
273
    }
274
    public void setParentTaxonLabel(String parentTaxonLabel) {
275
        this.parentTaxonLabel = parentTaxonLabel;
276
    }
277

    
278
// *************************** ADDER *******************************/
279

    
280
    public void addChild(EntityDTO<Taxon> childDto){
281
        this.children.add(childDto);
282
    }
283

    
284

    
285
    public void addSynonym(EntityDTO<Synonym> synonymDto){
286
        this.synonyms.add(synonymDto);
287
    }
288

    
289
    public void addMarkedAncestor(MarkedEntityDTO<Taxon> markedAncestor){
290
        this.markedAncestors.add(markedAncestor);
291
    }
292

    
293

    
294

    
295
}
(28-28/30)