|
||||||||||
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.AbstractNonNullGenerator<E>
public abstract class AbstractNonNullGenerator<E>
Abstract implementation of the NonNullGenerator.
Created: 26.07.2011 17:35:35
Field Summary |
---|
Fields inherited from class org.databene.benerator.util.AbstractGenerator |
---|
context, logger, state |
Constructor Summary | |
---|---|
AbstractNonNullGenerator()
|
Method Summary | |
---|---|
abstract E |
generate()
|
ProductWrapper<E> |
generate(ProductWrapper<E> wrapper)
Returns an instance of the generic type E, using the ProductWrapper
instance provided as argument. |
Methods inherited from class org.databene.benerator.util.AbstractGenerator |
---|
assertInitialized, assertNotInitialized, close, getResultWrapper, init, reset, toString, wasInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.databene.benerator.Generator |
---|
close, getGeneratedType, init, wasInitialized |
Methods inherited from interface org.databene.commons.ThreadAware |
---|
isParallelizable, isThreadSafe |
Methods inherited from interface org.databene.commons.Resettable |
---|
reset |
Constructor Detail |
---|
public AbstractNonNullGenerator()
Method Detail |
---|
public final ProductWrapper<E> generate(ProductWrapper<E> wrapper)
Generator
ProductWrapper
instance provided as argument.
The wrapper may wrap a null value as a regular generator product.
If the generator is not available (any more), it returns null instead of
the ProductWrapper instance.
generate
in interface Generator<E>
public abstract E generate()
generate
in interface NonNullGenerator<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |