f45fe521f3a8457e8a0d0d87bcba5ab5192aec1e
2 * Copyright (C) 2009 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.
10 package eu
.etaxonomy
.cdm
.io
.excel
.taxa
;
12 import java
.util
.ArrayList
;
13 import java
.util
.List
;
14 import java
.util
.TreeMap
;
16 import eu
.etaxonomy
.cdm
.io
.excel
.common
.ExcelRowBase
;
19 * @author a.babadshanjan
23 public class NormalExplicitRow
extends ExcelRowBase
{
27 private String parentId
;
29 private String scientificName
;
30 private String author
;
31 private String basionymAuthor
;
32 private String publishingAuthor
;
33 private String nameStatus
;
34 private String commonName
;
35 private String language
;
36 private String reference
;
38 private String family
;
39 private String infraFamily
;
41 private String infraGenus
;
42 private String species
;
43 private String infraSpecies
;
44 private String infraSpecies_rank
;
46 private String collation
;
48 private String publicationYear
;
49 private String remarks
;
51 private String synonym
;
52 private String basionym
;
53 private String accepted_id
;
54 private String taxonomicStatus
;
56 private String version
;
59 private String ipni_id
;
60 private String source
;
61 private String source_Id
;
63 private TreeMap
<Integer
, String
> distributions
= new TreeMap
<Integer
, String
>();
65 private TreeMap
<Integer
, String
> protologues
= new TreeMap
<Integer
, String
>();
67 private TreeMap
<Integer
, String
> images
= new TreeMap
<Integer
, String
>();
69 public NormalExplicitRow() {
75 this.scientificName
= "";
85 public NormalExplicitRow(String name
, String parentId
) {
86 this(name
, parentId
, null);
89 public NormalExplicitRow(String scientificName
, String parentId
, String reference
) {
90 this.parentId
= parentId
;
91 this.scientificName
= scientificName
;
92 this.reference
= reference
;
95 // **************************** GETTER / SETTER *********************************/
98 * @return the parentId
100 public String
getParentId() {
104 * @param parentId the parentId to set
106 public void setParentId(String parentId
) {
107 this.parentId
= parentId
;
112 public String
getScientificName() {
113 return scientificName
;
116 * @param name the name to set
118 public void setScientificName(String scientificName
) {
119 this.scientificName
= scientificName
;
122 * @return the reference
124 public String
getReference() {
128 * @param reference the reference to set
130 public void setReference(String reference
) {
131 this.reference
= reference
;
137 public String
getId() {
142 * @param id the id to set
144 public void setId(String id
) {
151 public String
getRank() {
156 * @param rank the rank to set
158 public void setRank(String rank
) {
165 public String
getAuthor() {
170 * @param author the author to set
172 public void setAuthor(String author
) {
173 this.author
= author
;
177 * @return the nameStatus
179 public String
getNameStatus() {
184 * @param nameStatus the nameStatus to set
186 public void setNameStatus(String nameStatus
) {
187 this.nameStatus
= nameStatus
;
191 * @return the commonName
193 public String
getCommonName() {
198 * @param commonName the commonName to set
200 public void setCommonName(String commonName
) {
201 this.commonName
= commonName
;
205 * @return the language
207 public String
getLanguage() {
212 * @param language the language to set
214 public void setLanguage(String language
) {
215 this.language
= language
;
218 public void putDistribution(int key
, String distribution
){
219 this.distributions
.put(key
, distribution
);
222 public List
<String
> getDistributions() {
223 return getOrdered(distributions
);
226 public void putProtologue(int key
, String protologue
){
227 this.protologues
.put(key
, protologue
);
230 public List
<String
> getProtologues() {
231 return getOrdered(protologues
);
234 public void putImage(int key
, String image
){
235 this.images
.put(key
, image
);
238 public List
<String
> getImages() {
239 return getOrdered(images
);
243 private List
<String
> getOrdered(TreeMap
<Integer
, String
> tree
) {
244 List
<String
> result
= new ArrayList
<String
>();
245 for (String distribution
: tree
.values()){
246 result
.add(distribution
);
254 public String
getDate() {
259 * @param date the date to set
261 public void setDate(String date
) {
268 public String
getFamily() {
273 * @param family the family to set
275 public void setFamily(String family
) {
276 this.family
= family
;
280 * @return the basionymAuthor
282 public String
getBasionymAuthor() {
283 return basionymAuthor
;
287 * @param basionymAuthor the basionymAuthor to set
289 public void setBasionymAuthor(String basionymAuthor
) {
290 this.basionymAuthor
= basionymAuthor
;
294 * @return the infraFamily
296 public String
getInfraFamily() {
301 * @param infraFamily the infraFamily to set
303 public void setInfraFamily(String infraFamily
) {
304 this.infraFamily
= infraFamily
;
310 public String
getGenus() {
315 * @param genus the genus to set
317 public void setGenus(String genus
) {
322 * @return the infraGenus
324 public String
getInfraGenus() {
329 * @param infraGenus the infraGenus to set
331 public void setInfraGenus(String infraGenus
) {
332 this.infraGenus
= infraGenus
;
336 * @return the species
338 public String
getSpecies() {
343 * @param species the species to set
345 public void setSpecies(String species
) {
346 this.species
= species
;
350 * @return the infraSpecies
352 public String
getInfraSpecies() {
357 * @param infraSpecies the infraSpecies to set
359 public void setInfraSpecies(String infraSpecies
) {
360 this.infraSpecies
= infraSpecies
;
364 * @return the collation
366 public String
getCollation() {
371 * @param collation the collation to set
373 public void setCollation(String collation
) {
374 this.collation
= collation
;
378 * @return the publicationYear
380 public String
getPublicationYear() {
381 return publicationYear
;
385 * @param publicationYear the publicationYear to set
387 public void setPublicationYear(String publicationYear
) {
388 this.publicationYear
= publicationYear
;
392 * @return the remarks
394 public String
getRemarks() {
399 * @param remarks the remarks to set
401 public void setRemarks(String remarks
) {
402 this.remarks
= remarks
;
406 * @return the synonym
408 public String
getSynonym() {
413 * @param synonym the synonym to set
415 public void setSynonym(String synonym
) {
416 this.synonym
= synonym
;
420 * @return the basionym
422 public String
getBasionym() {
427 * @param basionym the basionym to set
429 public void setBasionym(String basionym
) {
430 this.basionym
= basionym
;
434 * @return the publishingAuthor
436 public String
getPublishingAuthor() {
437 return publishingAuthor
;
441 * @param publishingAuthor the publishingAuthor to set
443 public void setPublishingAuthor(String publishingAuthor
) {
444 this.publishingAuthor
= publishingAuthor
;
448 * @return the version
450 public String
getVersion() {
455 * @param version the version to set
457 public void setVersion(String version
) {
458 this.version
= version
;
462 public void setPage(String value
) {
466 public String
getPage() {
472 public void setAccepted_id(String value
) {
473 this.accepted_id
= value
;
476 public String
getAccepted_id(){
480 public void setInfraSpecies_Rank(String value
) {
481 this.infraSpecies_rank
= value
;
484 public String
getInfraSpecies_Rank() {
485 return this.infraSpecies_rank
;
488 public String
getTaxonomicStatus() {
489 return this.taxonomicStatus
;
492 public void setTaxonomicStatus(String value
) {
493 this.taxonomicStatus
= value
;
496 public String
getIpni_id() {
500 public void setIpni_id(String ipni_id
) {
501 this.ipni_id
= ipni_id
;
504 public void setSource(String value
) {
508 public String
getSource() {
512 public void setSource_Id(String value
) {
513 this.source_Id
= value
;
515 public String
getSource_Id() {
516 return this.source_Id
;