public abstract class CommonDataProvider extends Object implements DataProvider
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
CommonDataProvider.ResultColumnNames
Class that manages available column names used in Data Providers. 
 | 
DataProvider.type| Modifier and Type | Field and Description | 
|---|---|
protected List<String> | 
columns  | 
protected String | 
dataInPath  | 
protected String | 
dataOutPath  | 
protected List<DataIndex> | 
indexData  | 
protected String | 
resultColumnName  | 
protected String | 
scenarioName  | 
| Constructor and Description | 
|---|
CommonDataProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
DataIndex | 
getIndexData(int dataLine)
get IndexData in case of serial data. 
 | 
Class<Model> | 
getModel(String modelPackagesCsv) | 
int | 
getNbGherkinExample() | 
String | 
getResultColumnName()
Getter of resultName column name. 
 | 
boolean | 
isResultColumnNameAuthorized(String name)
Returns true if the given column name is part of authorized column names. 
 | 
void | 
setDataInPath(String dataInPath)
Setter of dataInPath. 
 | 
void | 
setDataOutPath(String dataOutPath)
Setter of dataOutPath. 
 | 
void | 
setIndexData(List<DataIndex> indexDataIn)
set IndexData in case of serial data. 
 | 
void | 
writeDataResult(String column,
               int line,
               String value)
Writes some data as result. 
 | 
void | 
writeFailedResult(int line,
                 String value)
Writes a fail result 
 | 
void | 
writeSuccessResult(int line)
Writes a success result 
 | 
protected void | 
writeValue(String column,
          int line,
          String value)
Defines how to write values. 
 | 
void | 
writeWarningResult(int line,
                  String value)
Writes a warning result 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareprotected String dataInPath
protected String dataOutPath
protected String scenarioName
protected String resultColumnName
public int getNbGherkinExample()
getNbGherkinExample in interface DataProviderpublic void setIndexData(List<DataIndex> indexDataIn)
setIndexData in interface DataProviderindexDataIn - is a array of index in case of serial data.public DataIndex getIndexData(int dataLine)
getIndexData in interface DataProviderdataLine - is index of line in case of serial data.public Class<Model> getModel(String modelPackagesCsv) throws TechnicalException
getModel in interface DataProvidermodelPackagesCsv - The list of available package in which to search for a valid Model (in CSV format with ; separator).TechnicalException - if Wrong data file (IOException, EmptyDataFileContentException or WrongDataFileFormatException)public void setDataInPath(String dataInPath)
setDataInPath in interface DataProviderdataInPath - the new data in pathpublic void setDataOutPath(String dataOutPath)
setDataOutPath in interface DataProviderdataOutPath - the new data out pathpublic String getResultColumnName()
getResultColumnName in interface DataProviderpublic void writeFailedResult(int line,
                              String value)
line - The line numbervalue - The valuepublic void writeSuccessResult(int line)
line - The line numberpublic void writeWarningResult(int line,
                               String value)
line - The line numbervalue - The valuepublic void writeDataResult(String column, int line, String value)
column - The column nameline - The line numbervalue - The data valueprotected void writeValue(String column, int line, String value)
column - The column nameline - The line numbervalue - The value to writepublic boolean isResultColumnNameAuthorized(String name)
CommonDataProvider.ResultColumnNames class.isResultColumnNameAuthorized in interface DataProvidername - the name to checkCopyright © 2023 NoraUi. All rights reserved.