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
.agent
;
13 import eu
.etaxonomy
.cdm
.model
.common
.TimePeriod
;
14 import eu
.etaxonomy
.cdm
.model
.common
.Keyword
;
15 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
16 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.model
.Description
;
19 import javax
.persistence
.*;
22 * http://rs.tdwg.org/ontology/voc/Person.rdf
25 * @created 08-Nov-2007 13:06:42
28 public class Person
extends IdentifiableEntity
{
29 static Logger logger
= Logger
.getLogger(Person
.class);
31 private String prefix
;
32 //All other names not included in the surname. May be just initials, all forenames in full or a combination of expanded
34 private String firstname
;
35 //A hereditary name common to all members of a family, as distinct from a given name or forename
36 private String lastname
;
38 private String suffix
;
39 //The period for which this person was alive represented as a TimePeriod datatype, i.e. start - end date. Alternative
40 //suggestion as a flexible String. the form birthdate - deathdate (XXXX - YYYY; XXXX - or - YYYY as appropriate) is
41 //prefered, or as simple flourished date (fl. XXXX) may be given where that is all that is known
42 private TimePeriod lifespan
;
43 private ArrayList
<InstitutionalMembership
> institutionalMemberships
;
44 private Contact contact
;
45 private ArrayList
<PersonInSource
> personInSources
;
46 private ArrayList
<Keyword
> keywords
;
48 public ArrayList
getInstitutionalMemberships(){
49 return this.institutionalMemberships
;
54 * @param institutionalMemberships institutionalMemberships
56 public void setInstitutionalMemberships(ArrayList institutionalMemberships
){
57 this.institutionalMemberships
= institutionalMemberships
;
60 public ArrayList
getPersonInSources(){
61 return this.personInSources
;
66 * @param personInSources personInSources
68 public void setPersonInSources(ArrayList personInSources
){
69 this.personInSources
= personInSources
;
72 public ArrayList
getKeywords(){
78 * @param keywords keywords
80 public void setKeywords(ArrayList keywords
){
81 this.keywords
= keywords
;
84 public Contact
getContact(){
90 * @param contact contact
92 public void setContact(Contact contact
){
93 this.contact
= contact
;
96 public String
getPrefix(){
102 * @param prefix prefix
104 public void setPrefix(String prefix
){
105 this.prefix
= prefix
;
108 public String
getFirstname(){
109 return this.firstname
;
114 * @param firstname firstname
116 public void setFirstname(String firstname
){
117 this.firstname
= firstname
;
120 public String
getLastname(){
121 return this.lastname
;
126 * @param lastname lastname
128 public void setLastname(String lastname
){
129 this.lastname
= lastname
;
132 public String
getSuffix(){
138 * @param suffix suffix
140 public void setSuffix(String suffix
){
141 this.suffix
= suffix
;
144 public TimePeriod
getLifespan(){
145 return this.lifespan
;
150 * @param lifespan lifespan
152 public void setLifespan(TimePeriod lifespan
){
153 this.lifespan
= lifespan
;
157 public String
generateTitle(){