net.sf.jameleon.data
Interface DataDrivable

All Known Implementing Classes:
AbstractCsvTag, AbstractDataDrivableTag, AbstractFileDrivableTag, CsvTag, IterateTag, SqlTag, TestCaseTag

public interface DataDrivable

The class that needs to be data-driven should implement this interface.


Method Summary
 void addVariablesToRowData(Map vars)
          Used to keep track of the variables and their original values.
 void destroyVariables(Set keys)
          Removes the keys from the context and the variable set in addVariablesToRowData()
 void executeDrivableRow(int rowNum)
          Called with the a key-value pair of variables for each row found in the data source.
 boolean isCountRow()
          Used to tell whether this DataDrivable object is meant to report on each row execution or to report on them as a whole
 

Method Detail

executeDrivableRow

void executeDrivableRow(int rowNum)
Called with the a key-value pair of variables for each row found in the data source.

Parameters:
rowNum - - The row number being executed

destroyVariables

void destroyVariables(Set keys)
Removes the keys from the context and the variable set in addVariablesToRowData()

Parameters:
keys - - A Set of variable names to clean up.

addVariablesToRowData

void addVariablesToRowData(Map vars)
Used to keep track of the variables and their original values. Any variable substitution should also be done here

Parameters:
vars - - A map of key-value pairs.

isCountRow

boolean isCountRow()
Used to tell whether this DataDrivable object is meant to report on each row execution or to report on them as a whole



Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.