Revision fe34a9eb
Added by Andreas Müller about 7 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImpl.java | ||
---|---|---|
98 | 98 |
boolean isCultivatedPlantName = false; |
99 | 99 |
if ( (isBotanicalName || isCultivatedPlantName) && ! isZoologicalName && !isBacteriologicalName){ |
100 | 100 |
if (isBotanicalName){ |
101 |
result = TaxonNameBase.NewBotanicalInstance(rank);
|
|
101 |
result = TaxonNameFactory.NewBotanicalInstance(rank);
|
|
102 | 102 |
}else{ |
103 | 103 |
result = TaxonNameFactory.NewCultivarInstance(rank); |
104 | 104 |
} |
... | ... | |
112 | 112 |
} else { |
113 | 113 |
switch (code) { |
114 | 114 |
case ICNAFP: |
115 |
result = TaxonNameBase.NewBotanicalInstance(rank);
|
|
115 |
result = TaxonNameFactory.NewBotanicalInstance(rank);
|
|
116 | 116 |
break; |
117 | 117 |
case ICZN: |
118 | 118 |
result = TaxonNameFactory.NewZoologicalInstance(rank); |
Also available in: Unified diff
ref #6365 use TaxonNameFactory for botanical names