3f80245bbfdf9710323c5a9618d0e1bb0c27e1b4
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / dto / DerivateHierarchyDTO.java
1 package eu.etaxonomy.cdm.api.service.dto;
2
3 import java.util.ArrayList;
4 import java.util.HashMap;
5 import java.util.List;
6 import java.util.Map;
7
8 public class DerivateHierarchyDTO {
9
10 //Filter Flags
11 private boolean hasDna;
12 private boolean hasDetailImage;
13
14 //Row Attributes
15 private String country;
16 private String collection;
17 private String date;
18 private String herbarium;
19 private boolean hasType;
20 private boolean hasSpecimenScan;
21
22 //Detail pop-down
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;
30 /**
31 * @return the hasDna
32 */
33 public boolean isHasDna() {
34 return hasDna;
35 }
36 /**
37 * @param hasDna the hasDna to set
38 */
39 public void setHasDna(boolean hasDna) {
40 this.hasDna = hasDna;
41 }
42 /**
43 * @return the hasDetailImage
44 */
45 public boolean isHasDetailImage() {
46 return hasDetailImage;
47 }
48 /**
49 * @param hasDetailImage the hasDetailImage to set
50 */
51 public void setHasDetailImage(boolean hasDetailImage) {
52 this.hasDetailImage = hasDetailImage;
53 }
54 /**
55 * @return the country
56 */
57 public String getCountry() {
58 return country;
59 }
60 /**
61 * @param country the country to set
62 */
63 public void setCountry(String country) {
64 this.country = country;
65 }
66 /**
67 * @return the collection
68 */
69 public String getCollection() {
70 return collection;
71 }
72 /**
73 * @param collection the collection to set
74 */
75 public void setCollection(String collection) {
76 this.collection = collection;
77 }
78 /**
79 * @return the date
80 */
81 public String getDate() {
82 return date;
83 }
84 /**
85 * @param date the date to set
86 */
87 public void setDate(String date) {
88 this.date = date;
89 }
90 /**
91 * @return the herbarium
92 */
93 public String getHerbarium() {
94 return herbarium;
95 }
96 /**
97 * @param herbarium the herbarium to set
98 */
99 public void setHerbarium(String herbarium) {
100 this.herbarium = herbarium;
101 }
102 /**
103 * @return the hasType
104 */
105 public boolean isHasType() {
106 return hasType;
107 }
108 /**
109 * @param hasType the hasType to set
110 */
111 public void setHasType(boolean hasType) {
112 this.hasType = hasType;
113 }
114 /**
115 * @return the hasSpecimenScan
116 */
117 public boolean isHasSpecimenScan() {
118 return hasSpecimenScan;
119 }
120 /**
121 * @param hasSpecimenScan the hasSpecimenScan to set
122 */
123 public void setHasSpecimenScan(boolean hasSpecimenScan) {
124 this.hasSpecimenScan = hasSpecimenScan;
125 }
126 /**
127 * @return the taxonName
128 */
129 public String getTaxonName() {
130 return taxonName;
131 }
132 /**
133 * @param taxonName the taxonName to set
134 */
135 public void setTaxonName(String taxonName) {
136 this.taxonName = taxonName;
137 }
138 /**
139 * @return the protologue
140 */
141 public String getProtologue() {
142 return protologue;
143 }
144 /**
145 * @param protologue the protologue to set
146 */
147 public void setProtologue(String protologue) {
148 this.protologue = protologue;
149 }
150 /**
151 * @return the citation
152 */
153 public String getCitation() {
154 return citation;
155 }
156 /**
157 * @param citation the citation to set
158 */
159 public void setCitation(String citation) {
160 this.citation = citation;
161 }
162 /**
163 * @return the types
164 */
165 public List<String> getTypes() {
166 return types;
167 }
168 /**
169 * @param types the types to set
170 */
171 public void setTypes(List<String> types) {
172 this.types = types;
173 }
174
175 public void addTypes(String uri){
176 if(types==null){
177 types = new ArrayList<String>();
178 }
179 types.add(uri);
180 }
181 /**
182 * @return the specimenScans
183 */
184 public Map<String, String> getSpecimenScans() {
185 return specimenScans;
186 }
187 /**
188 * @param specimenScans the specimenScans to set
189 */
190 public void setSpecimenScans(Map<String, String> specimenScans) {
191 this.specimenScans = specimenScans;
192 }
193
194 public void addSpecimenScan(String uri, String herbarium){
195 if(specimenScans==null){
196 specimenScans = new HashMap<String, String>();
197 }
198 specimenScans.put(uri, herbarium);
199 }
200 /**
201 * @return the molecularData
202 */
203 public Map<String, String> getMolecularData() {
204 return molecularData;
205 }
206 /**
207 * @param molecularData the molecularData to set
208 */
209 public void setMolecularData(Map<String, String> molecularData) {
210 this.molecularData = molecularData;
211 }
212
213 public void addMolecularData(String uri, String marker){
214 if(molecularData==null){
215 molecularData = new HashMap<String, String>();
216 }
217 molecularData.put(uri, marker);
218 }
219
220 /**
221 * @return the detailImages
222 */
223 public Map<String, String> getDetailImages() {
224 return detailImages;
225 }
226 /**
227 * @param detailImages the detailImages to set
228 */
229 public void setDetailImages(Map<String, String> detailImages) {
230 this.detailImages = detailImages;
231 }
232
233 public void addDetailImage(String uri, String motif){
234 if(detailImages==null){
235 detailImages = new HashMap<String, String>();
236 }
237 detailImages.put(uri, motif);
238 }
239
240
241 }