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

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

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>

close

public void close()
Specified by:
close 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>

toString

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

isParallelizable

public boolean isParallelizable()
Specified by:
isParallelizable in interface ThreadAware

isThreadSafe

public boolean isThreadSafe()
Specified by:
isThreadSafe in interface ThreadAware


Copyright © 2010. All Rights Reserved.