org.databene.benerator.composite
Interface ComponentBuilder<E>

All Superinterfaces:
org.databene.commons.ThreadAware
All Known Implementing Classes:
AbstractComponentBuilder, AlternativeComponentBuilder, ArrayElementBuilder, ComponentBuilderProxy, ConditionalComponentBuilder, DefaultComponentBuilder, MultiComponentBuilder, PlainEntityComponentBuilder

public interface ComponentBuilder<E>
extends org.databene.commons.ThreadAware

Common interface for all component builders.

Created at 09.05.2008 13:14:15

Since:
0.5.4
Author:
Volker Bergmann

Method Summary
 boolean buildComponentFor(E target)
          builds the related component of target
 void close()
          closes the builder
 java.lang.Class<?> getGeneratedType()
           
 void init(GeneratorContext context)
          Initializes the instance
 void reset()
          resets the builder
 
Methods inherited from interface org.databene.commons.ThreadAware
isParallelizable, isThreadSafe
 

Method Detail

init

void init(GeneratorContext context)
Initializes the instance


getGeneratedType

java.lang.Class<?> getGeneratedType()
Returns:
the type of the generated components

buildComponentFor

boolean buildComponentFor(E target)
builds the related component of target

Returns:
false if no more data was available to build, otherwise true

reset

void reset()
resets the builder


close

void close()
closes the builder



Copyright © 2011. All Rights Reserved.