Revision d7919b1c
Added by Andreas Müller about 7 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/dwca/in/DwcTaxonStreamItem2CdmTaxonConverter.java | ||
---|---|---|
508 | 508 |
String strScientificName = getValue(item, TermUri.DWC_SCIENTIFIC_NAME); |
509 | 509 |
//Name |
510 | 510 |
if (strScientificName != null){ |
511 |
name = parser.parseFullName(strScientificName, nomCode, rank); |
|
511 |
name = (TaxonNameBase<?,?>)parser.parseFullName(strScientificName, nomCode, rank);
|
|
512 | 512 |
if ( rank != null && name != null && name.getRank() != null && ! rank.equals(name.getRank())){ |
513 | 513 |
if (config.isValidateRankConsistency()){ |
514 | 514 |
String message = "Parsed rank %s (%s) differs from rank %s given by fields 'taxonRank' or 'verbatimTaxonRank'"; |
... | ... | |
610 | 610 |
|
611 | 611 |
|
612 | 612 |
//TODO we may configure in configuration that scientific name never includes Authorship |
613 |
private void checkAuthorship(TaxonNameBase nameBase, StreamItem item) { |
|
613 |
private void checkAuthorship(TaxonNameBase<?,?> nameBase, StreamItem item) {
|
|
614 | 614 |
if (!nameBase.isInstanceOf(NonViralName.class)){ |
615 | 615 |
return; |
616 | 616 |
} |
Also available in: Unified diff
ref #6362, ref #6365 remove occurrence of NonViralName, BotanicalName, ZoologicalName and others