org.databene.benerator.factory
Class TypeGeneratorFactory<E extends TypeDescriptor>
java.lang.Object
org.databene.benerator.factory.TypeGeneratorFactory<E>
- Direct Known Subclasses:
- ArrayTypeGeneratorFactory, ComplexTypeGeneratorFactory, SimpleTypeGeneratorFactory
public abstract class TypeGeneratorFactory<E extends TypeDescriptor>
- extends java.lang.Object
Creates generators of type instances.
Created: 05.03.2008 16:51:44
- Since:
- 0.5.0
- Author:
- Volker Bergmann
Field Summary |
protected org.slf4j.Logger |
logger
|
Method Summary |
protected Generator<?> |
applyComponentBuilders(Generator<?> generator,
E descriptor,
java.lang.String instanceName,
Uniqueness uniqueness,
BeneratorContext context)
|
protected Generator<?> |
applyRootWrappers(Generator<?> generator,
E descriptor,
java.lang.String instanceName,
Uniqueness uniqueness,
BeneratorContext context)
|
static org.databene.commons.Converter<?,?> |
createConverter(SimpleTypeDescriptor descriptor,
java.lang.Class<?> sourceType)
|
static Generator<?> |
createConvertingGenerator(TypeDescriptor descriptor,
Generator generator,
BeneratorContext context)
|
protected Generator<?> |
createExplicitGenerator(E type,
Uniqueness uniqueness,
BeneratorContext context)
|
Generator<?> |
createGenerator(E descriptor,
java.lang.String instanceName,
boolean nullable,
Uniqueness uniqueness,
BeneratorContext context)
|
protected abstract Generator<?> |
createHeuristicGenerator(E descriptor,
java.lang.String instanceName,
Uniqueness uniqueness,
BeneratorContext context)
|
protected Generator<?> |
createInheritedGenerator(E type,
Uniqueness uniqueness,
BeneratorContext context)
|
Generator<?> |
createRootGenerator(E descriptor,
java.lang.String instanceName,
boolean nullable,
Uniqueness uniqueness,
BeneratorContext context)
|
protected static Generator<?> |
createScriptGenerator(TypeDescriptor descriptor)
|
protected abstract Generator<?> |
createSourceGenerator(E descriptor,
Uniqueness uniqueness,
BeneratorContext context)
|
protected abstract Generator<?> |
createSpecificGenerator(E descriptor,
java.lang.String instanceName,
boolean nullable,
Uniqueness uniqueness,
BeneratorContext context)
|
protected static Generator<?> |
createValidatingGenerator(TypeDescriptor descriptor,
Generator<?> generator,
BeneratorContext context)
|
protected abstract java.lang.Class<?> |
getGeneratedType(E descriptor)
|
protected static boolean |
isFormatted(TypeDescriptor type)
|
protected boolean |
shouldNullifyEachNullable(BeneratorContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.slf4j.Logger logger
TypeGeneratorFactory
public TypeGeneratorFactory()
createGenerator
public Generator<?> createGenerator(E descriptor,
java.lang.String instanceName,
boolean nullable,
Uniqueness uniqueness,
BeneratorContext context)
createRootGenerator
public Generator<?> createRootGenerator(E descriptor,
java.lang.String instanceName,
boolean nullable,
Uniqueness uniqueness,
BeneratorContext context)
createExplicitGenerator
protected Generator<?> createExplicitGenerator(E type,
Uniqueness uniqueness,
BeneratorContext context)
getGeneratedType
protected abstract java.lang.Class<?> getGeneratedType(E descriptor)
createSourceGenerator
protected abstract Generator<?> createSourceGenerator(E descriptor,
Uniqueness uniqueness,
BeneratorContext context)
createSpecificGenerator
protected abstract Generator<?> createSpecificGenerator(E descriptor,
java.lang.String instanceName,
boolean nullable,
Uniqueness uniqueness,
BeneratorContext context)
createInheritedGenerator
protected Generator<?> createInheritedGenerator(E type,
Uniqueness uniqueness,
BeneratorContext context)
createHeuristicGenerator
protected abstract Generator<?> createHeuristicGenerator(E descriptor,
java.lang.String instanceName,
Uniqueness uniqueness,
BeneratorContext context)
applyRootWrappers
protected Generator<?> applyRootWrappers(Generator<?> generator,
E descriptor,
java.lang.String instanceName,
Uniqueness uniqueness,
BeneratorContext context)
applyComponentBuilders
protected Generator<?> applyComponentBuilders(Generator<?> generator,
E descriptor,
java.lang.String instanceName,
Uniqueness uniqueness,
BeneratorContext context)
createScriptGenerator
protected static Generator<?> createScriptGenerator(TypeDescriptor descriptor)
createValidatingGenerator
protected static Generator<?> createValidatingGenerator(TypeDescriptor descriptor,
Generator<?> generator,
BeneratorContext context)
createConvertingGenerator
public static Generator<?> createConvertingGenerator(TypeDescriptor descriptor,
Generator generator,
BeneratorContext context)
createConverter
public static org.databene.commons.Converter<?,?> createConverter(SimpleTypeDescriptor descriptor,
java.lang.Class<?> sourceType)
shouldNullifyEachNullable
protected boolean shouldNullifyEachNullable(BeneratorContext context)
isFormatted
protected static boolean isFormatted(TypeDescriptor type)
Copyright © 2013. All Rights Reserved.