| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| EditArguments |
|
| 1.0;1 |
| 1 | package org.jtheque.films.services.impl.utils; | |
| 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 | /** | |
| 20 | * This class is a bean representing the arguments of an automatic edit. It seems the fields who want to | |
| 21 | * automatically edit. | |
| 22 | * | |
| 23 | * @author Baptiste Wicht | |
| 24 | */ | |
| 25 | 0 | public final class EditArguments { |
| 26 | private boolean editKind; | |
| 27 | private boolean editRealizer; | |
| 28 | private boolean editYear; | |
| 29 | private boolean editDuration; | |
| 30 | private boolean editActors; | |
| 31 | private boolean editImage; | |
| 32 | private boolean editResume; | |
| 33 | ||
| 34 | /** | |
| 35 | * Indicate if we have to edit the kind or not. | |
| 36 | * | |
| 37 | * @return <code>true</code> if we have to edit the kind else <code>false</code>. | |
| 38 | */ | |
| 39 | public boolean isEditKind() { | |
| 40 | 0 | return editKind; |
| 41 | } | |
| 42 | ||
| 43 | /** | |
| 44 | * Sets if we have to edit the kind. | |
| 45 | * | |
| 46 | * @param editKind Indicate if we have to edit it. | |
| 47 | */ | |
| 48 | public void setEditKind(boolean editKind) { | |
| 49 | 0 | this.editKind = editKind; |
| 50 | 0 | } |
| 51 | ||
| 52 | /** | |
| 53 | * Indicate if we have to edit the realizer or not. | |
| 54 | * | |
| 55 | * @return <code>true</code> if we have to edit the realizer else <code>false</code>. | |
| 56 | */ | |
| 57 | public boolean isEditRealizer() { | |
| 58 | 0 | return editRealizer; |
| 59 | } | |
| 60 | ||
| 61 | /** | |
| 62 | * Sets if we have to edit the realizer. | |
| 63 | * | |
| 64 | * @param editRealizer Indicate if we have to edit it. | |
| 65 | */ | |
| 66 | public void setEditRealizer(boolean editRealizer) { | |
| 67 | 0 | this.editRealizer = editRealizer; |
| 68 | 0 | } |
| 69 | ||
| 70 | /** | |
| 71 | * Indicate if we have to edit the year or not. | |
| 72 | * | |
| 73 | * @return <code>true</code> if we have to edit the year else <code>false</code>. | |
| 74 | */ | |
| 75 | public boolean isEditYear() { | |
| 76 | 0 | return editYear; |
| 77 | } | |
| 78 | ||
| 79 | /** | |
| 80 | * Sets if we have to edit the year. | |
| 81 | * | |
| 82 | * @param editYear Indicate if we have to edit it. | |
| 83 | */ | |
| 84 | public void setEditYear(boolean editYear) { | |
| 85 | 0 | this.editYear = editYear; |
| 86 | 0 | } |
| 87 | ||
| 88 | /** | |
| 89 | * Indicate if we have to edit the duration or not. | |
| 90 | * | |
| 91 | * @return <code>true</code> if we have to edit the duration else <code>false</code>. | |
| 92 | */ | |
| 93 | public boolean isEditDuration() { | |
| 94 | 0 | return editDuration; |
| 95 | } | |
| 96 | ||
| 97 | /** | |
| 98 | * Sets if we have to edit the duration. | |
| 99 | * | |
| 100 | * @param editDuration Indicate if we have to edit it. | |
| 101 | */ | |
| 102 | public void setEditDuration(boolean editDuration) { | |
| 103 | 0 | this.editDuration = editDuration; |
| 104 | 0 | } |
| 105 | ||
| 106 | /** | |
| 107 | * Indicate if we have to edit the actors or not. | |
| 108 | * | |
| 109 | * @return <code>true</code> if we have to edit the actors else <code>false</code>. | |
| 110 | */ | |
| 111 | public boolean isEditActors() { | |
| 112 | 0 | return editActors; |
| 113 | } | |
| 114 | ||
| 115 | /** | |
| 116 | * Sets if we have to edit the actors. | |
| 117 | * | |
| 118 | * @param editActors Indicate if we have to edit it. | |
| 119 | */ | |
| 120 | public void setEditActors(boolean editActors) { | |
| 121 | 0 | this.editActors = editActors; |
| 122 | 0 | } |
| 123 | ||
| 124 | /** | |
| 125 | * Indicate if we have to edit the image or not. | |
| 126 | * | |
| 127 | * @return <code>true</code> if we have to edit the image else <code>false</code>. | |
| 128 | */ | |
| 129 | public boolean isEditImage() { | |
| 130 | 0 | return editImage; |
| 131 | } | |
| 132 | ||
| 133 | /** | |
| 134 | * Sets if we have to edit the image. | |
| 135 | * | |
| 136 | * @param editImage Indicate if we have to edit it. | |
| 137 | */ | |
| 138 | public void setEditImage(boolean editImage) { | |
| 139 | 0 | this.editImage = editImage; |
| 140 | 0 | } |
| 141 | ||
| 142 | /** | |
| 143 | * Indicate if we have to edit the resume or not. | |
| 144 | * | |
| 145 | * @return <code>true</code> if we have to edit the resume else <code>false</code>. | |
| 146 | */ | |
| 147 | public boolean isEditResume() { | |
| 148 | 0 | return editResume; |
| 149 | } | |
| 150 | ||
| 151 | /** | |
| 152 | * Sets if we have to edit the resume. | |
| 153 | * | |
| 154 | * @param editResume Indicate if we have to edit it. | |
| 155 | */ | |
| 156 | public void isEditResume(boolean editResume) { | |
| 157 | 0 | this.editResume = editResume; |
| 158 | 0 | } |
| 159 | } |