Project

General

Profile

Download (1.99 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.persistence.dto;
10

    
11
import java.util.UUID;
12

    
13
/**
14
 * @author a.kohlbecker
15
 * @since Sep 28, 2018
16
 */
17
public class TaxonGraphEdgeDTO {
18

    
19
    private TaxonGraphNodeDTO from, to;
20

    
21
    private UUID citationUuid;
22
    private String citationTitleCache;
23

    
24
    public TaxonGraphEdgeDTO(TaxonGraphNodeDTO from, TaxonGraphNodeDTO to, UUID citationUuid,
25
            String citationTitleCache) {
26
        this.from = from;
27
        this.to = to;
28
        this.citationUuid = citationUuid;
29
        this.citationTitleCache = citationTitleCache;
30
    }
31

    
32
    public TaxonGraphEdgeDTO(UUID fromTaxonUuid, String fromName, String fromRank, Integer fromRankOrderId,
33
            UUID toTaxonUuid, String toName, String toRank, Integer toRankOrderId, UUID citationUuid,
34
            String citationTitleCache) {
35
        this.from = new TaxonGraphNodeDTO(null, fromTaxonUuid, fromName, fromRank, fromRankOrderId);
36
        this.to = new TaxonGraphNodeDTO(null, toTaxonUuid, toName, toRank, toRankOrderId);
37
        this.citationUuid = citationUuid;
38
        this.citationTitleCache = citationTitleCache;
39
    }
40

    
41
    public TaxonGraphNodeDTO getFrom() {
42
        return from;
43
    }
44
    public void setFrom(TaxonGraphNodeDTO from) {
45
        this.from = from;
46
    }
47

    
48
    public TaxonGraphNodeDTO getTo() {
49
        return to;
50
    }
51
    public void setTo(TaxonGraphNodeDTO to) {
52
        this.to = to;
53
    }
54

    
55
    public UUID getCitationUuid() {
56
        return citationUuid;
57
    }
58
    public void setCitationUuid(UUID citationUuid) {
59
        this.citationUuid = citationUuid;
60
    }
61

    
62
    public String getCitationTitleCache() {
63
        return citationTitleCache;
64
    }
65
    public void setCitationTitleCache(String citationTitleCache) {
66
        this.citationTitleCache = citationTitleCache;
67
    }
68
}
(15-15/29)