Revision 2720ea2c
Added by Andreas Müller over 3 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/AbstractTermDto.java | ||
---|---|---|
23 | 23 |
/** |
24 | 24 |
* @author pplitzner |
25 | 25 |
* @date 05.11.2018 |
26 |
* |
|
27 | 26 |
*/ |
28 | 27 |
public class AbstractTermDto implements Serializable, Comparable<AbstractTermDto> { |
29 | 28 |
|
... | ... | |
38 | 37 |
private String representation_L10n_text = null; |
39 | 38 |
private String titleCache; |
40 | 39 |
|
41 |
protected AbstractTermDto(){ |
|
42 |
|
|
43 |
} |
|
40 |
protected AbstractTermDto(){} |
|
44 | 41 |
|
45 | 42 |
public AbstractTermDto(UUID uuid, Set<Representation> representations, String titleCache) { |
46 | 43 |
this.uuid = uuid; |
... | ... | |
49 | 46 |
for(Representation rep: representations){ |
50 | 47 |
this.representations.add(rep.clone()); |
51 | 48 |
} |
52 |
|
|
53 |
|
|
54 | 49 |
} |
55 | 50 |
|
56 | 51 |
/** |
... | ... | |
98 | 93 |
|
99 | 94 |
public void addRepresentation(Representation representation) { |
100 | 95 |
representations.add(representation); |
101 |
|
|
102 | 96 |
} |
103 | 97 |
|
104 | 98 |
public String getRepresentation_L10n_abbreviatedLabel() { |
... | ... | |
117 | 111 |
this.representation_L10n_text = representation_L10n_text; |
118 | 112 |
} |
119 | 113 |
|
120 |
|
|
121 |
|
|
122 | 114 |
public UUID getUuid() { |
123 | 115 |
return uuid; |
124 | 116 |
} |
... | ... | |
162 | 154 |
return null; |
163 | 155 |
} |
164 | 156 |
|
165 |
|
|
166 | 157 |
public String getTitleCache() { |
167 | 158 |
return titleCache; |
168 | 159 |
} |
169 | 160 |
|
170 |
|
|
171 | 161 |
public void setTitleCache(String titleCache) { |
172 | 162 |
this.titleCache = titleCache; |
173 | 163 |
} |
... | ... | |
220 | 210 |
} |
221 | 211 |
return uuid.compareTo(o.getUuid()); |
222 | 212 |
} |
223 |
|
|
224 |
} |
|
213 |
} |
Also available in: Unified diff
cleanup