Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/tcsrdf/TcsRdfTaxonRelationsImport.java | ||
---|---|---|
28 | 28 |
import eu.etaxonomy.cdm.model.taxon.SynonymRelationshipType; |
29 | 29 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
30 | 30 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
31 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
31 | 32 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
32 | 33 |
import eu.etaxonomy.cdm.model.taxon.TaxonomicTree; |
33 | 34 |
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException; |
... | ... | |
240 | 241 |
} |
241 | 242 |
|
242 | 243 |
private boolean makeTaxonomicallyIncluded(TcsRdfImportState state, Taxon toTaxon, Taxon fromTaxon, ReferenceBase citation, String microCitation){ |
243 |
boolean success = true; |
|
244 | 244 |
ReferenceBase sec = toTaxon.getSec(); |
245 | 245 |
TaxonomicTree tree = state.getTree(sec); |
246 | 246 |
if (tree == null){ |
247 | 247 |
tree = makeTree(state, sec); |
248 | 248 |
} |
249 |
success = tree.addParentChild(toTaxon, fromTaxon, citation, microCitation);
|
|
250 |
return success;
|
|
249 |
TaxonNode childNode = tree.addParentChild(toTaxon, fromTaxon, citation, microCitation);
|
|
250 |
return (childNode != null);
|
|
251 | 251 |
} |
252 | 252 |
|
253 | 253 |
private boolean relationExists(Taxon taxonTo, Synonym synonym, SynonymRelationshipType synRelType){ |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk