org.databene.benerator.factory
Class SimpleTypeGeneratorFactory

java.lang.Object
  extended by org.databene.benerator.factory.TypeGeneratorFactory<SimpleTypeDescriptor>
      extended by org.databene.benerator.factory.SimpleTypeGeneratorFactory

public class SimpleTypeGeneratorFactory
extends TypeGeneratorFactory<SimpleTypeDescriptor>

Creates generators of simple types.

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.factory.TypeGeneratorFactory
logger
 
Constructor Summary
protected SimpleTypeGeneratorFactory()
           
 
Method Summary
protected static Generator<?> createConstantGenerator(SimpleTypeDescriptor descriptor, BeneratorContext context)
           
protected  Generator<?> createExplicitGenerator(SimpleTypeDescriptor descriptor, Uniqueness uniqueness, BeneratorContext context)
           
protected  Generator<?> createHeuristicGenerator(SimpleTypeDescriptor descriptor, java.lang.String instanceName, Uniqueness uniqueness, BeneratorContext context)
           
protected static Generator<java.lang.String> createPatternGenerator(SimpleTypeDescriptor type, Uniqueness uniqueness, BeneratorContext context)
           
protected static
<A extends java.lang.annotation.Annotation,T>
org.databene.commons.Validator<T>
createRestrictionValidator(SimpleTypeDescriptor descriptor, boolean nullable, GeneratorFactory context)
           
protected  Generator<?> createSourceGenerator(SimpleTypeDescriptor descriptor, Uniqueness uniqueness, BeneratorContext context)
           
protected  Generator<?> createSpecificGenerator(SimpleTypeDescriptor descriptor, java.lang.String instanceName, boolean nullable, Uniqueness uniqueness, BeneratorContext context)
           
protected static Generator<?> createValuesGenerator(SimpleTypeDescriptor descriptor, Uniqueness uniqueness, BeneratorContext context)
           
protected  java.lang.Class<?> getGeneratedType(SimpleTypeDescriptor descriptor)
           
static SimpleTypeGeneratorFactory getInstance()
           
 
Methods inherited from class org.databene.benerator.factory.TypeGeneratorFactory
applyComponentBuilders, applyRootWrappers, createConverter, createConvertingGenerator, 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

SimpleTypeGeneratorFactory

protected SimpleTypeGeneratorFactory()
Method Detail

getInstance

public static SimpleTypeGeneratorFactory getInstance()

createExplicitGenerator

protected Generator<?> createExplicitGenerator(SimpleTypeDescriptor descriptor,
                                               Uniqueness uniqueness,
                                               BeneratorContext context)
Overrides:
createExplicitGenerator in class TypeGeneratorFactory<SimpleTypeDescriptor>

createSpecificGenerator

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

createValuesGenerator

protected static Generator<?> createValuesGenerator(SimpleTypeDescriptor descriptor,
                                                    Uniqueness uniqueness,
                                                    BeneratorContext context)

createPatternGenerator

protected static Generator<java.lang.String> createPatternGenerator(SimpleTypeDescriptor type,
                                                                    Uniqueness uniqueness,
                                                                    BeneratorContext context)

createConstantGenerator

protected static Generator<?> createConstantGenerator(SimpleTypeDescriptor descriptor,
                                                      BeneratorContext context)

createHeuristicGenerator

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

createSourceGenerator

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

getGeneratedType

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

createRestrictionValidator

protected static <A extends java.lang.annotation.Annotation,T> org.databene.commons.Validator<T> createRestrictionValidator(SimpleTypeDescriptor descriptor,
                                                                                                                            boolean nullable,
                                                                                                                            GeneratorFactory context)


Copyright © 2013. All Rights Reserved.