1
|
/**
|
2
|
* Copyright (C) 2007 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
|
|
10
|
package eu.etaxonomy.cdm.remote.dto;
|
11
|
|
12
|
import java.util.ArrayList;
|
13
|
import java.util.HashSet;
|
14
|
import java.util.List;
|
15
|
import java.util.Set;
|
16
|
|
17
|
import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
|
18
|
import eu.etaxonomy.cdm.model.name.NameTypeDesignation;
|
19
|
|
20
|
|
21
|
/**
|
22
|
* Data Transfer Object representing a taxonomic Name. The fields are mainly derived from the
|
23
|
* domain object {@link TaxonNameBase}. The field <code>typeDesignations</code> however is not
|
24
|
* included since these will obtained by a separate call to the web service.
|
25
|
*
|
26
|
* @author a.kohlbecker
|
27
|
* @author m.doering
|
28
|
* @version 1.0 $Id: NameTO.java 1108 2007-12-14 18:03:12Z m.doering $
|
29
|
* @created 11.12.2007 11:04:42
|
30
|
*/
|
31
|
public class NameTO extends BaseTO {
|
32
|
|
33
|
private String fullname;
|
34
|
private List<TaggedText> taggedName = new ArrayList<TaggedText>();
|
35
|
|
36
|
private Set<LocalisedTermTO> status = new HashSet<LocalisedTermTO>();
|
37
|
private LocalisedTermTO rank;
|
38
|
private ReferenceTO nomenclaturalReference;
|
39
|
|
40
|
private NameTO basionym;
|
41
|
private Set<NameRelationshipTO> nameRelations = new HashSet<NameRelationshipTO>();
|
42
|
private Set<NameTO> newCombinations = new HashSet<NameTO>();
|
43
|
|
44
|
private List<NameTypeDesignationSTO> nameTypeDesignations = new ArrayList<NameTypeDesignationSTO>();
|
45
|
private List<SpecimenTypeDesignationSTO> typeDesignations = new ArrayList<SpecimenTypeDesignationSTO>();
|
46
|
public String getFullname() {
|
47
|
return fullname;
|
48
|
}
|
49
|
public void setFullname(String fullname) {
|
50
|
this.fullname = fullname;
|
51
|
}
|
52
|
public List<TaggedText> getTaggedName() {
|
53
|
return taggedName;
|
54
|
}
|
55
|
public void setTaggedName(List<TaggedText> taggedName) {
|
56
|
this.taggedName = taggedName;
|
57
|
}
|
58
|
public Set<LocalisedTermTO> getStatus() {
|
59
|
return status;
|
60
|
}
|
61
|
public void setStatus(Set<LocalisedTermTO> status) {
|
62
|
this.status = status;
|
63
|
}
|
64
|
public LocalisedTermTO getRank() {
|
65
|
return rank;
|
66
|
}
|
67
|
public void setRank(LocalisedTermTO rank) {
|
68
|
this.rank = rank;
|
69
|
}
|
70
|
public ReferenceTO getNomenclaturalReference() {
|
71
|
return nomenclaturalReference;
|
72
|
}
|
73
|
public void setNomenclaturalReference(ReferenceTO nomenclaturalReference) {
|
74
|
this.nomenclaturalReference = nomenclaturalReference;
|
75
|
}
|
76
|
public NameTO getBasionym() {
|
77
|
return basionym;
|
78
|
}
|
79
|
public void setBasionym(NameTO basionym) {
|
80
|
this.basionym = basionym;
|
81
|
}
|
82
|
public Set<NameRelationshipTO> getNameRelations() {
|
83
|
return nameRelations;
|
84
|
}
|
85
|
public void setNameRelations(Set<NameRelationshipTO> nameRelations) {
|
86
|
this.nameRelations = nameRelations;
|
87
|
}
|
88
|
public Set<NameTO> getNewCombinations() {
|
89
|
return newCombinations;
|
90
|
}
|
91
|
public void setNewCombinations(Set<NameTO> newCombinations) {
|
92
|
this.newCombinations = newCombinations;
|
93
|
}
|
94
|
public List<NameTypeDesignationSTO> getNameTypeDesignations() {
|
95
|
return nameTypeDesignations;
|
96
|
}
|
97
|
public void setNameTypeDesignations(
|
98
|
List<NameTypeDesignationSTO> nameTypeDesignations) {
|
99
|
this.nameTypeDesignations = nameTypeDesignations;
|
100
|
}
|
101
|
public List<SpecimenTypeDesignationSTO> getTypeDesignations() {
|
102
|
return typeDesignations;
|
103
|
}
|
104
|
public void setTypeDesignations(
|
105
|
List<SpecimenTypeDesignationSTO> typeDesignations) {
|
106
|
this.typeDesignations = typeDesignations;
|
107
|
}
|
108
|
public void addNameToken(TaggedText token){
|
109
|
this.taggedName.add(token);
|
110
|
}
|
111
|
|
112
|
}
|