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

java.lang.Object
  extended by org.databene.benerator.composite.MultiComponentBuilder<E>
All Implemented Interfaces:
ComponentBuilder<E>, 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()
           
 java.lang.Class<?> getGeneratedType()
           
 void init(GeneratorContext context)
           
 void reset()
           
 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>

init

public void init(GeneratorContext context)
Specified by:
init in interface ComponentBuilder<E>

reset

public void reset()
Specified by:
reset in interface ComponentBuilder<E>

close

public void close()
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 © 2010. All Rights Reserved.