Revision 9dc896c9
Added by Andreas Müller almost 7 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NomenclaturalCode.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
/** |
26 | 26 |
* The class for the five nomenclature codes (ICNB, ICBN, ICNCP, ICZN and ICVCN) |
27 |
* ruling {@link TaxonNameBase taxon names}.
|
|
27 |
* ruling {@link TaxonName taxon names}. |
|
28 | 28 |
* <P> |
29 | 29 |
* The standard set of nomenclature code instances will be automatically created |
30 | 30 |
* as the project starts. But this class allows to extend this standard set by |
... | ... | |
82 | 82 |
// |
83 | 83 |
// //Any |
84 | 84 |
// @XmlEnumValue("Any") |
85 |
// Any(UUID.fromString("348f2a2f-366f-4c8c-bb15-c90b937886ca"), "Any taxon name","TaxonNameBase"),
|
|
85 |
// Any(UUID.fromString("348f2a2f-366f-4c8c-bb15-c90b937886ca"), "Any taxon name","TaxonName"), |
|
86 | 86 |
|
87 | 87 |
|
88 | 88 |
//NonViral |
89 | 89 |
@XmlEnumValue("NonViral") |
90 |
NonViral(UUID.fromString("04f88497-a66a-41b1-9b98-0dd22df6307f"), "NonViral","TaxonNameBase"),
|
|
90 |
NonViral(UUID.fromString("04f88497-a66a-41b1-9b98-0dd22df6307f"), "NonViral","TaxonName"), |
|
91 | 91 |
|
92 | 92 |
//Fungi |
93 | 93 |
@XmlEnumValue("Fungus") |
... | ... | |
164 | 164 |
|
165 | 165 |
|
166 | 166 |
/** |
167 |
* Creates a new particular {@link TaxonNameBase taxon name} (botanical, zoological,
|
|
167 |
* Creates a new particular {@link TaxonName taxon name} (botanical, zoological, |
|
168 | 168 |
* cultivar plant, bacterial or viral name) instance depending on <i>this</i> |
169 | 169 |
* nomenclature code only containing the given {@link Rank rank}. |
170 | 170 |
* |
171 | 171 |
* @param rank the rank of the new taxon name instance |
172 |
* @see TaxonNameBase#NewBotanicalInstance(Rank)
|
|
173 |
* @see TaxonNameBase#NewZoologicalInstance(Rank)
|
|
174 |
* @see TaxonNameBase#NewCultivarInstance(Rank)
|
|
175 |
* @see TaxonNameBase#NewBacterialInstance(Rank)
|
|
176 |
* @see TaxonNameBase#NewViralInstance(Rank)
|
|
172 |
* @see TaxonName#NewBotanicalInstance(Rank) |
|
173 |
* @see TaxonName#NewZoologicalInstance(Rank) |
|
174 |
* @see TaxonName#NewCultivarInstance(Rank) |
|
175 |
* @see TaxonName#NewBacterialInstance(Rank) |
|
176 |
* @see TaxonName#NewViralInstance(Rank) |
|
177 | 177 |
*/ |
178 |
public TaxonNameBase<?,?> getNewTaxonNameInstance(Rank rank){
|
|
179 |
TaxonNameBase<?,?> result;
|
|
178 |
public TaxonName getNewTaxonNameInstance(Rank rank){ |
|
179 |
TaxonName result; |
|
180 | 180 |
|
181 | 181 |
switch (this){ |
182 | 182 |
case ICNAFP: |
Also available in: Unified diff
fix #6368 rename table and class TaxonNameBase