org.databene.benerator.wrapper
Class CompositeArrayGenerator<S>

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<P>
      extended by org.databene.benerator.wrapper.GeneratorWrapper<E,E>
          extended by org.databene.benerator.wrapper.GeneratorProxy<S[]>
              extended by org.databene.benerator.wrapper.CompositeArrayGenerator<S>
All Implemented Interfaces:
java.io.Closeable, Generator<S[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class CompositeArrayGenerator<S>
extends GeneratorProxy<S[]>

Keeps an array of generators, of which it combines the products to an array.

Created: 28.07.2010 19:10:53

Since:
0.1
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.wrapper.GeneratorWrapper
source
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
CompositeArrayGenerator(java.lang.Class<S> targetType, boolean unique, Generator<? extends S>... sources)
           
 
Method Summary
 void init(GeneratorContext context)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorProxy
generate, getGeneratedType
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper
close, equals, getSource, hashCode, isParallelizable, isThreadSafe, reset, setSource, toString
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, wasInitialized
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeArrayGenerator

public CompositeArrayGenerator(java.lang.Class<S> targetType,
                               boolean unique,
                               Generator<? extends S>... sources)
Method Detail

setUnique

public void setUnique(boolean unique)

init

public void init(GeneratorContext context)
Specified by:
init in interface Generator<S[]>
Overrides:
init in class GeneratorWrapper<S[],S[]>


Copyright © 2011. All Rights Reserved.