Class StandardComponentRuleResultProcessor
java.lang.Object
com._1c.g5.aef2.standard.definitions.rules.StandardComponentRuleResultProcessor
- All Implemented Interfaces:
IRuleResultProcessor
- Direct Known Subclasses:
AdoptedObjectRuleResultProcessor
The rule result processor for
It processes the
StandardComponents.It processes the
ComponentRuleTargets instances from the rule result and disables/enables the entire
components.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IRuleTargetcreateMatchingRuleTarget(IDefinition definition) Creates and returns the rule target that will be used to find the match in the rule results.booleanisRefreshRequired(IRuleResult oldResult, IRuleResult newResult) Returnstrueif the processor cannot update enablement or visibility and the entire component refresh is required.booleanneedCreateComponent(IDefinition definition, IRuleResult ruleResult) Returnstrueif the component should be created by thecomponentDefinitionfor the givenruleResult.voidprocess(IComponent<?> component, IDefinition definition, IRuleResult oldRuleResult, IRuleResult newRuleResult) Processes the givenoldRuleResultandnewRuleResultfor the specifiedcomponentand correspondingcomponentDefinition.
-
Constructor Details
-
StandardComponentRuleResultProcessor
public StandardComponentRuleResultProcessor()
-
-
Method Details
-
needCreateComponent
Description copied from interface:IRuleResultProcessorReturnstrueif the component should be created by thecomponentDefinitionfor the givenruleResult.- Specified by:
needCreateComponentin interfaceIRuleResultProcessor- Parameters:
definition- the component definition, cannot benull.ruleResult- theIRuleResultinstance, cannot benull.- Returns:
trueif the component should be created by thecomponentDefinitionfor the givenruleResult.
-
process
public void process(IComponent<?> component, IDefinition definition, IRuleResult oldRuleResult, IRuleResult newRuleResult) Description copied from interface:IRuleResultProcessorProcesses the givenoldRuleResultandnewRuleResultfor the specifiedcomponentand correspondingcomponentDefinition.- Specified by:
processin interfaceIRuleResultProcessor- Parameters:
component- the component, cannot benull.definition- the definition of the component, cannot benull.oldRuleResult- the old rule result to process, cannot benullnewRuleResult- the new rule result to process, cannot benull.
-
isRefreshRequired
Description copied from interface:IRuleResultProcessorReturnstrueif the processor cannot update enablement or visibility and the entire component refresh is required.- Specified by:
isRefreshRequiredin interfaceIRuleResultProcessor- Parameters:
oldResult- the old result, cannot benull.newResult- the new result, cannot benull.- Returns:
trueif the processor cannot update enablement or visibility and the entire component refresh is required.
-
createMatchingRuleTarget
Creates and returns the rule target that will be used to find the match in the rule results.- Parameters:
definition- the definition, cannot benull.- Returns:
- a newly created rule target.
-