org.databene.benerator.composite
Class MultiComponentBuilder<E>

java.lang.Object
  extended by org.databene.benerator.composite.MultiComponentBuilder<E>
All Implemented Interfaces:
ComponentBuilder<E>, org.databene.commons.ThreadAware
Direct Known Subclasses:
AlternativeComponentBuilder

public abstract class MultiComponentBuilder<E>
extends java.lang.Object
implements ComponentBuilder<E>

Abstract parent class for all builders that relate to a group of components.

Created at 09.05.2008 13:38:33

Since:
0.5.4
Author:
Volker Bergmann

Field Summary
protected  ComponentBuilder<E>[] builders
           
 
Constructor Summary
MultiComponentBuilder(ComponentBuilder<E>[] builders)
           
 
Method Summary
 boolean buildRandomComponentFor(E target)
           
 void close()
          closes the builder
 java.lang.Class<?> getGeneratedType()
           
 void init(GeneratorContext context)
          Initializes the instance
 void reset()
          resets the builder
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.composite.ComponentBuilder
buildComponentFor
 
Methods inherited from interface org.databene.commons.ThreadAware
isParallelizable, isThreadSafe
 

Field Detail

builders

protected ComponentBuilder<E>[] builders
Constructor Detail

MultiComponentBuilder

public MultiComponentBuilder(ComponentBuilder<E>[] builders)
Method Detail

getGeneratedType

public java.lang.Class<?> getGeneratedType()
Specified by:
getGeneratedType in interface ComponentBuilder<E>
Returns:
the type of the generated components

init

public void init(GeneratorContext context)
Description copied from interface: ComponentBuilder
Initializes the instance

Specified by:
init in interface ComponentBuilder<E>

reset

public void reset()
Description copied from interface: ComponentBuilder
resets the builder

Specified by:
reset in interface ComponentBuilder<E>

close

public void close()
Description copied from interface: ComponentBuilder
closes the builder

Specified by:
close in interface ComponentBuilder<E>

buildRandomComponentFor

public boolean buildRandomComponentFor(E target)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.