Class SetupDefinitionBuilder<R extends AbstractDefinition,T extends SetupDefinitionBuilder<R,T,B>,B extends AbstractBuilder<?,B>>
- java.lang.Object
- 
- com._1c.g5.aef2.standard.definitions.builders.AbstractBuilder<R,T>
- 
- com._1c.g5.aef2.standard.definitions.builders.SetupDefinitionBuilder<R,T,B>
 
 
- 
- Type Parameters:
- R- the definition type.
- T- the type of the builder.
- B- the type of builder that is returned after this builder ends setup.
 - Direct Known Subclasses:
- DtSetupDefinitionBuilder
 
 public class SetupDefinitionBuilder<R extends AbstractDefinition,T extends SetupDefinitionBuilder<R,T,B>,B extends AbstractBuilder<?,B>> extends AbstractBuilder<R,T> The definition builder that allows to setup the given definition instance.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedSetupDefinitionBuilder(Supplier<R> provider, B builder)Initializes a builder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R extends AbstractDefinition,B extends AbstractBuilder<?,B>>
 SetupDefinitionBuilder<R,?,B>builder(Supplier<R> definitionProvider, B builder)Creates a new builder instance.Tcomponent(Class<? extends IComponent> componentClass, IParameterization parameterization)Sets the class of component and corresponding parameterization.TcomponentFactory(IComponentFactory factory)Sets a factory that will be used to directly obtain a component.BendSetup()Ends the setup of the definition.TlayoutData(IAefLayoutData layoutData)Sets the layout data object.TmodelFactory(IModelFactory modelFactory)Sets the model factory.- 
Methods inherited from class com._1c.g5.aef2.standard.definitions.builders.AbstractBuilderapply, build, self
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static <R extends AbstractDefinition,B extends AbstractBuilder<?,B>> SetupDefinitionBuilder<R,?,B> builder(Supplier<R> definitionProvider, B builder) Creates a new builder instance.- Parameters:
- definitionProvider- the provider of definition to setup, cannot be- null.
- builder- a builder that is returned after this builder ends setup.
- Returns:
- the builder instance.
 
 - 
layoutDatapublic T layoutData(IAefLayoutData layoutData) Sets the layout data object.- Parameters:
- layoutData- the layout data.
- Returns:
- the builder instance.
 
 - 
modelFactorypublic T modelFactory(IModelFactory modelFactory) Sets the model factory.- Parameters:
- modelFactory- the model factory instance.
- Returns:
- the builder instance.
 
 - 
componentpublic T component(Class<? extends IComponent> componentClass, IParameterization parameterization) Sets the class of component and corresponding parameterization.- Parameters:
- componentClass- the class of component.
- Returns:
- the builder instance.
 
 - 
componentFactorypublic T componentFactory(IComponentFactory factory) Sets a factory that will be used to directly obtain a component.- Parameters:
- factory- the factory
- Returns:
- this
 
 - 
endSetuppublic B endSetup() Ends the setup of the definition.- Returns:
- the original builder.
 
 
- 
 
-