Project

General

Profile

Revision 6d399b0d

ID6d399b0dc16d542534cc699a0fe1ca1f6fd47451
Parent ee0b6690
Child e9c8c928

Added by Andreas Müller about 2 months ago

cleanup

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/FieldUnitDTO.java
1
/**
2
* Copyright (C) 2016 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
*/
1 9
package eu.etaxonomy.cdm.api.service.dto;
2 10

  
3 11
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
4 12

  
5

  
6

  
7
public class FieldUnitDTO extends DerivateDTO{
13
public class FieldUnitDTO extends DerivateDTO {
8 14

  
9 15
    private static final long serialVersionUID = 3981843956067273220L;
10 16

  
......
15 21
	private String collectionString;
16 22

  
17 23
	private boolean hasType;
18
	//private List<UUID> taxonRelatedDerivedUnits = new ArrayList<>();
19 24

  
20 25
	private GatheringEventDTO gatheringEvent;
21 26

  
22

  
23
	/**
24
     * @param fieldUnit
25
     */
26 27
    public FieldUnitDTO(FieldUnit fieldUnit) {
27 28
        super(fieldUnit);
28 29
        if (fieldUnit.getGatheringEvent() != null){
......
32 33
        setListLabel(fieldUnit.getTitleCache());
33 34
    }
34 35

  
35
    /**
36
     * @return the country
37
     */
38 36
    public String getCountry() {
39 37
        return country;
40 38
    }
41
    /**
42
     * @param country the country to set
43
     */
44 39
    public void setCountry(String country) {
45 40
        this.country = country;
46 41
    }
47
    /**
48
     * @return the collectionString
49
     */
42

  
50 43
    @Override
51 44
    public String getCollection() {
52 45
        return collectionString;
53 46
    }
54
    /**
55
     * @param collectionString the collectionString to set
56
     */
57 47
    @Override
58 48
    public void setCollection(String collection) {
59 49
        this.collectionString = collection;
60 50
    }
61 51

  
62
    /**
63
     * @return the collectionString
64
     */
65

  
66 52
    public String getCollectingString() {
67 53
        return collectingString;
68 54
    }
69
    /**
70
     * @param collectionString the collectionString to set
71
     */
72 55
    public void setCollectingString(String collectingString) {
73 56
        this.collectingString = collectingString;
74 57
    }
75 58

  
76
    /**
77
     * @return the date
78
     */
79 59
    public String getDate() {
80 60
        return date;
81 61
    }
82
    /**
83
     * @param date the date to set
84
     */
85 62
    public void setDate(String date) {
86 63
        this.date = date;
87 64
    }
88 65

  
89

  
90
    /**
91
     * @return the hasType
92
     */
93 66
    public boolean isHasType() {
94 67
        return hasType;
95 68
    }
96
    /**
97
     * @param hasType the hasType to set
98
     */
99 69
    public void setHasType(boolean hasType) {
100 70
        this.hasType = hasType;
101 71
    }
......
106 76
    public void setGatheringEvent(GatheringEventDTO gatheringEvent) {
107 77
        this.gatheringEvent = gatheringEvent;
108 78
    }
109

  
110

  
111
//    /**
112
//     * @return the taxonRelatedDerivedUnits
113
//     */
114
//    public List<UUID> getTaxonRelatedDerivedUnits() {
115
//        return taxonRelatedDerivedUnits;
116
//    }
117
//
118
//
119
//    /**
120
//     * @param taxonRelatedDerivedUnits the taxonRelatedDerivedUnits to set
121
//     */
122
//    public void setTaxonRelatedDerivedUnits(List<UUID> taxonRelatedDerivedUnits) {
123
//        this.taxonRelatedDerivedUnits = taxonRelatedDerivedUnits;
124
//    }
125

  
126

  
127
//    /**
128
//     * @param derivedUnitDTO
129
//     */
130
//    public void addTaxonRelatedDerivedUnits(DerivateDTO derivedUnitDTO) {
131
//        if (this.taxonRelatedDerivedUnits == null){
132
//            this.taxonRelatedDerivedUnits = new ArrayList<>();
133
//        }
134
//        this.taxonRelatedDerivedUnits.add(derivedUnitDTO.getUuid());
135
//
136
//    }
137

  
138
}
79
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)