(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / name / CultivarPlantName.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 java.util.*;
16 import javax.persistence.*;
17
18 /**
19 * Taxon name class for cultivars. {only possible for CULTIVAR, GREX, CONVAR,
20 * CULTIVAR_GROUP, GRAFT_CHIMAERA and DENOMINATION_CLASS ranks}
21 * @author m.doering
22 * @version 1.0
23 * @created 08-Nov-2007 13:06:18
24 */
25 @Entity
26 public class CultivarPlantName extends BotanicalName {
27 static Logger logger = Logger.getLogger(CultivarPlantName.class);
28
29 //the caracteristical name of the cultivar
30 private String cultivarName;
31
32
33 public static CultivarPlantName NewInstance(Rank rank){
34 return new CultivarPlantName(rank, null);
35 }
36
37 public static CultivarPlantName NewInstance(Rank rank, HomotypicalGroup homotypicalGroup){
38 return new CultivarPlantName(rank, homotypicalGroup);
39 }
40
41 protected CultivarPlantName(Rank rank, HomotypicalGroup homotypicalGroup) {
42 super(rank, homotypicalGroup);
43 }
44
45 public String getCultivarName(){
46 return this.cultivarName;
47 }
48
49 /**
50 *
51 * @param cultivarName cultivarName
52 */
53 public void setCultivarName(String cultivarName){
54 this.cultivarName = cultivarName;
55 }
56
57 }