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 etaxonomy
.cdm
.model
.reference
;
13 import org
.apache
.log4j
.Logger
;
18 * @created 02-Nov-2007 18:14:36
20 public class BibtexReference
extends ReferenceBase
implements INomenclaturalReference
{
21 static Logger logger
= Logger
.getLogger(BibtexReference
.class);
23 //The name(s) of the author(s) (in the case of more than one author, separated by and)
24 @Description("The name(s) of the author(s) (in the case of more than one author, separated by and)")
25 private String author
;
26 //The journal or magazine the work was published in
28 @Description("The journal or magazine the work was published in
30 private String journal
;
31 //The title of the book, if only part of it is being cited
32 @Description("The title of the book, if only part of it is being cited")
33 private String booktitle
;
35 @Description("The chapter number")
36 private String chapter
;
37 //The title of the work
39 @Description("The title of the work
42 //The series of books the book was published in (e.g. "The Hardy Boys")
44 @Description("The series of books the book was published in (e.g. "The Hardy Boys
")
46 private String series
;
47 //The edition of a book, long form (such as "first" or "second")
48 @Description("The edition of a book, long form (such as "first
" or "second
")")
49 private String edition
;
50 //The volume of a journal or multi-volume book
52 @Description("The volume of a journal or multi-volume book
54 private String volume
;
55 //The "number" of a journal, magazine, or tech-report, if applicable. (Most publications have a "volume", but no "number"
59 @Description("The "number
" of a journal, magazine, or tech-report, if applicable. (Most publications have a "volume
", but no "number
" field.)
62 private String number
;
63 //Page numbers, separated either by commas or double-hyphens
65 @Description("Page numbers, separated either by commas or double-hyphens
68 //An annotation for annotated bibliography styles (not typical)
69 @Description("An annotation for annotated bibliography styles (not typical)")
70 private String annote
;
71 //The name(s) of the editor(s)
73 @Description("The name(s) of the editor(s)
75 private String editor
;
76 //The institution that was involved in the publishing, but not necessarily the publisher
78 @Description("The institution that was involved in the publishing, but not necessarily the publisher
80 private String institution
;
81 //The school where the thesis was written
82 @Description("The school where the thesis was written ")
83 private String school
;
84 //The conference sponsor
86 @Description("The conference sponsor
88 private String organization
;
89 //The publisher's name
92 @Description("The publisher's name
95 private String publisher
;
96 //Publisher's address (usually just the city, but can be the full address for lesser-known publishers)
97 @Description("Publisher's address (usually just the city, but can be the full address for lesser-known publishers)")
98 private String address
;
99 //How it was published, if the publishing method is nonstandard
101 @Description("How it was published, if the publishing method is nonstandard
103 private String howpublished
;
104 //The type of tech-report, for example, "Research Note"
107 @Description("The type of tech-report, for example, "Research Note
"
111 //The month of publication (or, if unpublished, the month of creation)
114 @Description("The month of publication (or, if unpublished, the month of creation)
117 private String month
;
118 //The year of publication (or, if unpublished, the year of creation)
120 @Description("The year of publication (or, if unpublished, the year of creation)
123 //A specification of an electronic publication, often a preprint or a technical report
125 @Description("A specification of an electronic publication, often a preprint or a technical report
127 private String eprint
;
128 //Miscellaneous extra information
131 @Description("Miscellaneous extra information
135 private BibtexReference crossref
;
137 public BibtexReference
getCrossref(){
145 public void setCrossref(BibtexReference newVal
){
149 public String
getAuthor(){
157 public void setAuthor(String newVal
){
161 public String
getJournal(){
169 public void setJournal(String newVal
){
173 public String
getBooktitle(){
181 public void setBooktitle(String newVal
){
185 public String
getChapter(){
193 public void setChapter(String newVal
){
197 public String
getTitle(){
205 public void setTitle(String newVal
){
209 public String
getSeries(){
217 public void setSeries(String newVal
){
221 public String
getEdition(){
229 public void setEdition(String newVal
){
233 public String
getVolume(){
241 public void setVolume(String newVal
){
245 public String
getNumber(){
253 public void setNumber(String newVal
){
257 public String
getPages(){
265 public void setPages(String newVal
){
269 public String
getAnnote(){
277 public void setAnnote(String newVal
){
281 public String
getEditor(){
289 public void setEditor(String newVal
){
293 public String
getInstitution(){
301 public void setInstitution(String newVal
){
302 institution
= newVal
;
305 public String
getSchool(){
313 public void setSchool(String newVal
){
317 public String
getOrganization(){
325 public void setOrganization(String newVal
){
326 organization
= newVal
;
329 public String
getPublisher(){
337 public void setPublisher(String newVal
){
341 public String
getAddress(){
349 public void setAddress(String newVal
){
353 public String
getHowpublished(){
361 public void setHowpublished(String newVal
){
362 howpublished
= newVal
;
365 public String
getType(){
373 public void setType(String newVal
){
377 public String
getMonth(){
385 public void setMonth(String newVal
){
389 public String
getYear(){
397 public void setYear(String newVal
){
401 public String
getEprint(){
409 public void setEprint(String newVal
){
413 public String
getNote(){
421 public void setNote(String newVal
){
426 * returns a formatted string containing the entire reference citation including
430 public String
getCitation(){
435 * returns a formatted string containing the reference citation excluding authors
436 * as used in a taxon name
439 public String
getNomenclaturalCitation(){
444 public int getYear(){
449 public String
getYear(){