org.databene.benerator.composite
Class SimpleTypeEntityGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<java.lang.Object,Entity>
org.databene.benerator.composite.SimpleTypeEntityGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<Entity>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class SimpleTypeEntityGenerator
- extends GeneratorWrapper<java.lang.Object,Entity>
Generates Entities that wrap a content of simple type.
Created at 11.05.2008 23:37:42
- Since:
- 0.5.4
- Author:
- Volker Bergmann
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
close, equals, generateFromSource, getSource, getSourceWrapper, hashCode, init, isParallelizable, isThreadSafe, reset, setSource, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimpleTypeEntityGenerator
public SimpleTypeEntityGenerator(Generator<?> source,
ComplexTypeDescriptor complexType)
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.
Copyright © 2013. All Rights Reserved.