org.databene.benerator.composite
Class BlankEntityGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.util.ThreadSafeGenerator<Entity>
          extended by org.databene.benerator.composite.BlankEntityGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<Entity>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class BlankEntityGenerator
extends ThreadSafeGenerator<Entity>

Instantiates an entity without initializing any components.

Created: 01.09.2007 07:39:52

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
BlankEntityGenerator(ComplexTypeDescriptor descriptor)
           
 
Method Summary
 ProductWrapper<Entity> generate(ProductWrapper<Entity> wrapper)
          Returns an instance of the generic type E, using the ProductWrapper instance provided as argument.
 java.lang.Class<Entity> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 java.lang.String toString()
           
 
Methods inherited from class org.databene.benerator.util.ThreadSafeGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, init, reset, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlankEntityGenerator

public BlankEntityGenerator(ComplexTypeDescriptor descriptor)
Method Detail

getGeneratedType

public java.lang.Class<Entity> getGeneratedType()
Description copied from interface: Generator
Declares the type of the objects returned by the generate() method.


generate

public ProductWrapper<Entity> generate(ProductWrapper<Entity> wrapper)
Description copied from interface: Generator
Returns an instance of the generic type E, using the ProductWrapper instance provided as argument. The wrapper may wrap a null value as a regular generator product. If the generator is not available (any more), it returns null instead of the ProductWrapper instance.


toString

public java.lang.String toString()
Overrides:
toString in class AbstractGenerator<Entity>


Copyright © 2013. All Rights Reserved.