(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / name / BacterialName.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
13 import org.apache.log4j.Logger;
14
15 import javax.persistence.*;
16
17 /**
18 * Taxon name class for bacteria
19 * @author m.doering
20 * @version 1.0
21 * @created 08-Nov-2007 13:06:11
22 */
23 @Entity
24 public class BacterialName extends NonViralName {
25 static Logger logger = Logger.getLogger(BacterialName.class);
26
27 //Author team and year of the subgenus name
28 private String subGenusAuthorship;
29 //Approbation of name according to approved list, validation list,or validly published, paper in IJSB after 1980
30 private String nameApprobation;
31
32 public static BacterialName NewInstance(Rank rank){
33 return new BacterialName(rank, null);
34 }
35
36 public static BacterialName NewInstance(Rank rank, HomotypicalGroup homotypicalGroup){
37 return new BacterialName(rank, homotypicalGroup);
38 }
39
40 protected BacterialName(Rank rank, HomotypicalGroup homotypicalGroup) {
41 super(rank, homotypicalGroup);
42 }
43
44 public String getSubGenusAuthorship(){
45 return this.subGenusAuthorship;
46 }
47
48 /**
49 *
50 * @param subGenusAuthorship subGenusAuthorship
51 */
52 public void setSubGenusAuthorship(String subGenusAuthorship){
53 this.subGenusAuthorship = subGenusAuthorship;
54 }
55
56 public String getNameApprobation(){
57 return this.nameApprobation;
58 }
59
60 /**
61 *
62 * @param nameApprobation nameApprobation
63 */
64 public void setNameApprobation(String nameApprobation){
65 this.nameApprobation = nameApprobation;
66 }
67
68 }