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 eu
.etaxonomy
.cdm
.model
.reference
;
13 import eu
.etaxonomy
.cdm
.model
.agent
.Agent
;
14 import eu
.etaxonomy
.cdm
.model
.agent
.Team
;
15 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
16 import org
.apache
.log4j
.Logger
;
17 import org
.hibernate
.annotations
.Cascade
;
18 import org
.hibernate
.annotations
.CascadeType
;
21 import javax
.persistence
.*;
24 * A year() method is required to get the year of publication out of the
28 * @created 08-Nov-2007 13:06:47
31 public abstract class ReferenceBase
extends IdentifiableEntity
{
32 static Logger logger
= Logger
.getLogger(ReferenceBase
.class);
33 //URIs like DOIs, LSIDs or Handles for this reference
35 //flag to subselect only references that could be useful for nomenclatural citations. If a reference is used as a
36 //nomenclatural reference in a name this flag should be automatically set
37 private boolean isNomenclaturallyRelevant
;
38 private Agent authorTeam
;
42 @Cascade({CascadeType
.SAVE_UPDATE
})
43 public Agent
getAuthorTeam(){
44 return this.authorTeam
;
47 public void setAuthorTeam(Agent authorTeam
){
48 this.authorTeam
= authorTeam
;
51 public String
getUri(){
59 public void setUri(String uri
){
63 public boolean isNomenclaturallyRelevant(){
64 return this.isNomenclaturallyRelevant
;
69 * @param isNomenclaturallyRelevant isNomenclaturallyRelevant
71 public void setNomenclaturallyRelevant(boolean isNomenclaturallyRelevant
){
72 this.isNomenclaturallyRelevant
= isNomenclaturallyRelevant
;
76 * returns a formatted string containing the entire reference citation including
80 public String
getCitation(){
85 public abstract String
getYear();