(no commit message)
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / publication / PublicationBase.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.publication;
11
12
13 import eu.etaxonomy.cdm.model.agent.Team;
14 import eu.etaxonomy.cdm.model.common.NameAlias;
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 * A year() method is required to get the year of publication out of the
22 * datePublished field
23 * @author Andreas Mueller
24 * @version 1.0
25 * @created 15-Aug-2007 18:36:11
26 */
27 @Entity
28 public abstract class PublicationBase extends IdentifiableEntity {
29 static Logger logger = Logger.getLogger(PublicationBase.class);
30
31 private String datePublished;
32 private String doi;
33 private String pages;
34 private String placePublished;
35 private String publisher;
36 private String title;
37 private String url;
38 private ArrayList otherTitles;
39 private Team authorship;
40
41 public Team getAuthorship(){
42 return authorship;
43 }
44
45 public String getDatePublished(){
46 return datePublished;
47 }
48
49 public String getDoi(){
50 return doi;
51 }
52
53 public ArrayList getOtherTitles(){
54 return otherTitles;
55 }
56
57 public String getPages(){
58 return pages;
59 }
60
61 public String getPlacePublished(){
62 return placePublished;
63 }
64
65 public String getPublisher(){
66 return publisher;
67 }
68
69 public String getTitle(){
70 return title;
71 }
72
73 public String getUrl(){
74 return url;
75 }
76
77 /**
78 *
79 * @param datePublished
80 */
81 @Transient
82 public int getYear(String datePublished){
83 return 0;
84 }
85
86 /**
87 *
88 * @param newVal
89 */
90 public void setAuthorship(Team newVal){
91 authorship = newVal;
92 }
93
94 /**
95 *
96 * @param newVal
97 */
98 public void setDatePublished(String newVal){
99 datePublished = newVal;
100 }
101
102 /**
103 *
104 * @param newVal
105 */
106 public void setDoi(String newVal){
107 doi = newVal;
108 }
109
110 /**
111 *
112 * @param newVal
113 */
114 public void setOtherTitles(ArrayList newVal){
115 otherTitles = newVal;
116 }
117
118 /**
119 *
120 * @param newVal
121 */
122 public void setPages(String newVal){
123 pages = newVal;
124 }
125
126 /**
127 *
128 * @param newVal
129 */
130 public void setPlacePublished(String newVal){
131 placePublished = newVal;
132 }
133
134 /**
135 *
136 * @param newVal
137 */
138 public void setPublisher(String newVal){
139 publisher = newVal;
140 }
141
142 /**
143 *
144 * @param newVal
145 */
146 public void setTitle(String newVal){
147 title = newVal;
148 }
149
150 /**
151 *
152 * @param newVal
153 */
154 public void setUrl(String newVal){
155 url = newVal;
156 }
157
158 }