1 package eu
.etaxonomy
.cdm
.api
.service
.dto
;
3 import java
.util
.ArrayList
;
4 import java
.util
.HashMap
;
8 import org
.hibernate
.envers
.tools
.Pair
;
10 public class DerivateHierarchyDTO
{
13 private boolean hasDna
;
14 private boolean hasDetailImage
;
17 private String country
;
18 private String collection
;
20 private String herbarium
;
21 private boolean hasType
;
22 private boolean hasSpecimenScan
;
25 private String taxonName
;
26 private String protologue
;
27 private String citation
;
28 private Map
<String
, List
<String
>> types
;
29 private List
<Pair
<String
, String
>> specimenScans
;
30 private List
<Pair
<String
, String
>> molecularData
;
31 private List
<Pair
<String
, String
>> detailImages
;
35 public boolean isHasDna() {
39 * @param hasDna the hasDna to set
41 public void setHasDna(boolean hasDna
) {
45 * @return the hasDetailImage
47 public boolean isHasDetailImage() {
48 return hasDetailImage
;
51 * @param hasDetailImage the hasDetailImage to set
53 public void setHasDetailImage(boolean hasDetailImage
) {
54 this.hasDetailImage
= hasDetailImage
;
59 public String
getCountry() {
63 * @param country the country to set
65 public void setCountry(String country
) {
66 this.country
= country
;
69 * @return the collection
71 public String
getCollection() {
75 * @param collection the collection to set
77 public void setCollection(String collection
) {
78 this.collection
= collection
;
83 public String
getDate() {
87 * @param date the date to set
89 public void setDate(String date
) {
93 * @return the herbarium
95 public String
getHerbarium() {
99 * @param herbarium the herbarium to set
101 public void setHerbarium(String herbarium
) {
102 this.herbarium
= herbarium
;
105 * @return the hasType
107 public boolean isHasType() {
111 * @param hasType the hasType to set
113 public void setHasType(boolean hasType
) {
114 this.hasType
= hasType
;
117 * @return the hasSpecimenScan
119 public boolean isHasSpecimenScan() {
120 return hasSpecimenScan
;
123 * @param hasSpecimenScan the hasSpecimenScan to set
125 public void setHasSpecimenScan(boolean hasSpecimenScan
) {
126 this.hasSpecimenScan
= hasSpecimenScan
;
129 * @return the taxonName
131 public String
getTaxonName() {
135 * @param taxonName the taxonName to set
137 public void setTaxonName(String taxonName
) {
138 this.taxonName
= taxonName
;
141 * @return the protologue
143 public String
getProtologue() {
147 * @param protologue the protologue to set
149 public void setProtologue(String protologue
) {
150 this.protologue
= protologue
;
153 * @return the citation
155 public String
getCitation() {
159 * @param citation the citation to set
161 public void setCitation(String citation
) {
162 this.citation
= citation
;
166 * @param types the types to set
168 public void setTypes(Map
<String
, List
<String
>> types
) {
174 public Map
<String
, List
<String
>> getTypes() {
177 public void addTypes(String typeStatus
, String accessionNumber
){
179 types
= new HashMap
<String
, List
<String
>>();
181 List
<String
> list
= types
.get(typeStatus
);
183 list
= new ArrayList
<String
>();
185 list
.add(accessionNumber
);
186 types
.put(typeStatus
, list
);
190 * @param specimenScans the specimenScans to set
192 public void setSpecimenScans(List
<Pair
<String
, String
>> specimenScans
) {
193 this.specimenScans
= specimenScans
;
196 * @return the specimenScans
198 public List
<Pair
<String
, String
>> getSpecimenScans() {
199 return specimenScans
;
202 public void addSpecimenScan(String uri
, String herbarium
){
203 if(specimenScans
==null){
204 specimenScans
= new ArrayList
<Pair
<String
,String
>>();
206 specimenScans
.add(new Pair
<String
, String
>(uri
, herbarium
));
210 * @return the molecularData
212 public List
<Pair
<String
, String
>> getMolecularData() {
213 return molecularData
;
217 * @param molecularData the molecularData to set
219 public void setMolecularData(List
<Pair
<String
, String
>> molecularData
) {
220 this.molecularData
= molecularData
;
223 public void addMolecularData(String uri
, String marker
){
224 if(molecularData
==null){
225 molecularData
= new ArrayList
<Pair
<String
,String
>>();
227 molecularData
.add(new Pair
<String
, String
>(uri
, marker
));
231 * @return the detailImages
233 public List
<Pair
<String
, String
>> getDetailImages() {
237 * @param detailImages the detailImages to set
239 public void setDetailImages(List
<Pair
<String
, String
>> detailImages
) {
240 this.detailImages
= detailImages
;
243 public void addDetailImage(String uri
, String motif
){
244 if(detailImages
==null){
245 detailImages
= new ArrayList
<Pair
<String
,String
>>();
247 detailImages
.add(new Pair
<String
, String
>(uri
, motif
));