org.databene.domain.finance
Class BankGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.wrapper.CompositeGenerator<Bank>
          extended by org.databene.domain.finance.BankGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<Bank>, NonNullGenerator<Bank>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class BankGenerator
extends CompositeGenerator<Bank>
implements NonNullGenerator<Bank>

Generates BankAccounts with low validity requirements.

Created at 23.06.2008 11:08:48

Since:
0.5.4
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.wrapper.CompositeGenerator
components, generatedType
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
BankGenerator()
           
 
Method Summary
 Bank generate()
           
 ProductWrapper<Bank> generate(ProductWrapper<Bank> wrapper)
          Returns an instance of the generic type E, using the ProductWrapper instance provided as argument.
 void init(GeneratorContext context)
           
 
Methods inherited from class org.databene.benerator.wrapper.CompositeGenerator
getGeneratedType, isParallelizable, isThreadSafe, registerComponent, registerComponent, registerComponents
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, 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, wasInitialized
 
Methods inherited from interface org.databene.commons.ThreadAware
isParallelizable, isThreadSafe
 
Methods inherited from interface org.databene.commons.Resettable
reset
 

Constructor Detail

BankGenerator

public BankGenerator()
Method Detail

init

public void init(GeneratorContext context)
Specified by:
init in interface Generator<Bank>
Overrides:
init in class AbstractGenerator<Bank>

generate

public ProductWrapper<Bank> generate(ProductWrapper<Bank> wrapper)
Description copied from interface: Generator
Returns an instance of the generic type E, using the 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.

Specified by:
generate in interface Generator<Bank>

generate

public Bank generate()
Specified by:
generate in interface NonNullGenerator<Bank>


Copyright © 2013. All Rights Reserved.