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

java.lang.Object
  extended by org.databene.benerator.nullable.AbstractNullableGenerator<E>
All Implemented Interfaces:
java.io.Closeable, NullableGenerator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
Direct Known Subclasses:
ConstantNullableGenerator, NullableGeneratorWrapper, NullableScriptGenerator, NullInjectingGeneratorWrapper

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

Abstract NullableGenerator implementation which holds a state and state management methods.

Created: 24.02.2010 15:22:42

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
protected  GeneratorState state
           
 
Constructor Summary
AbstractNullableGenerator()
           
 
Method Summary
protected  void assertInitialized()
           
protected  void assertNotInitialized()
           
 void init(GeneratorContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.nullable.NullableGenerator
close, generate, getGeneratedType
 
Methods inherited from interface org.databene.commons.Resettable
reset
 
Methods inherited from interface org.databene.commons.ThreadAware
isParallelizable, isThreadSafe
 

Field Detail

state

protected GeneratorState state
Constructor Detail

AbstractNullableGenerator

public AbstractNullableGenerator()
Method Detail

init

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

assertNotInitialized

protected final void assertNotInitialized()

assertInitialized

protected final void assertInitialized()


Copyright © 2011. All Rights Reserved.