Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PersonFormBean |
|
| 1.0;1 |
1 | package org.jtheque.films.view.impl.fb; | |
2 | ||
3 | /* | |
4 | * This file is part of JTheque. | |
5 | * | |
6 | * JTheque is free software: you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation, either version 3 of the License. | |
9 | * | |
10 | * JTheque is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License | |
16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
17 | */ | |
18 | ||
19 | import org.jtheque.core.utils.db.Note; | |
20 | import org.jtheque.primary.od.able.Country; | |
21 | ||
22 | /** | |
23 | * An actor form bean. This form bean contains all the informations of an actor. It is used by the interface | |
24 | * to pass data to the controller. | |
25 | * | |
26 | * @author Baptiste Wicht | |
27 | */ | |
28 | 0 | public final class PersonFormBean implements IPersonFormBean { |
29 | private String name; | |
30 | private String firstName; | |
31 | private Country country; | |
32 | private Note note; | |
33 | ||
34 | @Override | |
35 | public void setName(String nom) { | |
36 | 0 | name = nom; |
37 | 0 | } |
38 | ||
39 | @Override | |
40 | public void setFirstName(String firstName) { | |
41 | 0 | this.firstName = firstName; |
42 | 0 | } |
43 | ||
44 | @Override | |
45 | public void setNote(Note note) { | |
46 | 0 | this.note = note; |
47 | 0 | } |
48 | ||
49 | @Override | |
50 | public void setCountry(Country country) { | |
51 | 0 | this.country = country; |
52 | 0 | } |
53 | ||
54 | @Override | |
55 | public String getName() { | |
56 | 0 | return name; |
57 | } | |
58 | ||
59 | @Override | |
60 | public String getFirstName() { | |
61 | 0 | return firstName; |
62 | } | |
63 | ||
64 | @Override | |
65 | public Note getNote() { | |
66 | 0 | return note; |
67 | } | |
68 | ||
69 | @Override | |
70 | public Country getCountry() { | |
71 | 0 | return country; |
72 | } | |
73 | } |