org.databene.benerator.nullable
Interface NullableGenerator<E>

All Superinterfaces:
java.io.Closeable, org.databene.commons.Resettable, org.databene.commons.ThreadAware
All Known Implementing Classes:
AbstractNullableGenerator, AsNullableGeneratorAdapter, ConstantNullableGenerator, ConvertingNullableGeneratorProxy, NullableGeneratorWrapper, NullableScriptGenerator, NullInjectingGeneratorProxy, NullInjectingGeneratorWrapper, ValidatingNullableGeneratorProxy

public interface NullableGenerator<E>
extends org.databene.commons.Resettable, java.io.Closeable, org.databene.commons.ThreadAware

Interface for classes that can generate null values. For differing between a generated null and unavailability, a ProductWrapper class is introduced. It may wrap a null value that has been generated or may be null itself for declaring unavailability.

Created: 26.01.2010 17:11:16

Since:
0.6.0
Author:
Volker Bergmann

Method Summary
 void close()
           
 ProductWrapper<E> generate(ProductWrapper<E> wrapper)
           
 java.lang.Class<E> getGeneratedType()
           
 void init(GeneratorContext context)
           
 
Methods inherited from interface org.databene.commons.Resettable
reset
 
Methods inherited from interface org.databene.commons.ThreadAware
isParallelizable, isThreadSafe
 

Method Detail

getGeneratedType

java.lang.Class<E> getGeneratedType()

init

void init(GeneratorContext context)
          throws InvalidGeneratorSetupException
Throws:
InvalidGeneratorSetupException

generate

ProductWrapper<E> generate(ProductWrapper<E> wrapper)

close

void close()
Specified by:
close in interface java.io.Closeable


Copyright © 2011. All Rights Reserved.