Package it.unipd.dei.eis.data.sources
Class CsvDataSource
- java.lang.Object
-
- it.unipd.dei.eis.data.sources.DataSource<CsvDataEntity,List<org.apache.commons.csv.CSVRecord>>
-
- it.unipd.dei.eis.data.sources.CsvDataSource
-
public class CsvDataSource extends DataSource<CsvDataEntity,List<org.apache.commons.csv.CSVRecord>>
CsvDataSource is the data source for CSV records. It contains the data structure of the CSV response.
-
-
Constructor Summary
Constructors Constructor Description CsvDataSource()CsvDataSource constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) List<CsvDataEntity>getData(Context context)Returns the list of entities from the CSV data.-
Methods inherited from class it.unipd.dei.eis.data.sources.DataSource
get, set, setData
-
-
-
-
Field Detail
-
ID
public static final String ID
The ID of the data source.- See Also:
- Constant Field Values
-
-
Method Detail
-
getData
List<CsvDataEntity> getData(Context context) throws Exception
Returns the list of entities from the CSV data.- Overrides:
getDatain classDataSource<CsvDataEntity,List<org.apache.commons.csv.CSVRecord>>- Parameters:
context- the context of the request- Returns:
- the list of articles
- Throws:
Exception- if an error occurs
-
-