| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ActorFormBean |
|
| 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.controller.able.FormBean; | |
| 21 | import org.jtheque.primary.od.CountryImpl; | |
| 22 | ||
| 23 | /** | |
| 24 | * An actor formbean. This formbean contains all the informations of an actor. It is used by the inteface | |
| 25 | * to pass data to the controller. | |
| 26 | * | |
| 27 | * @author Baptiste Wicht | |
| 28 | */ | |
| 29 | 0 | public final class ActorFormBean implements FormBean { |
| 30 | /* Param�tres de l'acteur */ | |
| 31 | private String name; | |
| 32 | private String firstName; | |
| 33 | private CountryImpl country; | |
| 34 | private Note note; | |
| 35 | ||
| 36 | /** | |
| 37 | * Cette m�thode modifie le nom du r�alisation. | |
| 38 | * | |
| 39 | * @param nom The name of the realizer | |
| 40 | */ | |
| 41 | public void setNom(String nom) { | |
| 42 | 0 | name = nom; |
| 43 | 0 | } |
| 44 | ||
| 45 | /** | |
| 46 | * Cette m�thode modifie le pr�nom du r�alisateur. | |
| 47 | * | |
| 48 | * @param firstName The first name of the realizer | |
| 49 | */ | |
| 50 | public void setFirstName(String firstName) { | |
| 51 | 0 | this.firstName = firstName; |
| 52 | 0 | } |
| 53 | ||
| 54 | /** | |
| 55 | * Set the note of the realizer. | |
| 56 | * | |
| 57 | * @param note The note to set. | |
| 58 | */ | |
| 59 | public void setNote(Note note) { | |
| 60 | 0 | this.note = note; |
| 61 | 0 | } |
| 62 | ||
| 63 | /** | |
| 64 | * Set the country of the realizer. | |
| 65 | * | |
| 66 | * @param country The country to set. | |
| 67 | */ | |
| 68 | public void setCountry(CountryImpl country) { | |
| 69 | 0 | this.country = country; |
| 70 | 0 | } |
| 71 | ||
| 72 | /** | |
| 73 | * Cette m�thode renvoie le nom de l'acteur. | |
| 74 | * | |
| 75 | * @return le nom de l'acteur | |
| 76 | */ | |
| 77 | public String getName() { | |
| 78 | 0 | return name; |
| 79 | } | |
| 80 | ||
| 81 | /** | |
| 82 | * Cette m�thode renvoie le pr�nom de l'acteur. | |
| 83 | * | |
| 84 | * @return le pr�nom de l'acteur | |
| 85 | */ | |
| 86 | public String getFirstName() { | |
| 87 | 0 | return firstName; |
| 88 | } | |
| 89 | ||
| 90 | /** | |
| 91 | * Return the note of the realizer. | |
| 92 | * | |
| 93 | * @return the note. | |
| 94 | */ | |
| 95 | public Note getNote() { | |
| 96 | 0 | return note; |
| 97 | } | |
| 98 | ||
| 99 | /** | |
| 100 | * Return the country of the realizer. | |
| 101 | * | |
| 102 | * @return the country. | |
| 103 | */ | |
| 104 | public CountryImpl getCountry() { | |
| 105 | 0 | return country; |
| 106 | } | |
| 107 | } |