Class CompositeRuleResultProcessor
java.lang.Object
com._1c.g5.aef2.standard.definitions.rules.CompositeRuleResultProcessor
- All Implemented Interfaces:
IRuleResultProcessor
The composite rule result processor. Accumulates all
IRuleResultProcessor
instances registered within a
"com._1c.g5.aef2.standard.definitions.ruleResultProcessor" extension point.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
INSTANCE
-
-
Method Details
-
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
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
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.
-