Revision b3340748
Added by Andreas Müller about 5 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/sdd/in/SDDImport.java | ||
---|---|---|
83 | 83 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
84 | 84 |
import eu.etaxonomy.cdm.model.term.DefinedTerm; |
85 | 85 |
import eu.etaxonomy.cdm.model.term.DefinedTermBase; |
86 |
import eu.etaxonomy.cdm.model.term.FeatureTree; |
|
87 | 86 |
import eu.etaxonomy.cdm.model.term.Representation; |
88 | 87 |
import eu.etaxonomy.cdm.model.term.TermBase; |
88 |
import eu.etaxonomy.cdm.model.term.TermTree; |
|
89 | 89 |
import eu.etaxonomy.cdm.model.term.TermTreeNode; |
90 | 90 |
import eu.etaxonomy.cdm.model.term.TermType; |
91 | 91 |
import eu.etaxonomy.cdm.model.term.TermVocabulary; |
... | ... | |
142 | 142 |
|
143 | 143 |
private Set<StatisticalMeasure> statisticalMeasures = new HashSet<>(); |
144 | 144 |
private Set<VersionableEntity> featureData = new HashSet<>(); |
145 |
private Set<FeatureTree> featureTrees = new HashSet<>();
|
|
145 |
private Set<TermTree> featureTrees = new HashSet<>();
|
|
146 | 146 |
private Set<Classification> classifications = new HashSet<>(); |
147 | 147 |
|
148 | 148 |
private final UUID uuidAnnotationTypeLocation = UUID.fromString("a3737e07-72e3-46d2-986d-fa4cf5de0b63"); |
... | ... | |
675 | 675 |
getReferenceService().save(source); |
676 | 676 |
} |
677 | 677 |
|
678 |
for (FeatureTree featureTree : featureTrees) {
|
|
678 |
for (TermTree featureTree : featureTrees) {
|
|
679 | 679 |
getFeatureTreeService().save(featureTree); |
680 | 680 |
} |
681 | 681 |
getDescriptiveDataSetService().save(descriptiveDataSet); |
... | ... | |
1751 | 1751 |
String label = (String)ImportHelper.getXmlInputValue(elRepresentation,"Label",sddNamespace); |
1752 | 1752 |
//Element elDesignedFor = elCharacterTree.getChild("DesignedFor",sddNamespace);//TODO ? |
1753 | 1753 |
|
1754 |
FeatureTree featureTree = FeatureTree.NewInstance();
|
|
1754 |
TermTree featureTree = TermTree.NewInstance();
|
|
1755 | 1755 |
importRepresentation(elCharacterTree, sddNamespace, featureTree, "", cdmState); |
1756 | 1756 |
TermTreeNode<Feature> root = featureTree.getRoot(); |
1757 | 1757 |
List<Element> listeOfNodes = elCharacterTree.getChildren("Nodes", sddNamespace); |
Also available in: Unified diff
ref #6794 change FeatureTree to TermTree