Class StandardComponentRuleResultProcessor
- java.lang.Object
- 
- com._1c.g5.aef2.standard.definitions.rules.StandardComponentRuleResultProcessor
 
- 
- All Implemented Interfaces:
- IRuleResultProcessor
 - Direct Known Subclasses:
- AdoptedObjectRuleResultProcessor
 
 public class StandardComponentRuleResultProcessor extends Object implements IRuleResultProcessor The rule result processor forStandardComponents.
 It processes theComponentRuleTargets instances from the rule result and disables/enables the entire components.
- 
- 
Constructor SummaryConstructors Constructor Description StandardComponentRuleResultProcessor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.
 
- 
- 
- 
Method Detail- 
needCreateComponentpublic boolean needCreateComponent(IDefinition definition, IRuleResult ruleResult) Description 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.
 
 - 
isRefreshRequiredpublic boolean isRefreshRequired(IRuleResult oldResult, IRuleResult newResult) Description 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.
 
 - 
createMatchingRuleTargetprotected IRuleTarget createMatchingRuleTarget(IDefinition definition) Creates 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.
 
 
- 
 
-