net.sf.jameleon.data
Class DataExecuter

java.lang.Object
  extended by net.sf.jameleon.data.DataExecuter

public class DataExecuter
extends Object

Ties DataDriver and DataDrivable together.


Field Summary
protected  DataDriver driver
           
 
Constructor Summary
DataExecuter()
          Default constructor.
DataExecuter(DataDriver driver)
          Uses the given driver to drive the DataDrivable.
 
Method Summary
 void executeData(DataDrivable drivable, boolean noExecute)
          When it is time to make the class data-driven, this method should be called.
 DataDriver getDataDriver()
          Gets the DataDriver used by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

protected DataDriver driver
Constructor Detail

DataExecuter

public DataExecuter()
Default constructor. At the moment this does nothing.


DataExecuter

public DataExecuter(DataDriver driver)
Uses the given driver to drive the DataDrivable.

Parameters:
driver - The drive used to drive the DataDrivable.
Method Detail

getDataDriver

public DataDriver getDataDriver()
Gets the DataDriver used by this class.

Returns:
the DataDriver used by this class.

executeData

public void executeData(DataDrivable drivable,
                        boolean noExecute)
                 throws IOException
When it is time to make the class data-driven, this method should be called.

Parameters:
drivable - - The class to be data-driven, for example, a csv tag class
noExecute - - If set to true, then the driver's methods will not actually get called and the executeDrivableRow will get called with an empty data set.
Throws:
IOException - the datasource handle cannot be opened or the datasource cannot be read from.


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