org.databene.domain.finance
Class BankAccountGenerator

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

public class BankAccountGenerator
extends CompositeGenerator<BankAccount>
implements NonNullGenerator<BankAccount>

Generates German BankAccounts with low validity requirements.

Created at 24.06.2008 08:36:32

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
BankAccountGenerator()
           
 
Method Summary
 BankAccount generate()
           
 ProductWrapper<BankAccount> generate(ProductWrapper<BankAccount> 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

BankAccountGenerator

public BankAccountGenerator()
Method Detail

init

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

generate

public ProductWrapper<BankAccount> generate(ProductWrapper<BankAccount> 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<BankAccount>

generate

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


Copyright © 2013. All Rights Reserved.