View Javadoc

1   package at.ac.tuwien.ifs.bpse.basic.domain;
2   
3   /**
4    * This class holds the main data of one person, might be superclass for more specific roles 
5    */
6   public class Person {
7   
8       private int id;
9       private String firstname;
10      private String lastname;
11      private String email;
12  
13      
14      public int getId() {
15          return id;
16      }
17  
18      public void setId(int id) {
19          this.id = id;
20      }
21  
22      public String getFirstname() {
23          return firstname;
24      }
25  
26      public void setFirstname(String firstname) {
27          this.firstname = firstname;
28      }
29  
30      public String getLastname() {
31          return lastname;
32      }
33  
34      public void setLastname(String lastname) {
35          this.lastname = lastname;
36      }
37  
38      public String getEmail() {
39          return email;
40      }
41  
42      public void setEmail(String email) {
43          this.email = email;
44      }
45      
46      public String getFullname(){
47          return getFirstname() + " " + getLastname();
48      }
49  
50  }