1
|
/**
|
2
|
* Copyright (C) 2018 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.editor.workingSet.matrix;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
|
12
|
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
|
13
|
|
14
|
/**
|
15
|
* @author pplitzner
|
16
|
* @since Apr 11, 2018
|
17
|
*
|
18
|
*/
|
19
|
public class SpecimenWrapper {
|
20
|
|
21
|
private SpecimenOrObservationBase specimen;
|
22
|
private TaxonNode taxonNode;
|
23
|
private String taxonNodeLabel;
|
24
|
private String label;
|
25
|
|
26
|
public SpecimenWrapper(SpecimenOrObservationBase specimen, TaxonNode taxonNode, String label) {
|
27
|
super();
|
28
|
this.specimen = specimen;
|
29
|
this.taxonNode = taxonNode;
|
30
|
this.taxonNodeLabel = taxonNode.getTaxon().getName().getTitleCache();
|
31
|
this.label = label;
|
32
|
}
|
33
|
|
34
|
public SpecimenOrObservationBase getSpecimen() {
|
35
|
return specimen;
|
36
|
}
|
37
|
|
38
|
public TaxonNode getTaxonNode() {
|
39
|
return taxonNode;
|
40
|
}
|
41
|
|
42
|
public String getTaxonNodeLabel() {
|
43
|
return taxonNodeLabel;
|
44
|
}
|
45
|
|
46
|
public String getLabel() {
|
47
|
return label;
|
48
|
}
|
49
|
}
|