org.databene.benerator.nullable
Interface NullableGenerator<E>
- All Superinterfaces:
- java.io.Closeable, Resettable, ThreadAware
- All Known Implementing Classes:
- AbstractNullableGenerator, ConstantNullableGenerator, ConvertingNullableGeneratorProxy, NullableGeneratorWrapper, NullableScriptGenerator, NullInjectingGeneratorProxy, ValidatingNullableGeneratorProxy
public interface NullableGenerator<E>
- extends Resettable, java.io.Closeable, 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
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 © 2010. All Rights Reserved.