Class ComponentBuilderFactory
- java.lang.Object
-
- com.rapiddweller.benerator.factory.InstanceGeneratorFactory
-
- com.rapiddweller.benerator.factory.ComponentBuilderFactory
-
public class ComponentBuilderFactory extends InstanceGeneratorFactory
- Author:
- Volker Bergmann
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ComponentBuilderFactory()
Instantiates a new Component builder factory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComponentBuilder<?>
createComponentBuilder(ComponentDescriptor descriptor, Uniqueness ownerUniqueness, BeneratorContext context)
Create component builder component builder.protected static ComponentBuilder<?>
createScriptBuilder(ComponentDescriptor component, BeneratorContext context)
Create script builder component builder.protected static boolean
isIndividualSelector(java.lang.String selector)
helper method to check for selectors of individual fields like "select x from y" or "{'select x from y where id=' + z}".-
Methods inherited from class com.rapiddweller.benerator.factory.InstanceGeneratorFactory
createConfiguredDefaultGenerator, createNullGenerator, createSingleInstanceGenerator
-
-
-
-
Method Detail
-
createComponentBuilder
public static ComponentBuilder<?> createComponentBuilder(ComponentDescriptor descriptor, Uniqueness ownerUniqueness, BeneratorContext context)
Create component builder component builder.- Parameters:
descriptor
- the descriptorownerUniqueness
- the owner uniquenesscontext
- the context- Returns:
- the component builder
-
createScriptBuilder
protected static ComponentBuilder<?> createScriptBuilder(ComponentDescriptor component, BeneratorContext context)
Create script builder component builder.- Parameters:
component
- the componentcontext
- the context- Returns:
- the component builder
-
isIndividualSelector
protected static boolean isIndividualSelector(java.lang.String selector)
helper method to check for selectors of individual fields like "select x from y" or "{'select x from y where id=' + z}". For such selectors it returns true, otherwise false- Parameters:
selector
- the selector- Returns:
- the boolean
-
-