2 * Copyright (C) 2018 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.
9 package eu
.etaxonomy
.cdm
.api
.service
.dto
;
11 import java
.io
.Serializable
;
13 import eu
.etaxonomy
.cdm
.model
.agent
.Institution
;
14 import eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
;
21 public class CollectionDTO
implements Serializable
{
23 private static final long serialVersionUID
= -1840237876297997573L;
26 private String codeStandard
;
27 private String institute
;
28 private String townOrLocation
;
35 * @param townOrLocation
37 public CollectionDTO(String code
, String codeStandard
, Institution institute
, String townOrLocation
) {
39 this.codeStandard
= codeStandard
;
40 if (institute
!= null){
41 this.institute
= institute
.getTitleCache();
43 this.townOrLocation
= townOrLocation
;
49 public CollectionDTO(Collection collection
) {
50 this(collection
.getCode(),collection
.getCodeStandard(), collection
.getInstitute(),collection
.getTownOrLocation());
54 public String
getCode() {
57 public void setCode(String code
) {
60 public String
getCodeStandard() {
63 public void setCodeStandard(String codeStandard
) {
64 this.codeStandard
= codeStandard
;
66 public String
getInstitute() {
69 public void setInstitute(String institute
) {
70 this.institute
= institute
;
72 public String
getTownOrLocation() {
73 return townOrLocation
;
75 public void setTownOrLocation(String townOrLocation
) {
76 this.townOrLocation
= townOrLocation
;