uk.co.jemos.podam.api
Interface DataProviderStrategy

All Known Implementing Classes:
RandomDataProviderStrategy

public interface DataProviderStrategy

This interface defines the contact for PODAM data providers.

PODAM is a tool to fill POJOs with data. There are different requirements when it comes to which data POJOs should be filled with. The default strategy adopted by PODAM is to fill POJOs with random data. However other requirements (e.g. http://www.jemos.eu/jira/browse/PDM-19) might want to assign deterministic data using sequences, or other predictable sources of data. In order to do so, all clients of PODAM will have to do is to provide an implementation of this interface and pass it to the PodamFactory method which manufactures a POJO.

Author:
mtedone

Method Summary
 Boolean getBoolean()
          It returns a boolean/Boolean value.
 Byte getByte()
          It returns a byte/Byte value.
 Byte getByteInRange(byte minValue, byte maxValue)
          It returns a byte/Byte within min and max value (included).
 Character getCharacter()
          It returns a char/Character value.
 Character getCharacterInRange(char minValue, char maxValue)
          It returns a char/Character value between min and max value (included).
 Double getDouble()
          It returns a double/Double value
 Double getDoubleInRange(double minValue, double maxValue)
          It returns a double/Double value between min and max value (included).
 Float getFloat()
          It returns a float/Float value.
 Float getFloatInRange(float minValue, float maxValue)
          It returns a float/Float value between min and max value (included).
 Integer getInteger()
          It returns an int/Integer value.
 int getIntegerInRange(int minValue, int maxValue)
          It returns an int/Integer value between min and max value (included).
 Long getLong()
          It returns a long/Long value.
 Long getLongInRange(long minValue, long maxValue)
          It returns a long/Long value between min and max value (included).
 Short getShort()
          It returns a short/Short value.
 Short getShortInRange(short minValue, short maxValue)
          It returns a short/Short value between min and max value (included).
 String getStringOfLength(int length)
          It returns a String of length characters.
 String getStringValue()
          It returns a string value
 

Method Detail

getBoolean

Boolean getBoolean()
It returns a boolean/Boolean value.


getByte

Byte getByte()
It returns a byte/Byte value.


getByteInRange

Byte getByteInRange(byte minValue,
                    byte maxValue)
It returns a byte/Byte within min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
A byte/Byte within min and max value (included).

getCharacter

Character getCharacter()
It returns a char/Character value.


getCharacterInRange

Character getCharacterInRange(char minValue,
                              char maxValue)
It returns a char/Character value between min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
A char/Character value between min and max value (included).

getDouble

Double getDouble()
It returns a double/Double value


getDoubleInRange

Double getDoubleInRange(double minValue,
                        double maxValue)
It returns a double/Double value between min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
A double/Double value between min and max value (included)

getFloat

Float getFloat()
It returns a float/Float value.


getFloatInRange

Float getFloatInRange(float minValue,
                      float maxValue)
It returns a float/Float value between min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
A float/Float value between min and max value (included).

getInteger

Integer getInteger()
It returns an int/Integer value.


getIntegerInRange

int getIntegerInRange(int minValue,
                      int maxValue)
It returns an int/Integer value between min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
An int/Integer value between min and max value (included).

getLong

Long getLong()
It returns a long/Long value.


getLongInRange

Long getLongInRange(long minValue,
                    long maxValue)
It returns a long/Long value between min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
A long/Long value between min and max value (included).

getShort

Short getShort()
It returns a short/Short value.


getShortInRange

Short getShortInRange(short minValue,
                      short maxValue)
It returns a short/Short value between min and max value (included).

Parameters:
minValue - The minimum value for the returned value
maxValue - The maximum value for the returned value
Returns:
A short/Short value between min and max value (included).

getStringValue

String getStringValue()
It returns a string value


getStringOfLength

String getStringOfLength(int length)
It returns a String of length characters.

Parameters:
length - The number of characters required in the returned String
Returns:
A String of length characters

Jemos 2002 - 2011: All Rights Reserved. Podam runs under the MIT license

Copyright © 2011. All Rights Reserved.