| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AppliedPatch |
|
| 1.0;1 |
| 1 | package org.jtheque.core.managers.patch; | |
| 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.utils.bean.IntDate; | |
| 20 | ||
| 21 | /** | |
| 22 | * An applied patch. | |
| 23 | * | |
| 24 | * @author Baptiste Wicht | |
| 25 | */ | |
| 26 | 0 | final class AppliedPatch { |
| 27 | private String name; | |
| 28 | private IntDate date; | |
| 29 | ||
| 30 | /** | |
| 31 | * Return the name of the applied patch. | |
| 32 | * | |
| 33 | * @return The name of the applied patch. | |
| 34 | */ | |
| 35 | public String getName() { | |
| 36 | 0 | return name; |
| 37 | } | |
| 38 | ||
| 39 | /** | |
| 40 | * Set the name of the applied patch. | |
| 41 | * | |
| 42 | * @param name The name of the applied. | |
| 43 | */ | |
| 44 | public void setName(String name) { | |
| 45 | 0 | this.name = name; |
| 46 | 0 | } |
| 47 | ||
| 48 | /** | |
| 49 | * Return the date when the patch has been applied. | |
| 50 | * | |
| 51 | * @return The date of the apply of the patch. | |
| 52 | */ | |
| 53 | public IntDate getDate() { | |
| 54 | 0 | return date; |
| 55 | } | |
| 56 | ||
| 57 | /** | |
| 58 | * Set the date of the apply of the patch. | |
| 59 | * | |
| 60 | * @param date The date. | |
| 61 | */ | |
| 62 | public void setDate(IntDate date) { | |
| 63 | 0 | this.date = date; |
| 64 | 0 | } |
| 65 | } |