org.databene.benerator.primitive.regex
Class UniqueCompositeStringGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<P>
      extended by org.databene.benerator.wrapper.GeneratorWrapper<java.lang.String[],java.lang.String>
          extended by org.databene.benerator.primitive.regex.UniqueCompositeStringGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class UniqueCompositeStringGenerator
extends GeneratorWrapper<java.lang.String[],java.lang.String>

Uses n String generators and appends the output of each one in each generate() call.

Created: 17.11.2007 17:33:21

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
UniqueCompositeStringGenerator()
           
UniqueCompositeStringGenerator(Generator<java.lang.String>... sources)
           
 
Method Summary
 java.lang.String generate()
          Returns an instance of the generic type E.
 java.lang.Class<java.lang.String> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 java.lang.String toString()
           
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper
close, equals, getSource, hashCode, init, isParallelizable, isThreadSafe, reset, setSource
 
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

UniqueCompositeStringGenerator

public UniqueCompositeStringGenerator()

UniqueCompositeStringGenerator

public UniqueCompositeStringGenerator(Generator<java.lang.String>... sources)
Method Detail

getGeneratedType

public java.lang.Class<java.lang.String> getGeneratedType()
Description copied from interface: Generator
Declares the type of the objects returned by the generate() method.


generate

public java.lang.String generate()
Description copied from interface: Generator
Returns an instance of the generic type E.


toString

public java.lang.String toString()
Overrides:
toString in class GeneratorWrapper<java.lang.String[],java.lang.String>


Copyright © 2011. All Rights Reserved.