Revision 31e57990
Added by Patrick Plitzner about 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/plantglossary/kew/KewPlantGlossaryCsvImportState.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.cdm.model.agent.Institution; |
17 | 17 |
import eu.etaxonomy.cdm.model.agent.Person; |
18 | 18 |
import eu.etaxonomy.cdm.model.common.VerbatimTimePeriod; |
19 |
import eu.etaxonomy.cdm.model.description.Feature; |
|
20 | 19 |
import eu.etaxonomy.cdm.model.reference.Reference; |
21 | 20 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
21 |
import eu.etaxonomy.cdm.model.term.DefinedTerm; |
|
22 | 22 |
import eu.etaxonomy.cdm.model.term.DefinedTermBase; |
23 | 23 |
import eu.etaxonomy.cdm.model.term.TermType; |
24 | 24 |
import eu.etaxonomy.cdm.model.term.TermVocabulary; |
... | ... | |
35 | 35 |
private List<TermVocabulary> existingVocabularies = new ArrayList<>(); |
36 | 36 |
private List<UuidAndTitleCache<DefinedTermBase>> existingTerms = new ArrayList<>(); |
37 | 37 |
private final Reference citation; |
38 |
private final TermVocabulary<Feature> structureVoc;
|
|
38 |
private final TermVocabulary<DefinedTerm> structureVoc;
|
|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
protected KewPlantGlossaryCsvImportState(KewPlantGlossaryCsvImportConfigurator config) { |
42 | 42 |
super(config); |
43 |
structureVoc = TermVocabulary.NewInstance(TermType.Feature);
|
|
43 |
structureVoc = TermVocabulary.NewInstance(TermType.Structure, DefinedTerm.class);
|
|
44 | 44 |
structureVoc.setLabel("Structures"); |
45 | 45 |
|
46 | 46 |
citation = ReferenceFactory.newBook(); |
... | ... | |
66 | 66 |
return existingTerms.stream().anyMatch(term->term.getTitleCache().equals(termName)); |
67 | 67 |
} |
68 | 68 |
|
69 |
TermVocabulary<Feature> getStructureVoc() {
|
|
69 |
TermVocabulary<DefinedTerm> getStructureVoc() {
|
|
70 | 70 |
return structureVoc; |
71 | 71 |
} |
72 | 72 |
|
Also available in: Unified diff
Adapt imports to tem model changes