pl.kernelpanic.dbmonster.generator
Class StringChoiceGenerator
java.lang.Object
pl.kernelpanic.dbmonster.generator.BasicDataGenerator
pl.kernelpanic.dbmonster.generator.StringChoiceGenerator
- All Implemented Interfaces:
- DataGenerator, Initializable
public class StringChoiceGenerator
- extends BasicDataGenerator
- implements Initializable
- Author:
- Christian Daszenies <cloudyster at gmail.com>, Piotr Maj
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringChoiceGenerator
public StringChoiceGenerator()
initialize
public void initialize(DBMonsterContext ctx)
throws Exception
- Description copied from interface:
Initializable
- Initializes a class with
DBMonsterContext.
- Specified by:
initialize in interface Initializable
- Parameters:
ctx - context
- Throws:
Exception - if initialization fails
generate
public Object generate()
- Description copied from interface:
DataGenerator
- Generates a value.
- Specified by:
generate in interface DataGenerator
- Returns:
- generated value.
getChoice
public String getChoice()
setChoice
public void setChoice(String argChoice)
reset
public void reset()
- Description copied from interface:
DataGenerator
- Resets the generator.
- Specified by:
reset in interface DataGenerator
Copyright © 2003-2006 .:. kernelpanic.pl .:.. All Rights Reserved.