org.databene.benerator.factory
Class ComplexTypeGeneratorFactory

java.lang.Object
  extended by org.databene.benerator.factory.TypeGeneratorFactory<ComplexTypeDescriptor>
      extended by org.databene.benerator.factory.ComplexTypeGeneratorFactory

public class ComplexTypeGeneratorFactory
extends TypeGeneratorFactory<ComplexTypeDescriptor>

Creates entity generators from entity metadata.

Created: 08.09.2007 07:45:40

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.factory.TypeGeneratorFactory
logger
 
Constructor Summary
protected ComplexTypeGeneratorFactory()
           
 
Method Summary
protected  Generator<?> applyComponentBuilders(Generator<?> generator, ComplexTypeDescriptor descriptor, java.lang.String instanceName, Uniqueness uniqueness, BeneratorContext context)
           
protected  Generator<?> createHeuristicGenerator(ComplexTypeDescriptor type, java.lang.String instanceName, Uniqueness uniqueness, BeneratorContext context)
           
static Generator<?> createMutatingEntityGenerator(java.lang.String name, ComplexTypeDescriptor descriptor, Uniqueness ownerUniqueness, BeneratorContext context, Generator<?> source)
           
static java.util.List<GeneratorComponent<Entity>> createMutatingGeneratorComponents(ComplexTypeDescriptor descriptor, Uniqueness ownerUniqueness, BeneratorContext context)
           
protected  Generator<Entity> createSourceGenerator(ComplexTypeDescriptor descriptor, Uniqueness uniqueness, BeneratorContext context)
           
protected  Generator<?> createSpecificGenerator(ComplexTypeDescriptor descriptor, java.lang.String instanceName, boolean nullable, Uniqueness uniqueness, BeneratorContext context)
           
protected  java.lang.Class<?> getGeneratedType(ComplexTypeDescriptor descriptor)
           
static ComplexTypeGeneratorFactory getInstance()
           
 
Methods inherited from class org.databene.benerator.factory.TypeGeneratorFactory
applyRootWrappers, createConverter, createConvertingGenerator, createExplicitGenerator, createGenerator, createInheritedGenerator, createRootGenerator, createScriptGenerator, createValidatingGenerator, isFormatted, shouldNullifyEachNullable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexTypeGeneratorFactory

protected ComplexTypeGeneratorFactory()
Method Detail

getInstance

public static ComplexTypeGeneratorFactory getInstance()

applyComponentBuilders

protected Generator<?> applyComponentBuilders(Generator<?> generator,
                                              ComplexTypeDescriptor descriptor,
                                              java.lang.String instanceName,
                                              Uniqueness uniqueness,
                                              BeneratorContext context)
Overrides:
applyComponentBuilders in class TypeGeneratorFactory<ComplexTypeDescriptor>

createSourceGenerator

protected Generator<Entity> createSourceGenerator(ComplexTypeDescriptor descriptor,
                                                  Uniqueness uniqueness,
                                                  BeneratorContext context)
Specified by:
createSourceGenerator in class TypeGeneratorFactory<ComplexTypeDescriptor>

createSpecificGenerator

protected Generator<?> createSpecificGenerator(ComplexTypeDescriptor descriptor,
                                               java.lang.String instanceName,
                                               boolean nullable,
                                               Uniqueness uniqueness,
                                               BeneratorContext context)
Specified by:
createSpecificGenerator in class TypeGeneratorFactory<ComplexTypeDescriptor>

createHeuristicGenerator

protected Generator<?> createHeuristicGenerator(ComplexTypeDescriptor type,
                                                java.lang.String instanceName,
                                                Uniqueness uniqueness,
                                                BeneratorContext context)
Specified by:
createHeuristicGenerator in class TypeGeneratorFactory<ComplexTypeDescriptor>

getGeneratedType

protected java.lang.Class<?> getGeneratedType(ComplexTypeDescriptor descriptor)
Specified by:
getGeneratedType in class TypeGeneratorFactory<ComplexTypeDescriptor>

createMutatingEntityGenerator

public static Generator<?> createMutatingEntityGenerator(java.lang.String name,
                                                         ComplexTypeDescriptor descriptor,
                                                         Uniqueness ownerUniqueness,
                                                         BeneratorContext context,
                                                         Generator<?> source)

createMutatingGeneratorComponents

public static java.util.List<GeneratorComponent<Entity>> createMutatingGeneratorComponents(ComplexTypeDescriptor descriptor,
                                                                                           Uniqueness ownerUniqueness,
                                                                                           BeneratorContext context)


Copyright © 2013. All Rights Reserved.