(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / reference / Article.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.reference;
11
12
13 import org.apache.log4j.Logger;
14 import org.hibernate.annotations.Cascade;
15 import org.hibernate.annotations.CascadeType;
16
17 import java.util.*;
18 import javax.persistence.*;
19
20 /**
21 * @author m.doering
22 * @version 1.0
23 * @created 08-Nov-2007 13:06:10
24 */
25 @Entity
26 public class Article extends StrictReferenceBase implements INomenclaturalReference {
27 static Logger logger = Logger.getLogger(Article.class);
28 private String series;
29 private String volume;
30 private String pages;
31 private Journal inJournal;
32
33 @ManyToOne
34 @Cascade({CascadeType.SAVE_UPDATE})
35 public Journal getInJournal(){
36 return this.inJournal;
37 }
38 public void setInJournal(Journal inJournal){
39 this.inJournal = inJournal;
40 }
41
42 public String getSeries(){
43 return this.series;
44 }
45
46 /**
47 *
48 * @param series series
49 */
50 public void setSeries(String series){
51 this.series = series;
52 }
53
54 public String getVolume(){
55 return this.volume;
56 }
57
58 /**
59 *
60 * @param volume volume
61 */
62 public void setVolume(String volume){
63 this.volume = volume;
64 }
65
66 public String getPages(){
67 return this.pages;
68 }
69
70 /**
71 *
72 * @param pages pages
73 */
74 public void setPages(String pages){
75 this.pages = pages;
76 }
77
78 /**
79 * returns a formatted string containing the entire reference citation including
80 * authors
81 */
82 @Transient
83 public String getCitation(){
84 return "";
85 }
86
87 /**
88 * returns a formatted string containing the reference citation excluding authors
89 * as used in a taxon name
90 */
91 @Transient
92 public String getNomenclaturalCitation(){
93 return "";
94 }
95
96 @Override
97 public String generateTitle(){
98 return "";
99 }
100
101 }