6f5833da79d9da985ad45e92a170dec24266de86
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / taxon / TaxonBase.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.taxon;
11
12
13 import eu.etaxonomy.cdm.model.name.TaxonName;
14 import eu.etaxonomy.cdm.model.publication.PublicationBase;
15 import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
16 import org.apache.log4j.Logger;
17 import java.util.*;
18 import javax.persistence.*;
19
20 /**
21 * @author Andreas Mueller
22 * @version 1.0
23 * @created 15-Aug-2007 18:36:14
24 */
25 @Entity
26 public abstract class TaxonBase extends IdentifiableEntity {
27 static Logger logger = Logger.getLogger(TaxonBase.class);
28
29 private boolean isDoubtful;
30 private PublicationBase sec;
31 private TaxonName name;
32
33 public TaxonName getName(){
34 return name;
35 }
36
37 public PublicationBase getSec(){
38 return sec;
39 }
40
41 public boolean isDoubtful(){
42 return isDoubtful;
43 }
44
45 /**
46 *
47 * @param newVal
48 */
49 public void setDoubtful(boolean newVal){
50 isDoubtful = newVal;
51 }
52
53 /**
54 *
55 * @param newVal
56 */
57 public void setName(TaxonName newVal){
58 name = newVal;
59 }
60
61 /**
62 *
63 * @param newVal
64 */
65 public void setSec(PublicationBase newVal){
66 sec = newVal;
67 }
68
69 }