org.jtheque.core.managers.persistence.able
Interface DataContainer<T extends Entity>

Type Parameters:
T - The class of data this container can provide.
All Known Implementing Classes:
AbstractDataContainer

public interface DataContainer<T extends Entity>

A data container. It seems a class who can give access to a list of Entity.

Author:
Baptiste Wicht

Method Summary
 void addDataListener(DataListener listener)
          Add a data listener to the container.
 void clearAll()
          Clear all the datas.
 java.util.List<T> getDatas()
          Return the datas of the container.
 java.lang.String getDataType()
          Return the data type.
 

Method Detail

getDatas

java.util.List<T> getDatas()
Return the datas of the container.

Returns:
A List containing all the datas of the container.

clearAll

void clearAll()
Clear all the datas.


addDataListener

void addDataListener(DataListener listener)
Add a data listener to the container.

Parameters:
listener - The listener to add.

getDataType

java.lang.String getDataType()
Return the data type.

Returns:
The data type.


Copyright © 2009 JTheque. All Rights Reserved.