com.pushtotest.tool.dpl.provided
Class LingoDPL

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

public class LingoDPL
extends java.lang.Object
implements DataProduction

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


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

Constructor Detail

LingoDPL

public LingoDPL()
Creates a new instance of LingoDPL

Method Detail

setup

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

Specified by:
setup in interface DataProduction

setup

public void setup(int messSize)

setup

public void setup(java.lang.String[] arguments)

getData

public java.lang.Object 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.Object 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.Object 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.Object 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