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
|
*/
|
18
|
public class TaxonGraphEdgeDTO {
|
19
|
|
20
|
private TaxonGraphNodeDTO from, to;
|
21
|
|
22
|
private UUID citationUuid;
|
23
|
private String citationTitleCache;
|
24
|
|
25
|
/**
|
26
|
* @param from
|
27
|
* @param to
|
28
|
* @param citationUuid
|
29
|
* @param citationTitleCache
|
30
|
*/
|
31
|
public TaxonGraphEdgeDTO(TaxonGraphNodeDTO from, TaxonGraphNodeDTO to, UUID citationUuid,
|
32
|
String citationTitleCache) {
|
33
|
super();
|
34
|
this.from = from;
|
35
|
this.to = to;
|
36
|
this.citationUuid = citationUuid;
|
37
|
this.citationTitleCache = citationTitleCache;
|
38
|
}
|
39
|
|
40
|
public TaxonGraphEdgeDTO(UUID fromTaxonUuid, String fromName, String fromRank, Integer fromRankOrderId, UUID toTaxonUuid, String toName, String toRank, Integer toRankOrderId, UUID citationUuid,
|
41
|
String citationTitleCache) {
|
42
|
super();
|
43
|
this.from = new TaxonGraphNodeDTO(null, fromTaxonUuid, fromName, fromRank, fromRankOrderId);
|
44
|
this.to = new TaxonGraphNodeDTO(null, toTaxonUuid, toName, toRank, toRankOrderId);
|
45
|
this.citationUuid = citationUuid;
|
46
|
this.citationTitleCache = citationTitleCache;
|
47
|
}
|
48
|
|
49
|
/**
|
50
|
* @return the from
|
51
|
*/
|
52
|
public TaxonGraphNodeDTO getFrom() {
|
53
|
return from;
|
54
|
}
|
55
|
/**
|
56
|
* @param from the from to set
|
57
|
*/
|
58
|
public void setFrom(TaxonGraphNodeDTO from) {
|
59
|
this.from = from;
|
60
|
}
|
61
|
/**
|
62
|
* @return the to
|
63
|
*/
|
64
|
public TaxonGraphNodeDTO getTo() {
|
65
|
return to;
|
66
|
}
|
67
|
/**
|
68
|
* @param to the to to set
|
69
|
*/
|
70
|
public void setTo(TaxonGraphNodeDTO to) {
|
71
|
this.to = to;
|
72
|
}
|
73
|
/**
|
74
|
* @return the citationUuid
|
75
|
*/
|
76
|
public UUID getCitationUuid() {
|
77
|
return citationUuid;
|
78
|
}
|
79
|
/**
|
80
|
* @param citationUuid the citationUuid to set
|
81
|
*/
|
82
|
public void setCitationUuid(UUID citationUuid) {
|
83
|
this.citationUuid = citationUuid;
|
84
|
}
|
85
|
/**
|
86
|
* @return the citationTitleCache
|
87
|
*/
|
88
|
public String getCitationTitleCache() {
|
89
|
return citationTitleCache;
|
90
|
}
|
91
|
/**
|
92
|
* @param citationTitleCache the citationTitleCache to set
|
93
|
*/
|
94
|
public void setCitationTitleCache(String citationTitleCache) {
|
95
|
this.citationTitleCache = citationTitleCache;
|
96
|
}
|
97
|
|
98
|
|
99
|
|
100
|
}
|