|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.ThreadSafeGenerator<E>
org.databene.benerator.sample.ConstantGenerator<E>
public class ConstantGenerator<E>
Generator implementation that always returns the same value.
Created: 08.06.2006 20:26:22
Field Summary |
---|
Fields inherited from class org.databene.benerator.util.AbstractGenerator |
---|
context, logger, state |
Constructor Summary | |
---|---|
ConstantGenerator()
|
|
ConstantGenerator(E value)
Initializes the generator to generate the specified value |
|
ConstantGenerator(E value,
java.lang.Class<E> generatedType)
|
Method Summary | |
---|---|
ProductWrapper<E> |
generate(ProductWrapper<E> wrapper)
Returns the value of property 'value' |
java.lang.Class<E> |
getGeneratedType()
Declares the type of the objects returned by the generate() method. |
E |
getValue()
Returns the property 'value' |
void |
setValue(E value)
Sets the property 'value' |
java.lang.String |
toString()
|
Methods inherited from class org.databene.benerator.util.ThreadSafeGenerator |
---|
isParallelizable, isThreadSafe |
Methods inherited from class org.databene.benerator.util.AbstractGenerator |
---|
assertInitialized, assertNotInitialized, close, getResultWrapper, init, reset, wasInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantGenerator()
public ConstantGenerator(E value)
public ConstantGenerator(E value, java.lang.Class<E> generatedType)
Method Detail |
---|
public E getValue()
public void setValue(E value)
public java.lang.Class<E> getGeneratedType()
Generator
public ProductWrapper<E> generate(ProductWrapper<E> wrapper)
public java.lang.String toString()
toString
in class AbstractGenerator<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |