org.databene.benerator.nullable
Class AsNullableGeneratorAdapter<E>

java.lang.Object
  extended by org.databene.benerator.nullable.AsNullableGeneratorAdapter<E>
All Implemented Interfaces:
java.io.Closeable, NullableGenerator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class AsNullableGeneratorAdapter<E>
extends java.lang.Object
implements NullableGenerator<E>

Wraps a Generator with a NullableGenerator.

Created: 22.07.2010 19:14:36

Since:
0.6.3
Author:
Volker Bergmann

Constructor Summary
AsNullableGeneratorAdapter(Generator<E> source)
           
 
Method Summary
 void close()
           
 ProductWrapper<E> generate(ProductWrapper<E> wrapper)
           
 java.lang.Class<E> getGeneratedType()
           
 void init(GeneratorContext context)
           
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsNullableGeneratorAdapter

public AsNullableGeneratorAdapter(Generator<E> source)
Method Detail

getGeneratedType

public java.lang.Class<E> getGeneratedType()
Specified by:
getGeneratedType in interface NullableGenerator<E>

init

public void init(GeneratorContext context)
          throws InvalidGeneratorSetupException
Specified by:
init in interface NullableGenerator<E>
Throws:
InvalidGeneratorSetupException

generate

public ProductWrapper<E> generate(ProductWrapper<E> wrapper)
Specified by:
generate in interface NullableGenerator<E>

reset

public void reset()
           throws IllegalGeneratorStateException
Specified by:
reset in interface org.databene.commons.Resettable
Throws:
IllegalGeneratorStateException

close

public void close()
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface NullableGenerator<E>

isParallelizable

public boolean isParallelizable()
Specified by:
isParallelizable in interface org.databene.commons.ThreadAware

isThreadSafe

public boolean isThreadSafe()
Specified by:
isThreadSafe in interface org.databene.commons.ThreadAware

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.