1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2018 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.api.service.dto;
|
11
|
|
12
|
import eu.etaxonomy.cdm.model.description.SpecimenDescription;
|
13
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
14
|
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
|
15
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
|
16
|
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
|
17
|
|
18
|
/**
|
19
|
* @author pplitzner
|
20
|
* @since 16.04.2018
|
21
|
*
|
22
|
*/
|
23
|
public class SpecimenRowWrapperDTO extends RowWrapperDTO<SpecimenDescription> {
|
24
|
|
25
|
private static final long serialVersionUID = 5198447592554976471L;
|
26
|
|
27
|
private SpecimenOrObservationBase specimen;
|
28
|
private FieldUnit fieldUnit;
|
29
|
private String identifier;
|
30
|
private NamedArea country;
|
31
|
|
32
|
public SpecimenRowWrapperDTO(SpecimenDescription description, TaxonNodeDto taxonNode, FieldUnit fieldUnit, String identifier,
|
33
|
NamedArea country) {
|
34
|
super(description, taxonNode);
|
35
|
this.fieldUnit = fieldUnit;
|
36
|
this.identifier = identifier;
|
37
|
this.country = country;
|
38
|
this.specimen = description.getDescribedSpecimenOrObservation();
|
39
|
}
|
40
|
|
41
|
public SpecimenOrObservationBase getSpecimen() {
|
42
|
return specimen;
|
43
|
}
|
44
|
|
45
|
public FieldUnit getFieldUnit() {
|
46
|
return fieldUnit;
|
47
|
}
|
48
|
|
49
|
public String getIdentifier() {
|
50
|
return identifier;
|
51
|
}
|
52
|
|
53
|
public NamedArea getCountry() {
|
54
|
return country;
|
55
|
}
|
56
|
|
57
|
}
|