has errors
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / name / NomenclaturalCode.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.cdm.model.name;
11
12 import java.util.UUID;
13 import org.apache.log4j.Logger;
14 import eu.etaxonomy.cdm.model.common.DefinedTermBase;
15
16 /**
17 * @see http://rs.tdwg.org/ontology/voc/TaxonName#NomenclaturalCodeTerm
18 * @author a.mueller
19 * @created 19.05.2008
20 * @version 1.0
21 */
22 public class NomenclaturalCode extends DefinedTermBase {
23 private static final Logger logger = Logger.getLogger(NomenclaturalCode.class);
24
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");
30
31 /**
32 * Constructor
33 */
34 public NomenclaturalCode() {
35 super();
36 }
37
38 /**
39 * Constructor
40 * @param term
41 * @param label
42 */
43 public NomenclaturalCode(String term, String label) {
44 super(term, label);
45 }
46
47
48 public static final NomenclaturalCode getByUuid(UUID uuid){
49 return (NomenclaturalCode) findByUuid(uuid);
50 }
51
52 /**
53 * @return
54 */
55 public static final NomenclaturalCode BACTERIOLOGICAL(){
56 return getByUuid(uuidBacteriological);
57 }
58
59 /**
60 * International Code of Botanical Nomenclature
61 * @return
62 */
63 public static final NomenclaturalCode ICBN(){
64 return getByUuid(uuidIcbn);
65 }
66 /**
67 * International Code of Cultivated Plants
68 * @return
69 */
70 public static final NomenclaturalCode ICNCP(){
71 return getByUuid(uuidIcncp);
72 }
73
74 /**
75 * International Code of Zoological Nomenclature
76 * @return
77 */
78 public static final NomenclaturalCode ICZN(){
79 return getByUuid(uuidIczn);
80 }
81
82
83 /**
84 * Rules that govern the names of viral species
85 * @return
86 */
87 public static final NomenclaturalCode VIRAL(){
88 return getByUuid(uuidViral);
89 }
90
91 }