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

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

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

Parent class for facilitating individual ComponentBuilder implementation.

Created: 30.04.2010 09:34:42

Since:
0.6.1
Author:
Volker Bergmann

Field Summary
protected  NullableGenerator<?> source
           
 
Constructor Summary
AbstractComponentBuilder(Generator<?> source, double nullQuota)
           
AbstractComponentBuilder(NullableGenerator<?> source)
           
 
Method Summary
 void close()
          closes the builder
 java.lang.Class<?> getGeneratedType()
           
 NullableGenerator<?> getSource()
           
 void init(GeneratorContext context)
          Initializes the instance
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 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
 

Field Detail

source

protected NullableGenerator<?> source
Constructor Detail

AbstractComponentBuilder

public AbstractComponentBuilder(Generator<?> source,
                                double nullQuota)

AbstractComponentBuilder

public AbstractComponentBuilder(NullableGenerator<?> source)
Method Detail

getSource

public NullableGenerator<?> getSource()

getGeneratedType

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

close

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

Specified by:
close in interface ComponentBuilder<E>

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>

toString

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

isParallelizable

public boolean isParallelizable()
Specified by:
isParallelizable in interface org.databene.commons.ThreadAware

isThreadSafe

public boolean isThreadSafe()
Specified by:
isThreadSafe in interface org.databene.commons.ThreadAware


Copyright © 2011. All Rights Reserved.