6cb31540a1a94e351ec1717c6b42ce257d81ae43
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / name / NameFact.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 eu.etaxonomy.cdm.model.publication.PublicationBase;
13 import eu.etaxonomy.cdm.model.common.Fact;
14 import eu.etaxonomy.cdm.model.common.Media;
15 import eu.etaxonomy.cdm.model.common.FactBase;
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:08
24 */
25 @Entity
26 public class NameFact extends FactBase implements Fact {
27 static Logger logger = Logger.getLogger(NameFact.class);
28
29 private ArrayList medias;
30 private PublicationBase citation;
31 private NameFactType type;
32
33 public PublicationBase getCitation(){
34 return citation;
35 }
36
37 public ArrayList getMedias(){
38 return medias;
39 }
40
41 public NameFactType getType(){
42 return type;
43 }
44
45 /**
46 *
47 * @param newVal
48 */
49 public void setCitation(PublicationBase newVal){
50 citation = newVal;
51 }
52
53 /**
54 *
55 * @param newVal
56 */
57 public void setMedias(ArrayList newVal){
58 medias = newVal;
59 }
60
61 /**
62 *
63 * @param newVal
64 */
65 public void setType(NameFactType newVal){
66 type = newVal;
67 }
68
69 }