| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| InstallVersion |
|
| 1.0;1 |
| 1 | package org.jtheque.core.managers.update.versions; | |
| 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 | * An installation version. | |
| 21 | * | |
| 22 | * @author Baptiste Wicht | |
| 23 | */ | |
| 24 | 0 | public final class InstallVersion extends OnlineVersion { |
| 25 | private String jarFile; | |
| 26 | private String title; | |
| 27 | ||
| 28 | /** | |
| 29 | * Return the jar file name. | |
| 30 | * | |
| 31 | * @return The name of the jar file. | |
| 32 | */ | |
| 33 | public String getJarFile() { | |
| 34 | 0 | return jarFile; |
| 35 | } | |
| 36 | ||
| 37 | /** | |
| 38 | * Set the jar file name. | |
| 39 | * | |
| 40 | * @param jarFile The name of the jar file of the module. | |
| 41 | */ | |
| 42 | public void setJarFile(String jarFile) { | |
| 43 | 0 | this.jarFile = jarFile; |
| 44 | 0 | } |
| 45 | ||
| 46 | /** | |
| 47 | * Return the title of the version. | |
| 48 | * | |
| 49 | * @return The title of the version. | |
| 50 | */ | |
| 51 | public String getTitle() { | |
| 52 | 0 | return title; |
| 53 | } | |
| 54 | ||
| 55 | /** | |
| 56 | * Set the title of the version. | |
| 57 | * | |
| 58 | * @param title The title of version. | |
| 59 | */ | |
| 60 | public void setTitle(String title) { | |
| 61 | 0 | this.title = title; |
| 62 | 0 | } |
| 63 | ||
| 64 | @Override | |
| 65 | public String toString() { | |
| 66 | 0 | return "InstallVersion{" + |
| 67 | "title='" + title + '\'' + | |
| 68 | ", jarFile='" + jarFile + '\'' + | |
| 69 | ", version='" + getVersion() + '\'' + | |
| 70 | ", core='" + getCoreVersion() + '\'' + | |
| 71 | ", actions='" + getActions() + '\'' + | |
| 72 | ", patches='" + getPatches() + '\'' + | |
| 73 | '}'; | |
| 74 | } | |
| 75 | } |