Project

General

Profile

Download (1.19 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2020 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.cdm.api.service.name;
10

    
11
import java.util.List;
12
import java.util.UUID;
13

    
14
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
15
import eu.etaxonomy.cdm.ref.TaggedEntityReference;
16
import eu.etaxonomy.cdm.strategy.cache.TaggedText;
17

    
18
/**
19
 * @author a.mueller
20
 * @since 24.11.2020
21
 */
22
public class TypeDesignationDTO<T extends TypeDesignationBase> extends TaggedEntityReference<T> {
23

    
24
    private static final long serialVersionUID = -7638336499975494954L;
25

    
26
    private UUID typeUuid;
27

    
28
    /**
29
     * @param type the typeDesignations subclass
30
     * @param uuid the typeDesignations uuid
31
     * @param taggedText
32
     * @param typeUuid the uuid of the type (may it be specimen or name)
33
     */
34
    public TypeDesignationDTO(Class<T> type, UUID uuid, List<TaggedText> taggedText, UUID typeUuid) {
35
        super(type, uuid, taggedText);
36
        this.typeUuid = typeUuid;
37
    }
38

    
39
    public UUID getTypeUuid() {
40
        return typeUuid;
41
    }
42

    
43
}
(1-1/4)