Coverage Report - org.jtheque.films.controllers.able.IImportController
 
Classes in this File Line Coverage Branch Coverage Complexity
IImportController
N/A
N/A
1
 
 1  
 package org.jtheque.films.controllers.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.core.managers.view.able.controller.Controller;
 20  
 import org.jtheque.films.utils.Constants;
 21  
 import org.jtheque.films.view.able.IImportView;
 22  
 import org.jtheque.utils.io.FileException;
 23  
 
 24  
 /**
 25  
  * An import controller specification.
 26  
  *
 27  
  * @author Baptiste Wicht
 28  
  */
 29  
 public interface IImportController extends Controller {
 30  
     /**
 31  
      * Open the export view.
 32  
      *
 33  
      * @param fileType The type of the file we want to export to.
 34  
      */
 35  
     void openImportView(Constants.Files.FileType fileType);
 36  
 
 37  
     /**
 38  
      * Import Data from a file.
 39  
      *
 40  
      * @param filePath The path to the file.
 41  
      * @throws FileException If there is an I/O problem during the import.
 42  
      */
 43  
     void importData(String filePath) throws FileException;
 44  
     
 45  
     @Override
 46  
     IImportView getView();
 47  
 }