2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.model
.name
;
12 import java
.util
.UUID
;
13 import org
.apache
.log4j
.Logger
;
14 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
17 * @see http://rs.tdwg.org/ontology/voc/TaxonName#NomenclaturalCodeTerm
22 public class NomenclaturalCode
extends DefinedTermBase
{
23 private static final Logger logger
= Logger
.getLogger(NomenclaturalCode
.class);
25 private static final UUID uuidBacteriological
= UUID
.fromString("ff4b0979-7abf-4b40-95c0-8b8b1e8a4d5e");
26 private static final UUID uuidIcbn
= UUID
.fromString("540fc02a-8a8e-4813-89d2-581dad4dd482");
27 private static final UUID uuidIcncp
= UUID
.fromString("65a432b5-92b1-4c9a-8090-2a185e423d2e");
28 private static final UUID uuidIczn
= UUID
.fromString("b584c2f8-dbe5-4454-acad-2b45e63ec11b");
29 private static final UUID uuidViral
= UUID
.fromString("e9d6d6b4-ccb7-4f28-b828-0b1501f8c75a");
34 public NomenclaturalCode() {
43 public NomenclaturalCode(String term
, String label
) {
48 public static final NomenclaturalCode
getByUuid(UUID uuid
){
49 return (NomenclaturalCode
) findByUuid(uuid
);
55 public static final NomenclaturalCode
BACTERIOLOGICAL(){
56 return getByUuid(uuidBacteriological
);
60 * International Code of Botanical Nomenclature
63 public static final NomenclaturalCode
ICBN(){
64 return getByUuid(uuidIcbn
);
67 * International Code of Cultivated Plants
70 public static final NomenclaturalCode
ICNCP(){
71 return getByUuid(uuidIcncp
);
75 * International Code of Zoological Nomenclature
78 public static final NomenclaturalCode
ICZN(){
79 return getByUuid(uuidIczn
);
84 * Rules that govern the names of viral species
87 public static final NomenclaturalCode
VIRAL(){
88 return getByUuid(uuidViral
);