org.databene.benerator.factory
Class SimpleTypeGeneratorFactory
java.lang.Object
org.databene.benerator.factory.TypeGeneratorFactory<SimpleTypeDescriptor>
org.databene.benerator.factory.SimpleTypeGeneratorFactory
public class SimpleTypeGeneratorFactory
- extends TypeGeneratorFactory<SimpleTypeDescriptor>
Creates generators of simple types.
- Author:
- Volker Bergmann
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 |
SimpleTypeGeneratorFactory
protected SimpleTypeGeneratorFactory()
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.