org.databene.benerator.wrapper
Class SimpleArrayGenerator<E>

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

public class SimpleArrayGenerator<E>
extends AbstractArrayGenerator<E,E[]>

Assembles the output of a source generator into an array of random length.

Created: 26.08.2006 09:37:55

Since:
0.1
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.wrapper.AbstractArrayGenerator
sizeGenerator
 
Fields inherited from class org.databene.benerator.wrapper.GeneratorWrapper
source
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
SimpleArrayGenerator()
           
SimpleArrayGenerator(Generator<E> source, java.lang.Class<E> componentType, int minLength, int maxLength)
           
SimpleArrayGenerator(Generator<E> source, java.lang.Class<E> componentType, int minLength, int maxLength, Distribution lengthDistribution)
           
 
Method Summary
 
Methods inherited from class org.databene.benerator.wrapper.AbstractArrayGenerator
generate, getGeneratedType, init
 
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

SimpleArrayGenerator

public SimpleArrayGenerator()

SimpleArrayGenerator

public SimpleArrayGenerator(Generator<E> source,
                            java.lang.Class<E> componentType,
                            int minLength,
                            int maxLength)

SimpleArrayGenerator

public SimpleArrayGenerator(Generator<E> source,
                            java.lang.Class<E> componentType,
                            int minLength,
                            int maxLength,
                            Distribution lengthDistribution)


Copyright © 2011. All Rights Reserved.