2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.persistence
.dto
;
11 import java
.util
.UUID
;
14 * @author a.kohlbecker
18 public class TaxonGraphEdgeDTO
{
20 private TaxonGraphNodeDTO from
, to
;
22 private UUID citationUuid
;
23 private String citationTitleCache
;
29 * @param citationTitleCache
31 public TaxonGraphEdgeDTO(TaxonGraphNodeDTO from
, TaxonGraphNodeDTO to
, UUID citationUuid
,
32 String citationTitleCache
) {
36 this.citationUuid
= citationUuid
;
37 this.citationTitleCache
= citationTitleCache
;
40 public TaxonGraphEdgeDTO(UUID fromTaxonUuid
, String fromTaxonTitleCache
, UUID toTaxonUuid
, String toTaxonTitleCache
, UUID citationUuid
,
41 String citationTitleCache
) {
43 this.from
= new TaxonGraphNodeDTO(null, fromTaxonUuid
, fromTaxonTitleCache
);
44 this.to
= new TaxonGraphNodeDTO(null, toTaxonUuid
, toTaxonTitleCache
);
45 this.citationUuid
= citationUuid
;
46 this.citationTitleCache
= citationTitleCache
;
52 public TaxonGraphNodeDTO
getFrom() {
56 * @param from the from to set
58 public void setFrom(TaxonGraphNodeDTO from
) {
64 public TaxonGraphNodeDTO
getTo() {
68 * @param to the to to set
70 public void setTo(TaxonGraphNodeDTO to
) {
74 * @return the citationUuid
76 public UUID
getCitationUuid() {
80 * @param citationUuid the citationUuid to set
82 public void setCitationUuid(UUID citationUuid
) {
83 this.citationUuid
= citationUuid
;
86 * @return the citationTitleCache
88 public String
getCitationTitleCache() {
89 return citationTitleCache
;
92 * @param citationTitleCache the citationTitleCache to set
94 public void setCitationTitleCache(String citationTitleCache
) {
95 this.citationTitleCache
= citationTitleCache
;