Coverage Report - org.jtheque.films.services.impl.utils.file.jt.sources.JTFEDataSource
 
Classes in this File Line Coverage Branch Coverage Complexity
JTFEDataSource
0 %
0/4
N/A
1
 
 1  
 package org.jtheque.films.services.impl.utils.file.jt.sources;
 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.file.able.BasicDataSource;
 20  
 import org.jtheque.films.persistence.od.able.Film;
 21  
 
 22  
 import java.util.ArrayList;
 23  
 import java.util.Collection;
 24  
 
 25  
 /**
 26  
  * A data source for JTFE file.
 27  
  *
 28  
  * @author Baptiste Wicht
 29  
  */
 30  0
 public final class JTFEDataSource extends BasicDataSource {
 31  
     private Collection<Film> films;
 32  
 
 33  
     /**
 34  
      * Return the films in the datasource.
 35  
      *
 36  
      * @return A List containing all the films on the datasource.
 37  
      */
 38  
     public Collection<Film> getFilms() {
 39  0
         return films;
 40  
     }
 41  
 
 42  
     /**
 43  
      * Set the films on the datasource.
 44  
      *
 45  
      * @param films The films of the datasource.
 46  
      */
 47  
     public void setFilms(Collection<Film> films) {
 48  0
         this.films = new ArrayList<Film>(films);
 49  0
     }
 50  
 }