Revision 49a64920
Added by Cherian Mathew over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/NomenclaturalCodeHelper.java | ||
---|---|---|
55 | 55 |
* @return |
56 | 56 |
*/ |
57 | 57 |
private static boolean isSupported(NomenclaturalCode code) { |
58 |
if (code.equals(NomenclaturalCode.ICBN) || code.equals(NomenclaturalCode.ICZN)) {
|
|
58 |
if (code.equals(NomenclaturalCode.ICNAFP ) || code.equals(NomenclaturalCode.ICZN)) {
|
|
59 | 59 |
return true; |
60 | 60 |
} else { |
61 | 61 |
return false; |
... | ... | |
73 | 73 |
if (code.equals(NomenclaturalCode.ICNB)) { |
74 | 74 |
return "International Code of Nomenclature of Bacteria (ICNB)"; |
75 | 75 |
} |
76 |
if (code.equals(NomenclaturalCode.ICBN)) {
|
|
77 |
return "International Code of Botanical Nomenclature (ICBN)";
|
|
76 |
if (code.equals(NomenclaturalCode.ICNAFP )) {
|
|
77 |
return "International Code of Botanical Nomenclature (ICNAFP )";
|
|
78 | 78 |
} |
79 | 79 |
if (code.equals(NomenclaturalCode.ICNCP)) { |
80 | 80 |
return "International Code of Cultivated Plants (ICNCP)"; |
... | ... | |
94 | 94 |
* @return a {@link eu.etaxonomy.cdm.model.name.NomenclaturalCode} object. |
95 | 95 |
*/ |
96 | 96 |
public static NomenclaturalCode getDefaultCode() { |
97 |
return NomenclaturalCode.ICBN;
|
|
97 |
return NomenclaturalCode.ICNAFP ;
|
|
98 | 98 |
} |
99 | 99 |
} |
Also available in: Unified diff
Aligning Editor with 3.3 model changes. First phase commit which updates only the classes.
Branch not compilable at the moment.