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

java.lang.Object
  extended by org.databene.benerator.engine.AbstractScopedLifeCycleHolder
      extended by org.databene.benerator.composite.MultiComponentBuilder<E>
          extended by org.databene.benerator.composite.AlternativeComponentBuilder<E>
All Implemented Interfaces:
java.io.Closeable, ComponentBuilder<E>, GeneratorComponent<E>, LifeCycleHolder, ScopedLifeCycleHolder, Statement, org.databene.commons.MessageHolder, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class AlternativeComponentBuilder<E>
extends MultiComponentBuilder<E>

Creates one component from an arbitrary choice of different available ones.

Created at 09.05.2008 13:28:19

Since:
0.5.4
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.composite.MultiComponentBuilder
builders, message
 
Constructor Summary
AlternativeComponentBuilder(ComponentBuilder<E>[] alternatives, java.lang.String scope)
           
 
Method Summary
 boolean execute(BeneratorContext context)
           
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 
Methods inherited from class org.databene.benerator.composite.MultiComponentBuilder
buildRandomComponent, close, getMessage, init, reset, toString
 
Methods inherited from class org.databene.benerator.engine.AbstractScopedLifeCycleHolder
getScope, isResetNeeded, resetIfNeeded, setResetNeeded, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.engine.ScopedLifeCycleHolder
getScope, isResetNeeded, resetIfNeeded, setResetNeeded, setScope
 

Constructor Detail

AlternativeComponentBuilder

public AlternativeComponentBuilder(ComponentBuilder<E>[] alternatives,
                                   java.lang.String scope)
Method Detail

execute

public boolean execute(BeneratorContext context)

isParallelizable

public boolean isParallelizable()

isThreadSafe

public boolean isThreadSafe()


Copyright © 2013. All Rights Reserved.