Revision 51688d00
Added by Andreas Müller almost 7 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTransformer.java | ||
---|---|---|
42 | 42 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
43 | 43 |
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType; |
44 | 44 |
import eu.etaxonomy.cdm.model.name.Rank; |
45 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
45 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
46 | 46 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
47 | 47 |
import eu.etaxonomy.cdm.model.reference.Reference; |
48 | 48 |
import eu.etaxonomy.cdm.model.reference.ReferenceType; |
... | ... | |
2367 | 2367 |
return result; |
2368 | 2368 |
} |
2369 | 2369 |
|
2370 |
public static Integer getQualityStatusKeyBySource(BitSet sources, TaxonNameBase<?,?> taxonName) {
|
|
2370 |
public static Integer getQualityStatusKeyBySource(BitSet sources, TaxonName taxonName) { |
|
2371 | 2371 |
if (sources.get(SOURCE_EM)){ |
2372 | 2372 |
return QUALITY_STATUS_ADD_BY_DBMT; |
2373 | 2373 |
}else if (sources.get(SOURCE_ERMS)){ |
... | ... | |
2393 | 2393 |
} |
2394 | 2394 |
|
2395 | 2395 |
|
2396 |
private static Set<String> getAllQualityStatus(TaxonNameBase<?, ?> taxonName) {
|
|
2397 |
Set<String> result = new HashSet<String>();
|
|
2396 |
private static Set<String> getAllQualityStatus(TaxonName taxonName) { |
|
2397 |
Set<String> result = new HashSet<>(); |
|
2398 | 2398 |
for (TaxonBase<?> taxonBase : taxonName.getTaxonBases()){ |
2399 | 2399 |
result.addAll(taxonBase.getExtensions(ErmsTransformer.uuidQualityStatus)); |
2400 | 2400 |
} |
Also available in: Unified diff
ref #6368 , ref #6671, ref #6630 adapt pesi to no taxon name model