Project

General

Profile

Download (6.51 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
public class TaxonInContextDTO {
24

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

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

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

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

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

    
53
    //parent taxon
54
    private UUID parentTaxonUuid;
55
    private String parentNameLabel;
56
    private String parentTaxonLabel;
57

    
58
    private List<EntityDTO<Taxon>> children = new ArrayList<>();
59
    private List<EntityDTO<Synonym>> synonyms = new ArrayList<>();
60
    private List<MarkedEntityDTO<Taxon>> markedAncestors = new ArrayList<>();
61

    
62
//********************* GETTER / SETTER ****************************/
63

    
64
    public UUID getClassificationUuid() {return classificationUuid;}
65
    public void setClassificationUuid(UUID classificationUuid) {this.classificationUuid = classificationUuid;}
66

    
67
    public String getAcceptedTaxonLabel() {return acceptedTaxonLabel;}
68
    public void setAcceptedTaxonLabel(String acceptedTaxonLabel) {this.acceptedTaxonLabel = acceptedTaxonLabel;}
69

    
70
    public void setTaxonNodeUuid(UUID taxonNodeUuid) {this.taxonNodeUuid = taxonNodeUuid;}
71
    public void setTaxonUuid(UUID taxonUuid) {this.taxonUuid = taxonUuid;}
72

    
73
    public void setNameUuid(UUID nameUuid) {this.nameUuid = nameUuid;}
74

    
75
    public void setRankUuid(UUID rankUuid) {this.rankUuid = rankUuid;}
76
    public void setRankLabel(String rankLabel) {this.rankLabel = rankLabel;}
77

    
78
    public void setGenusOrUninomial(String genusOrUninomial) {this.genusOrUninomial = genusOrUninomial;}
79

    
80
    public void setInfraGenericEpithet(String infraGenericEpithet) {this.infraGenericEpithet = infraGenericEpithet;}
81

    
82
    public void setSpeciesEpithet(String speciesEpithet) {this.speciesEpithet = speciesEpithet;}
83

    
84
    public void setInfraSpecificEpithet(String infraSpecificEpithet) {this.infraSpecificEpithet = infraSpecificEpithet;}
85

    
86
    public void setAuthorship(String authorship) {this.authorship = authorship;}
87

    
88
    public void setSecundumUuid(UUID secundumUuid) {this.secundumUuid = secundumUuid;}
89

    
90
    public void setSecundumLabel(String secundumLabel) {this.secundumLabel = secundumLabel;}
91

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

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

    
96
    public UUID getTaxonNodeUuid() {return taxonNodeUuid;}
97

    
98
    public UUID getTaxonUuid() {return taxonUuid;}
99

    
100
    public UUID getNameUuid() {return nameUuid;}
101

    
102
    public UUID getRankUuid() {return rankUuid;}
103

    
104
    public String getRankLabel() {return rankLabel;}
105

    
106
    public String getGenusOrUninomial() {return genusOrUninomial;}
107

    
108
    public String getInfraGenericEpithet() {return infraGenericEpithet;}
109
    public String getSpeciesEpithet() {return speciesEpithet;}
110

    
111
    public String getInfraSpecificEpithet() {return infraSpecificEpithet;}
112

    
113
    public String getAuthorship() {
114
        return authorship;
115
    }
116

    
117
    public UUID getSecundumUuid() {
118
        return secundumUuid;
119
    }
120

    
121
    public String getSecundumLabel() {
122
        return secundumLabel;
123
    }
124

    
125
    public String getTaxonLabel() {
126
        return taxonLabel;
127
    }
128
    public void setTaxonLabel(String taxonLabel) {
129
        this.taxonLabel = taxonLabel;
130
    }
131

    
132
    public String getNameLabel() {
133
        return nameLabel;
134
    }
135
    public void setNameLabel(String nameLabel) {
136
        this.nameLabel = nameLabel;
137
    }
138

    
139
    public String getNameWithoutAuthor() {
140
        return nameWithoutAuthor;
141
    }
142
    public void setNameWithoutAuthor(String nameWithoutAuthor) {
143
        this.nameWithoutAuthor = nameWithoutAuthor;
144
    }
145

    
146
    public List<EntityDTO<Taxon>> getChildren() {
147
        return children;
148
    }
149

    
150
    public List<EntityDTO<Synonym>> getSynonyms() {
151
        return synonyms;
152
    }
153
    public void setSynonyms(List<EntityDTO<Synonym>> synonyms) {
154
        this.synonyms = synonyms;
155
    }
156

    
157
    public List<MarkedEntityDTO<Taxon>> getMarkedAncestors() {
158
        return markedAncestors;
159
    }
160

    
161
    public UUID getAcceptedTaxonUuid() {
162
        return acceptedTaxonUuid;
163
    }
164
    public void setAcceptedTaxonUuid(UUID acceptedTaxonUuid) {
165
        this.acceptedTaxonUuid = acceptedTaxonUuid;
166
    }
167

    
168
    public String getAcceptedNameLabel() {
169
        return acceptedNameLabel;
170
    }
171
    public void setAcceptedNameLabel(String acceptedNameLabel) {
172
        this.acceptedNameLabel = acceptedNameLabel;
173
    }
174

    
175
    public TaxonStatus getTaxonStatus() {
176
        return taxonStatus;
177
    }
178
    public void setTaxonStatus(TaxonStatus taxonStatus) {
179
        this.taxonStatus = taxonStatus;
180
    }
181

    
182
    public UUID getParentTaxonUuid() {
183
        return parentTaxonUuid;
184
    }
185
    public void setParentTaxonUuid(UUID parentTaxonUuid) {
186
        this.parentTaxonUuid = parentTaxonUuid;
187
    }
188

    
189
    public String getParentNameLabel() {
190
        return parentNameLabel;
191
    }
192
    public void setParentNameLabel(String parentNameLabel) {
193
        this.parentNameLabel = parentNameLabel;
194
    }
195

    
196
    public String getParentTaxonLabel() {
197
        return parentTaxonLabel;
198
    }
199
    public void setParentTaxonLabel(String parentTaxonLabel) {
200
        this.parentTaxonLabel = parentTaxonLabel;
201
    }
202

    
203
// *************************** ADDER *******************************/
204

    
205
    public void addChild(EntityDTO<Taxon> childDto){
206
        this.children.add(childDto);
207
    }
208

    
209
    public void addSynonym(EntityDTO<Synonym> synonymDto){
210
        this.synonyms.add(synonymDto);
211
    }
212

    
213
    public void addMarkedAncestor(MarkedEntityDTO<Taxon> markedAncestor){
214
        this.markedAncestors.add(markedAncestor);
215
    }
216
}
(44-44/47)