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 org
.apache
.log4j
.Logger
;
13 import javax
.persistence
.*;
14 import javax
.xml
.bind
.annotation
.XmlAccessType
;
15 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
16 import javax
.xml
.bind
.annotation
.XmlElement
;
17 import javax
.xml
.bind
.annotation
.XmlRootElement
;
18 import javax
.xml
.bind
.annotation
.XmlType
;
21 * Taxon name class for cultivars. {only possible for CULTIVAR, GREX, CONVAR,
22 * CULTIVAR_GROUP, GRAFT_CHIMAERA and DENOMINATION_CLASS ranks}
25 * @created 08-Nov-2007 13:06:18
27 @XmlAccessorType(XmlAccessType
.FIELD
)
28 @XmlType(name
= "", propOrder
= {
31 @XmlRootElement(name
= "CultivarPlantName")
33 public class CultivarPlantName
extends BotanicalName
{
34 static Logger logger
= Logger
.getLogger(CultivarPlantName
.class);
36 //the characteristical name of the cultivar
37 @XmlElement(name
= "CultivarName", required
= true)
38 private String cultivarName
;
40 public CultivarPlantName(){
43 public static CultivarPlantName
NewInstance(Rank rank
){
44 return new CultivarPlantName(rank
, null);
47 public static CultivarPlantName
NewInstance(Rank rank
, HomotypicalGroup homotypicalGroup
){
48 return new CultivarPlantName(rank
, homotypicalGroup
);
51 protected CultivarPlantName(Rank rank
, HomotypicalGroup homotypicalGroup
) {
52 super(rank
, homotypicalGroup
);
55 public String
getCultivarName(){
56 return this.cultivarName
;
61 * @param cultivarName cultivarName
63 public void setCultivarName(String cultivarName
){
64 this.cultivarName
= cultivarName
;
70 public NomenclaturalCode
getNomeclaturalCode(){
71 return NomenclaturalCode
.ICNCP();