Project

General

Profile

Download (950 Bytes) Statistics
| Branch: | Tag: | Revision:
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.persistence.dto;
11

    
12
import java.util.HashSet;
13
import java.util.Set;
14
import java.util.UUID;
15

    
16
import eu.etaxonomy.cdm.model.common.Representation;
17

    
18
/**
19
 * @author pplitzner
20
 * @date 05.11.2018
21
 *
22
 */
23
public class TermVocabularyDto extends AbstractTermDto {
24

    
25
    private static final long serialVersionUID = 6053392236860675874L;
26

    
27
    private Set<TermDto> terms;
28

    
29
    public TermVocabularyDto(UUID uuid, Set<Representation> representations) {
30
        super(uuid, representations);
31
        terms = new HashSet<>();
32
    }
33

    
34
    public Set<TermDto> getTerms() {
35
        return terms;
36
    }
37

    
38
    public void addTerm(TermDto term){
39
        terms.add(term);
40
    }
41

    
42
}
(15-15/16)