Coverage Report - org.jtheque.core.managers.update.InstallationResult
 
Classes in this File Line Coverage Branch Coverage Complexity
InstallationResult
0 %
0/13
N/A
1
 
 1  
 package org.jtheque.core.managers.update;
 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  
  * The result of a module installation.
 21  
  *
 22  
  * @author Baptiste Wicht
 23  
  */
 24  0
 public final class InstallationResult {
 25  
     private boolean mustRestart;
 26  
     private boolean installed;
 27  
     private String jarFile;
 28  
     private String name;
 29  
 
 30  
     /**
 31  
      * Indicate if the module has been installed.
 32  
      *
 33  
      * @return true if the module has been installed else false.
 34  
      */
 35  
     public boolean isInstalled() {
 36  0
         return installed;
 37  
     }
 38  
 
 39  
     /**
 40  
      * Set if the module has been installed or not.
 41  
      *
 42  
      * @param installed A boolean tag indicating if the module has been installed or not.
 43  
      */
 44  
     public void setInstalled(boolean installed) {
 45  0
         this.installed = installed;
 46  0
     }
 47  
 
 48  
     /**
 49  
      * Indicate if we need restart the application.
 50  
      *
 51  
      * @return true if the application need to be restarted.
 52  
      */
 53  
     public boolean isMustRestart() {
 54  0
         return mustRestart;
 55  
     }
 56  
 
 57  
     /**
 58  
      * Set if the we need to restart the application.
 59  
      */
 60  
     public void setMustRestart() {
 61  0
         mustRestart = true;
 62  0
     }
 63  
 
 64  
     /**
 65  
      * Return the jar-file name.
 66  
      *
 67  
      * @return The name of the jar file.
 68  
      */
 69  
     public String getJarFile() {
 70  0
         return jarFile;
 71  
     }
 72  
 
 73  
     /**
 74  
      * Set the jar file name.
 75  
      *
 76  
      * @param jarFile The name of the jar file.
 77  
      */
 78  
     public void setJarFile(String jarFile) {
 79  0
         this.jarFile = jarFile;
 80  0
     }
 81  
 
 82  
     /**
 83  
      * Return the name of the module.
 84  
      *
 85  
      * @return The name of the module.
 86  
      */
 87  
     public String getName() {
 88  0
         return name;
 89  
     }
 90  
 
 91  
     /**
 92  
      * Set the name of the module.
 93  
      *
 94  
      * @param name The name of the module.
 95  
      */
 96  
     public void setName(String name) {
 97  0
         this.name = name;
 98  0
         }
 99  
 }