(no commit message)
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / agent / Person.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.agent;
11
12
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;
18 import java.util.*;
19 import javax.persistence.*;
20
21 /**
22 * http://rs.tdwg.org/ontology/voc/Person.rdf
23 * @author m.doering
24 * @version 1.0
25 * @created 08-Nov-2007 13:06:42
26 */
27 @Entity
28 public class Person extends IdentifiableEntity {
29 static Logger logger = Logger.getLogger(Person.class);
30 //e.g. the title
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
33 //names and initials.
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;
37 //e.g. junior
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;
47
48 public ArrayList getInstitutionalMemberships(){
49 return this.institutionalMemberships;
50 }
51
52 /**
53 *
54 * @param institutionalMemberships institutionalMemberships
55 */
56 public void setInstitutionalMemberships(ArrayList institutionalMemberships){
57 this.institutionalMemberships = institutionalMemberships;
58 }
59
60 public ArrayList getPersonInSources(){
61 return this.personInSources;
62 }
63
64 /**
65 *
66 * @param personInSources personInSources
67 */
68 public void setPersonInSources(ArrayList personInSources){
69 this.personInSources = personInSources;
70 }
71
72 public ArrayList getKeywords(){
73 return this.keywords;
74 }
75
76 /**
77 *
78 * @param keywords keywords
79 */
80 public void setKeywords(ArrayList keywords){
81 this.keywords = keywords;
82 }
83
84 public Contact getContact(){
85 return this.contact;
86 }
87
88 /**
89 *
90 * @param contact contact
91 */
92 public void setContact(Contact contact){
93 this.contact = contact;
94 }
95
96 public String getPrefix(){
97 return this.prefix;
98 }
99
100 /**
101 *
102 * @param prefix prefix
103 */
104 public void setPrefix(String prefix){
105 this.prefix = prefix;
106 }
107
108 public String getFirstname(){
109 return this.firstname;
110 }
111
112 /**
113 *
114 * @param firstname firstname
115 */
116 public void setFirstname(String firstname){
117 this.firstname = firstname;
118 }
119
120 public String getLastname(){
121 return this.lastname;
122 }
123
124 /**
125 *
126 * @param lastname lastname
127 */
128 public void setLastname(String lastname){
129 this.lastname = lastname;
130 }
131
132 public String getSuffix(){
133 return this.suffix;
134 }
135
136 /**
137 *
138 * @param suffix suffix
139 */
140 public void setSuffix(String suffix){
141 this.suffix = suffix;
142 }
143
144 public TimePeriod getLifespan(){
145 return this.lifespan;
146 }
147
148 /**
149 *
150 * @param lifespan lifespan
151 */
152 public void setLifespan(TimePeriod lifespan){
153 this.lifespan = lifespan;
154 }
155
156 @Override
157 public String generateTitle(){
158 return "";
159 }
160
161 }