Class ManagingDefinitionBuilder<T extends ManagingDefinitionBuilder<T>>
java.lang.Object
com._1c.g5.aef2.standard.definitions.builders.AbstractBuilder<R,T>
com._1c.g5.aef2.standard.definitions.builders.AbstractContainerDefinitionBuilder<ManagingDefinition,T>
com._1c.g5.aef2.standard.definitions.builders.ManagingDefinitionBuilder<T>
- Direct Known Subclasses:
DtManagingDefinitionBuilder
public class ManagingDefinitionBuilder<T extends ManagingDefinitionBuilder<T>>
extends AbstractContainerDefinitionBuilder<ManagingDefinition,T>
The managing definition builder. Allows to build the tree of definitions with
the
ManagingDefinition instance as root.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the root of the builded tree of definitions.static ManagingDefinitionBuilder<?>builder()Creates a new builder instance.protected SectionDefinitionBuilder<Void,?> insertSection(Supplier<SectionDefinition> provider, Consumer<SectionDefinition> endAction) Inserts the section provided byproviderand returns the section builder instance that allows to setup section.navigateToSection(String title) Navigates to the existing section.registerRefresher(IRefresherFactory refresherFactory) Registers the specifiedrefresherFactoryin managing definition.Sets the given rule instance to managing definition.Returns the section builder instance that allows to setup section.setRuleResultProcessor(IRuleResultProcessor processor) Sets the givenIRuleResultProcessorinstance to managing definition.Methods inherited from class com._1c.g5.aef2.standard.definitions.builders.AbstractContainerDefinitionBuilder
getAndIncrementPosition, getPosition, insert, setPositionMethods inherited from class com._1c.g5.aef2.standard.definitions.builders.AbstractBuilder
apply, self
-
Constructor Details
-
ManagingDefinitionBuilder
protected ManagingDefinitionBuilder()Creates a new instance.
-
-
Method Details
-
builder
Creates a new builder instance.- Returns:
- a newly created builder, never
null.
-
rule
Sets the given rule instance to managing definition.- Parameters:
rule- the rule, cannot benull.- Returns:
- the builder instance, never
null.
-
setRuleResultProcessor
Sets the givenIRuleResultProcessorinstance to managing definition.- Parameters:
processor- theIRuleResultProcessorinstance, cannot benull.- Returns:
- the builder instance, never
null.
-
registerRefresher
Registers the specifiedrefresherFactoryin managing definition.- Parameters:
refresherFactory- theIRefresherFactory, cannot benull.- Returns:
- the builder instance, never
null.
-
section
Returns the section builder instance that allows to setup section.- Parameters:
title- the title of the section, cannot benull- Returns:
- the section builder instance, never
null.
-
build
Returns the root of the builded tree of definitions.- Overrides:
buildin classAbstractBuilder<ManagingDefinition,T extends ManagingDefinitionBuilder<T>> - Returns:
- the builded
ManagingDefinitioninstance, nevernull.
-
insertSection
protected SectionDefinitionBuilder<Void,?> insertSection(Supplier<SectionDefinition> provider, Consumer<SectionDefinition> endAction) Inserts the section provided byproviderand returns the section builder instance that allows to setup section.- Parameters:
provider- the definition provider, cannot benullendAction- the endAction the action performed the builder ends section building.- Returns:
- the section builder instance, never
null.
-