Coverage Report - org.jtheque.core.managers.persistence.able.DataContainer
 
Classes in this File Line Coverage Branch Coverage Complexity
DataContainer
N/A
N/A
1
 
 1  
 package org.jtheque.core.managers.persistence.able;
 2  
 
 3  
 import java.util.Collection;
 4  
 
 5  
 /*
 6  
  * This file is part of JTheque.
 7  
  *
 8  
  * JTheque is free software: you can redistribute it and/or modify
 9  
  * it under the terms of the GNU General Public License as published by
 10  
  * the Free Software Foundation, either version 3 of the License.
 11  
  *
 12  
  * JTheque is distributed in the hope that it will be useful,
 13  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15  
  * GNU General Public License for more details.
 16  
  *
 17  
  * You should have received a copy of the GNU General Public License
 18  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 19  
  */
 20  
 
 21  
 /**
 22  
  * A data container. It seems a class who can give access to a list of Entity.
 23  
  *
 24  
  * @author Baptiste Wicht
 25  
  * @param <T> The class of data this container can provide.
 26  
  */
 27  
 public interface DataContainer<T extends Entity> {
 28  
     /**
 29  
      * Return the datas of the container.
 30  
      *
 31  
      * @return A List containing all the datas of the container.
 32  
      */
 33  
     Collection<T> getDatas();
 34  
 
 35  
     /**
 36  
      * Clear all the datas.
 37  
      */
 38  
     void clearAll();
 39  
 
 40  
     /**
 41  
      * Add a data listener to the container.
 42  
      *
 43  
      * @param listener The listener to add.
 44  
      */
 45  
     void addDataListener(DataListener listener);
 46  
 
 47  
     /**
 48  
      * Return the data type.
 49  
      *
 50  
      * @return The data type.
 51  
      */
 52  
     String getDataType();
 53  
 }