Class CompositeRuleResultProcessor
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.CompositeRuleResultProcessor
-
- All Implemented Interfaces:
IRuleResultProcessor
public final class CompositeRuleResultProcessor extends Object implements IRuleResultProcessor
The composite rule result processor. Accumulates allIRuleResultProcessor
instances registered within a "com._1c.g5.aef2.standard.definitions.ruleResultProcessor" extension point.
-
-
Field Summary
Fields Modifier and Type Field Description static IRuleResultProcessor
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRefreshRequired(IRuleResult oldResult, IRuleResult newResult)
Returnstrue
if the processor cannot update enablement or visibility and the entire component refresh is required.boolean
needCreateComponent(IDefinition componentDefinition, IRuleResult ruleResult)
Returnstrue
if the component should be created by thecomponentDefinition
for the givenruleResult
.void
process(IComponent<?> component, IDefinition componentDefinition, IRuleResult oldRuleResult, IRuleResult newRuleResult)
Processes the givenoldRuleResult
andnewRuleResult
for the specifiedcomponent
and correspondingcomponentDefinition
.
-
-
-
Field Detail
-
INSTANCE
public static final IRuleResultProcessor INSTANCE
-
-
Method Detail
-
process
public void process(IComponent<?> component, IDefinition componentDefinition, IRuleResult oldRuleResult, IRuleResult newRuleResult)
Description copied from interface:IRuleResultProcessor
Processes the givenoldRuleResult
andnewRuleResult
for the specifiedcomponent
and correspondingcomponentDefinition
.- Specified by:
process
in interfaceIRuleResultProcessor
- Parameters:
component
- the component, cannot benull
.componentDefinition
- the definition of the component, cannot benull
.oldRuleResult
- the old rule result to process, cannot benull
newRuleResult
- the new rule result to process, cannot benull
.
-
needCreateComponent
public boolean needCreateComponent(IDefinition componentDefinition, IRuleResult ruleResult)
Description copied from interface:IRuleResultProcessor
Returnstrue
if the component should be created by thecomponentDefinition
for the givenruleResult
.- Specified by:
needCreateComponent
in interfaceIRuleResultProcessor
- Parameters:
componentDefinition
- the component definition, cannot benull
.ruleResult
- theIRuleResult
instance, cannot benull
.- Returns:
true
if the component should be created by thecomponentDefinition
for the givenruleResult
.
-
isRefreshRequired
public boolean isRefreshRequired(IRuleResult oldResult, IRuleResult newResult)
Description copied from interface:IRuleResultProcessor
Returnstrue
if the processor cannot update enablement or visibility and the entire component refresh is required.- Specified by:
isRefreshRequired
in interfaceIRuleResultProcessor
- Parameters:
oldResult
- the old result, cannot benull
.newResult
- the new result, cannot benull
.- Returns:
true
if the processor cannot update enablement or visibility and the entire component refresh is required.
-
-