com.pushtotest.tool.dpl.provided
Class CSVDPL

java.lang.Object
  extended by com.pushtotest.tool.dpl.provided.CSVDPL
All Implemented Interfaces:
DataProduction

public class CSVDPL
extends java.lang.Object
implements DataProduction

DPL that provides Dummy text of the type "Lorem ipsum.."


Constructor Summary
CSVDPL()
          Creates a new instance of CSVDPL (Comma Separated Value DPL)
 
Method Summary
 java.lang.String[] getData()
          Obtains the current data.
 java.lang.String[] getDataByIndex(int index)
          Returns the data at a particular position
 java.lang.String[] getNextData()
          Returns the actual pointer data, and moves the pointer to the next position.
 java.lang.String[] getRandomData()
          Returns data from a random pointer position.
 void print(java.lang.String[] files)
           
 void setup()
          Non-Arguments Setup in case User calls a without arguments
 void setup(java.lang.String filename)
           
 void tearDown()
          Cleans up
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVDPL

public CSVDPL()
Creates a new instance of CSVDPL (Comma Separated Value DPL)

Method Detail

setup

public void setup()
           throws DPLException
Description copied from interface: DataProduction
Non-Arguments Setup in case User calls a without arguments

Specified by:
setup in interface DataProduction
Throws:
DPLException

setup

public void setup(java.lang.String filename)
           throws DPLException
Throws:
DPLException

getData

public java.lang.String[] getData()
Description copied from interface: DataProduction
Obtains the current data. It will return the data of the actual pointer without moving it.

Specified by:
getData in interface DataProduction
Returns:
Current Data

getRandomData

public java.lang.String[] getRandomData()
Description copied from interface: DataProduction
Returns data from a random pointer position.

Specified by:
getRandomData in interface DataProduction
Returns:
Data from Random position

getNextData

public java.lang.String[] getNextData()
Description copied from interface: DataProduction
Returns the actual pointer data, and moves the pointer to the next position. If the position is the last one, pointer is moved to the first position.

Specified by:
getNextData in interface DataProduction
Returns:
Current Data

getDataByIndex

public java.lang.String[] getDataByIndex(int index)
Description copied from interface: DataProduction
Returns the data at a particular position

Specified by:
getDataByIndex in interface DataProduction
Parameters:
index - Data Position to return
Returns:
Data at indicated position

tearDown

public void tearDown()
Description copied from interface: DataProduction
Cleans up

Specified by:
tearDown in interface DataProduction

print

public void print(java.lang.String[] files)