- refactored DTO assembly for compressed specimen table in the data portal
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / dto / PreservedSpecimenDTO.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 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 java.util.ArrayList;
13 import java.util.List;
14
15
16 /**
17 * @author pplitzner
18 * @date Mar 26, 2015
19 *
20 */
21 public class PreservedSpecimenDTO extends DerivateDTO{
22
23 private String accessionNumber;
24 private List<String> types;
25
26 /**
27 * @return the accessionNumber
28 */
29 public String getAccessionNumber() {
30 return accessionNumber;
31 }
32 /**
33 * @param accessionNumber the accessionNumber to set
34 */
35 public void setAccessionNumber(String accessionNumber) {
36 this.accessionNumber = accessionNumber;
37 }
38 /**
39 * @return the types
40 */
41 public List<String> getTypes() {
42 return types;
43 }
44 public void addType(String typeStatus){
45 if(types==null){
46 types = new ArrayList<String>();
47 }
48 types.add(typeStatus);
49 }
50
51 }