2 * Copyright (C) 2016 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.api
.service
.dto
;
11 import java
.util
.ArrayList
;
12 import java
.util
.List
;
13 import java
.util
.UUID
;
15 import eu
.etaxonomy
.cdm
.model
.taxon
.Synonym
;
16 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
17 import eu
.etaxonomy
.cdm
.persistence
.dto
.TaxonStatus
;
24 public class TaxonInContextDTO
{
26 private UUID classificationUuid
;
27 private UUID taxonNodeUuid
;
28 private UUID taxonUuid
;
29 private String taxonLabel
;
30 private TaxonStatus taxonStatus
;
33 private UUID nameUuid
;
34 private String nameLabel
;
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
;
46 private UUID secundumUuid
;
47 private String secundumLabel
;
50 private UUID acceptedTaxonUuid
;
51 private String acceptedNameLabel
;
53 private String acceptedTaxonLabel
;
57 private UUID parentTaxonUuid
;
58 private String parentNameLabel
;
59 private String parentTaxonLabel
;
63 private List
<EntityDTO
<Taxon
>> children
= new ArrayList
<>();
65 private List
<EntityDTO
<Synonym
>> synonyms
= new ArrayList
<>();
67 private List
<MarkedEntityDTO
<Taxon
>> markedAncestors
= new ArrayList
<>();
71 //********************* GETTER / SETTER ****************************/
73 public UUID
getClassificationUuid() {return classificationUuid
;}
74 public void setClassificationUuid(UUID classificationUuid
) {this.classificationUuid
= classificationUuid
;}
76 public String
getAcceptedTaxonLabel() {return acceptedTaxonLabel
;}
77 public void setAcceptedTaxonLabel(String acceptedTaxonLabel
) {this.acceptedTaxonLabel
= acceptedTaxonLabel
;}
79 public void setTaxonNodeUuid(UUID taxonNodeUuid
) {this.taxonNodeUuid
= taxonNodeUuid
;}
80 public void setTaxonUuid(UUID taxonUuid
) {this.taxonUuid
= taxonUuid
;}
82 public void setNameUuid(UUID nameUuid
) {this.nameUuid
= nameUuid
;}
84 public void setRankUuid(UUID rankUuid
) {this.rankUuid
= rankUuid
;}
85 public void setRankLabel(String rankLabel
) {this.rankLabel
= rankLabel
;}
87 public void setGenusOrUninomial(String genusOrUninomial
) {this.genusOrUninomial
= genusOrUninomial
;}
89 public void setInfraGenericEpithet(String infraGenericEpithet
) {this.infraGenericEpithet
= infraGenericEpithet
;}
91 public void setSpeciesEpithet(String speciesEpithet
) {this.speciesEpithet
= speciesEpithet
;}
93 public void setInfraSpecificEpithet(String infraSpecificEpithet
) {this.infraSpecificEpithet
= infraSpecificEpithet
;}
95 public void setAuthorship(String authorship
) {this.authorship
= authorship
;}
97 public void setSecundumUuid(UUID secundumUuid
) {this.secundumUuid
= secundumUuid
;}
99 public void setSecundumLabel(String secundumLabel
) {this.secundumLabel
= secundumLabel
;}
101 public void setChildren(List
<EntityDTO
<Taxon
>> children
) {this.children
= children
;}
103 public void setMarkedAncestors(List
<MarkedEntityDTO
<Taxon
>> markedAncestors
) {this.markedAncestors
= markedAncestors
;}
105 public UUID
getTaxonNodeUuid() {return taxonNodeUuid
;}
107 public UUID
getTaxonUuid() {return taxonUuid
;}
109 public UUID
getNameUuid() {return nameUuid
;}
111 public UUID
getRankUuid() {return rankUuid
;}
113 public String
getRankLabel() {return rankLabel
;}
115 public String
getGenusOrUninomial() {return genusOrUninomial
;}
117 public String
getInfraGenericEpithet() {return infraGenericEpithet
;}
118 public String
getSpeciesEpithet() {return speciesEpithet
;}
120 public String
getInfraSpecificEpithet() {return infraSpecificEpithet
;}
123 * @return the authorship
125 public String
getAuthorship() {
130 * @return the secundumUuid
132 public UUID
getSecundumUuid() {
137 * @return the secundumLabel
139 public String
getSecundumLabel() {
140 return secundumLabel
;
145 * @return the taxonLabel
147 public String
getTaxonLabel() {
152 * @param taxonLabel the taxonLabel to set
154 public void setTaxonLabel(String taxonLabel
) {
155 this.taxonLabel
= taxonLabel
;
159 * @return the nameLabel
161 public String
getNameLabel() {
166 * @param nameLabel the nameLabel to set
168 public void setNameLabel(String nameLabel
) {
169 this.nameLabel
= nameLabel
;
173 * @return the nameWithoutAuthor
175 public String
getNameWithoutAuthor() {
176 return nameWithoutAuthor
;
180 * @param nameWithoutAuthor the nameWithoutAuthor to set
182 public void setNameWithoutAuthor(String nameWithoutAuthor
) {
183 this.nameWithoutAuthor
= nameWithoutAuthor
;
188 * @return the children
190 public List
<EntityDTO
<Taxon
>> getChildren() {
195 * @return the synonyms
197 public List
<EntityDTO
<Synonym
>> getSynonyms() {
201 * @param synonyms the synonyms to set
203 public void setSynonyms(List
<EntityDTO
<Synonym
>> synonyms
) {
204 this.synonyms
= synonyms
;
208 * @return the markedAncestors
210 public List
<MarkedEntityDTO
<Taxon
>> getMarkedAncestors() {
211 return markedAncestors
;
216 * @return the acceptedTaxonUuid
218 public UUID
getAcceptedTaxonUuid() {
219 return acceptedTaxonUuid
;
223 * @param acceptedTaxonUuid the acceptedTaxonUuid to set
225 public void setAcceptedTaxonUuid(UUID acceptedTaxonUuid
) {
226 this.acceptedTaxonUuid
= acceptedTaxonUuid
;
230 * @return the acceptedNameLabel
232 public String
getAcceptedNameLabel() {
233 return acceptedNameLabel
;
237 * @param acceptedNameLabel the acceptedNameLabel to set
239 public void setAcceptedNameLabel(String acceptedNameLabel
) {
240 this.acceptedNameLabel
= acceptedNameLabel
;
244 * @return the taxonStatus
246 public TaxonStatus
getTaxonStatus() {
251 * @param taxonStatus the taxonStatus to set
253 public void setTaxonStatus(TaxonStatus taxonStatus
) {
254 this.taxonStatus
= taxonStatus
;
257 public UUID
getParentTaxonUuid() {
258 return parentTaxonUuid
;
260 public void setParentTaxonUuid(UUID parentTaxonUuid
) {
261 this.parentTaxonUuid
= parentTaxonUuid
;
264 public String
getParentNameLabel() {
265 return parentNameLabel
;
267 public void setParentNameLabel(String parentNameLabel
) {
268 this.parentNameLabel
= parentNameLabel
;
271 public String
getParentTaxonLabel() {
272 return parentTaxonLabel
;
274 public void setParentTaxonLabel(String parentTaxonLabel
) {
275 this.parentTaxonLabel
= parentTaxonLabel
;
278 // *************************** ADDER *******************************/
280 public void addChild(EntityDTO
<Taxon
> childDto
){
281 this.children
.add(childDto
);
285 public void addSynonym(EntityDTO
<Synonym
> synonymDto
){
286 this.synonyms
.add(synonymDto
);
289 public void addMarkedAncestor(MarkedEntityDTO
<Taxon
> markedAncestor
){
290 this.markedAncestors
.add(markedAncestor
);