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 SummaryConstructors
- 
Method SummaryModifier 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- 
StandardComponentRuleResultProcessorpublic StandardComponentRuleResultProcessor()
 
- 
- 
Method Details- 
needCreateComponentDescription copied from interface:IRuleResultProcessorReturnstrueif the component should be created by thecomponentDefinitionfor the givenruleResult.- Specified by:
- needCreateComponentin interface- IRuleResultProcessor
- Parameters:
- definition- the component definition, cannot be- null.
- ruleResult- the- IRuleResultinstance, cannot be- null.
- Returns:
- trueif the component should be created by the- componentDefinitionfor the given- ruleResult.
 
- 
processpublic void process(IComponent<?> component, IDefinition definition, IRuleResult oldRuleResult, IRuleResult newRuleResult) Description copied from interface:IRuleResultProcessorProcesses the givenoldRuleResultandnewRuleResultfor the specifiedcomponentand correspondingcomponentDefinition.- Specified by:
- processin interface- IRuleResultProcessor
- Parameters:
- component- the component, cannot be- null.
- definition- the definition of the component, cannot be- null.
- oldRuleResult- the old rule result to process, cannot be- null
- newRuleResult- the new rule result to process, cannot be- null.
 
- 
isRefreshRequiredDescription copied from interface:IRuleResultProcessorReturnstrueif the processor cannot update enablement or visibility and the entire component refresh is required.- Specified by:
- isRefreshRequiredin interface- IRuleResultProcessor
- Parameters:
- oldResult- the old result, cannot be- null.
- newResult- the new result, cannot be- null.
- Returns:
- trueif the processor cannot update enablement or visibility and the entire component refresh is required.
 
- 
createMatchingRuleTargetCreates and returns the rule target that will be used to find the match in the rule results.- Parameters:
- definition- the definition, cannot be- null.
- Returns:
- a newly created rule target.
 
 
-