Public Member Functions | Protected Member Functions | Package Attributes | Static Package Attributes | Private Member Functions

de.fraunhofer.isst.axbench.operations.transformer.CsvReader Class Reference

reads the service attributes from a csv file More...

List of all members.

Public Member Functions

 CsvReader (File inFile) throws IOException
 constructor

Protected Member Functions

IAXLangElement updateModel (IAXLangElement originModel, TransactionModel transactionModel) throws IOException
 updates the model

Package Attributes

List< String > cellsOfCurrentLine = new ArrayList<String>()
boolean eof = false
BufferedReader in

Static Package Attributes

static final String PATH_SEPARATOR = ":"

Private Member Functions

int getCellAsInt (int cellIndexInCurrentLine)
 gets the cell contents
String getCellAsTrimmedString (int cellIndexInCurrentLine)
 gets the cell contents
void readNextNonEmptyLine () throws IOException
 constructs the list of cells of the current line
IAXLangElement updateServiceAttributes (IAXLangElement originModel, TransactionModel transactionModel) throws IOException
 updates the service attributes

Detailed Description

reads the service attributes from a csv file

Author:
mgrosse
Version:
0.8
Since:
0.8

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.operations.transformer.CsvReader.CsvReader ( File  inFile  )  throws IOException

constructor

Parameters:
inFile the csv file that contains the new attribute values
Exceptions:
IOException 

Member Function Documentation

int de.fraunhofer.isst.axbench.operations.transformer.CsvReader.getCellAsInt ( int  cellIndexInCurrentLine  )  [private]

gets the cell contents

Parameters:
cellIndexInCurrentLine index
Returns:
the contents of the cell as int
String de.fraunhofer.isst.axbench.operations.transformer.CsvReader.getCellAsTrimmedString ( int  cellIndexInCurrentLine  )  [private]

gets the cell contents

Parameters:
cellIndexInCurrentLine index
Returns:
the contents of the cell as trimmed String
void de.fraunhofer.isst.axbench.operations.transformer.CsvReader.readNextNonEmptyLine (  )  throws IOException [private]

constructs the list of cells of the current line

Exceptions:
IOException 
IAXLangElement de.fraunhofer.isst.axbench.operations.transformer.CsvReader.updateModel ( IAXLangElement  originModel,
TransactionModel  transactionModel 
) throws IOException [protected]

updates the model

Parameters:
originModel the model to be updated
taskModel the task model to be updated
Returns:
the updated model
Exceptions:
IOException 
IAXLangElement de.fraunhofer.isst.axbench.operations.transformer.CsvReader.updateServiceAttributes ( IAXLangElement  originModel,
TransactionModel  transactionModel 
) throws IOException [private]

updates the service attributes

Parameters:
originModel the model to be updated
taskModel the task model to be updated
Returns:
the updated model
Exceptions:
IOException 

Member Data Documentation