Coverage Report - org.jtheque.core.managers.file.able.BasicDataSource
 
Classes in this File Line Coverage Branch Coverage Complexity
BasicDataSource
0 %
0/7
N/A
1
 
 1  
 package org.jtheque.core.managers.file.able;
 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.Version;
 20  
 
 21  
 /**
 22  
  * A simple datasource for JT files.
 23  
  *
 24  
  * @author Baptiste Wicht
 25  
  */
 26  0
 public class BasicDataSource {
 27  
     private int fileVersion;
 28  
     private Version version;
 29  
 
 30  
     /**
 31  
      * Return the version of the file.
 32  
      *
 33  
      * @return The version of the file.
 34  
      */
 35  
     public int getFileVersion() {
 36  0
         return fileVersion;
 37  
     }
 38  
 
 39  
     /**
 40  
      * Set the file version.
 41  
      *
 42  
      * @param fileVersion The version of the file.
 43  
      */
 44  
     public void setFileVersion(int fileVersion) {
 45  0
         this.fileVersion = fileVersion;
 46  0
     }
 47  
 
 48  
     /**
 49  
      * Return the version of JTheque.
 50  
      *
 51  
      * @return The version of JTheque.
 52  
      */
 53  
     public Version getVersion() {
 54  0
         return version;
 55  
     }
 56  
 
 57  
     /**
 58  
      * Set the JTheque Version.
 59  
      *
 60  
      * @param version The version of JTheque.
 61  
      */
 62  
     public void setVersion(Version version) {
 63  0
         this.version = version;
 64  0
     }
 65  
 }