org.databene.benerator.wrapper
Class MultiSourceArrayGenerator<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.MultiSourceArrayGenerator<S>
All Implemented Interfaces:
java.io.Closeable, Generator<S[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class MultiSourceArrayGenerator<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.GeneratorProxy
generatedType
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
MultiSourceArrayGenerator(java.lang.Class<S> componentType, boolean unique, Generator<? extends S>... sources)
           
 
Method Summary
 Generator<? extends S>[] getSources()
           
 void init(GeneratorContext context)
           
 void setSources(Generator<? extends S>[] sources)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorProxy
generate, getGeneratedType, toString
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper
close, equals, generateFromSource, getSource, getSourceWrapper, hashCode, isParallelizable, isThreadSafe, reset, setSource
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, getResultWrapper, wasInitialized
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiSourceArrayGenerator

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

setUnique

public void setUnique(boolean unique)

getSources

public Generator<? extends S>[] getSources()

setSources

public void setSources(Generator<? extends S>[] sources)

init

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


Copyright © 2013. All Rights Reserved.