View Javadoc

1   /*
2    * Created on Jun 20, 2005
3    */
4   
5   package be.dvw.administration.model;
6   
7   import java.util.Calendar;
8   
9   /***
10   * @author Gregory Van Seghbroeck
11   *
12   */
13  public class Person {
14      private int id;
15      private String firstName;
16      private int familynameNr;
17      private String GSM;
18      private Calendar birthdate;
19      private String email;
20      private boolean correspondenceTroughEmail;
21      
22      private Family family;
23  
24      
25      public String toString() {
26          return "[Person] <"+firstName+(familynameNr==1?family.getFamilyname1():family.getFamilyname2())+" "+family.getAddress()+">";
27      }
28      
29  
30      /***
31       * @return Returns the id.
32       */
33      public int getId() {
34          return id;
35      }
36      /***
37       * @param id The id to set.
38       */
39      public void setId(int id) {
40          this.id = id;
41      }
42      /***
43       * @return Returns the correspondenceTroughEmail.
44       */
45      public boolean isCorrespondenceTroughEmail() {
46          return correspondenceTroughEmail;
47      }
48      /***
49       * @param correspondenceTroughEmail The correspondenceTroughEmail to set.
50       */
51      public void setCorrespondenceTroughEmail(boolean correspondenceTroughEmail) {
52          this.correspondenceTroughEmail = correspondenceTroughEmail;
53      }
54      /***
55       * @return Returns the email.
56       */
57      public String getEmail() {
58          return email;
59      }
60      /***
61       * @param email The email to set.
62       */
63      public void setEmail(String email) {
64          this.email = email;
65      }
66      /***
67       * @return Returns the family.
68       */
69      public Family getFamily() {
70          return family;
71      }
72      /***
73       * @param family The family to set.
74       */
75      public void setFamily(Family family) {
76          this.family = family;
77      }
78      /***
79       * @return Returns the familynameNr.
80       */
81      public int getFamilynameNr() {
82          return familynameNr;
83      }
84      /***
85       * @param familynameNr The familynameNr to set.
86       */
87      public void setFamilynameNr(int familynameNr) {
88          this.familynameNr = familynameNr;
89      }
90      /***
91       * @return Returns the birthdate.
92       */
93      public Calendar getBirthdate() {
94          return birthdate;
95      }
96      /***
97       * @param birthdate The birthdate to set.
98       */
99      public void setBirthdate(Calendar birthdate) {
100         this.birthdate = birthdate;
101     }
102     /***
103      * @return Returns the gSM.
104      */
105     public String getGSM() {
106         return GSM;
107     }
108     /***
109      * @param gsm The gSM to set.
110      */
111     public void setGSM(String gsm) {
112         GSM = gsm;
113     }
114     /***
115      * @return Returns the firstName.
116      */
117     public String getFirstName() {
118         return firstName;
119     }
120     /***
121      * @param firstName The firstName to set.
122      */
123     public void setFirstName(String firstName) {
124         this.firstName = firstName;
125     }
126 }