1
|
/**
|
2
|
* Copyright (C) 2020 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.ref;
|
10
|
|
11
|
import java.util.List;
|
12
|
import java.util.UUID;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
15
|
import eu.etaxonomy.cdm.strategy.cache.TaggedCacheHelper;
|
16
|
import eu.etaxonomy.cdm.strategy.cache.TaggedText;
|
17
|
|
18
|
/**
|
19
|
* @author a.kohlbecker
|
20
|
* @since Nov 25, 2020
|
21
|
*/
|
22
|
public class TaggedEntityReference<T extends CdmBase> extends TypedEntityReference<T> {
|
23
|
|
24
|
private static final long serialVersionUID = 1327812492116862809L;
|
25
|
|
26
|
private List<TaggedText> taggedText;
|
27
|
|
28
|
public TaggedEntityReference(Class<T> type, UUID uuid, List<TaggedText> taggedText) {
|
29
|
super(type, uuid, TaggedCacheHelper.createString(taggedText));
|
30
|
this.taggedText = taggedText;
|
31
|
}
|
32
|
|
33
|
public List<TaggedText> getTaggedText() {
|
34
|
return taggedText;
|
35
|
}
|
36
|
|
37
|
}
|