3f80245bbfdf9710323c5a9618d0e1bb0c27e1b4
1 package eu
.etaxonomy
.cdm
.api
.service
.dto
;
3 import java
.util
.ArrayList
;
4 import java
.util
.HashMap
;
8 public class DerivateHierarchyDTO
{
11 private boolean hasDna
;
12 private boolean hasDetailImage
;
15 private String country
;
16 private String collection
;
18 private String herbarium
;
19 private boolean hasType
;
20 private boolean hasSpecimenScan
;
23 private String taxonName
;
24 private String protologue
;
25 private String citation
;
26 private List
<String
> types
;
27 private Map
<String
, String
> specimenScans
;
28 private Map
<String
, String
> molecularData
;
29 private Map
<String
, String
> detailImages
;
33 public boolean isHasDna() {
37 * @param hasDna the hasDna to set
39 public void setHasDna(boolean hasDna
) {
43 * @return the hasDetailImage
45 public boolean isHasDetailImage() {
46 return hasDetailImage
;
49 * @param hasDetailImage the hasDetailImage to set
51 public void setHasDetailImage(boolean hasDetailImage
) {
52 this.hasDetailImage
= hasDetailImage
;
57 public String
getCountry() {
61 * @param country the country to set
63 public void setCountry(String country
) {
64 this.country
= country
;
67 * @return the collection
69 public String
getCollection() {
73 * @param collection the collection to set
75 public void setCollection(String collection
) {
76 this.collection
= collection
;
81 public String
getDate() {
85 * @param date the date to set
87 public void setDate(String date
) {
91 * @return the herbarium
93 public String
getHerbarium() {
97 * @param herbarium the herbarium to set
99 public void setHerbarium(String herbarium
) {
100 this.herbarium
= herbarium
;
103 * @return the hasType
105 public boolean isHasType() {
109 * @param hasType the hasType to set
111 public void setHasType(boolean hasType
) {
112 this.hasType
= hasType
;
115 * @return the hasSpecimenScan
117 public boolean isHasSpecimenScan() {
118 return hasSpecimenScan
;
121 * @param hasSpecimenScan the hasSpecimenScan to set
123 public void setHasSpecimenScan(boolean hasSpecimenScan
) {
124 this.hasSpecimenScan
= hasSpecimenScan
;
127 * @return the taxonName
129 public String
getTaxonName() {
133 * @param taxonName the taxonName to set
135 public void setTaxonName(String taxonName
) {
136 this.taxonName
= taxonName
;
139 * @return the protologue
141 public String
getProtologue() {
145 * @param protologue the protologue to set
147 public void setProtologue(String protologue
) {
148 this.protologue
= protologue
;
151 * @return the citation
153 public String
getCitation() {
157 * @param citation the citation to set
159 public void setCitation(String citation
) {
160 this.citation
= citation
;
165 public List
<String
> getTypes() {
169 * @param types the types to set
171 public void setTypes(List
<String
> types
) {
175 public void addTypes(String uri
){
177 types
= new ArrayList
<String
>();
182 * @return the specimenScans
184 public Map
<String
, String
> getSpecimenScans() {
185 return specimenScans
;
188 * @param specimenScans the specimenScans to set
190 public void setSpecimenScans(Map
<String
, String
> specimenScans
) {
191 this.specimenScans
= specimenScans
;
194 public void addSpecimenScan(String uri
, String herbarium
){
195 if(specimenScans
==null){
196 specimenScans
= new HashMap
<String
, String
>();
198 specimenScans
.put(uri
, herbarium
);
201 * @return the molecularData
203 public Map
<String
, String
> getMolecularData() {
204 return molecularData
;
207 * @param molecularData the molecularData to set
209 public void setMolecularData(Map
<String
, String
> molecularData
) {
210 this.molecularData
= molecularData
;
213 public void addMolecularData(String uri
, String marker
){
214 if(molecularData
==null){
215 molecularData
= new HashMap
<String
, String
>();
217 molecularData
.put(uri
, marker
);
221 * @return the detailImages
223 public Map
<String
, String
> getDetailImages() {
227 * @param detailImages the detailImages to set
229 public void setDetailImages(Map
<String
, String
> detailImages
) {
230 this.detailImages
= detailImages
;
233 public void addDetailImage(String uri
, String motif
){
234 if(detailImages
==null){
235 detailImages
= new HashMap
<String
, String
>();
237 detailImages
.put(uri
, motif
);