Interface IRuleResultProcessor
- 
- All Known Implementing Classes:
- AdoptedObjectRuleResultProcessor,- CompositeRuleResultProcessor,- StandardComponentRuleResultProcessor
 
 public interface IRuleResultProcessorThe rule result processor interface.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRefreshRequired(IRuleResult oldResult, IRuleResult newResult)Returnstrueif the processor cannot update enablement or visibility and the entire component refresh is required.booleanneedCreateComponent(IDefinition componentDefinition, IRuleResult ruleResult)Returnstrueif the component should be created by thecomponentDefinitionfor the givenruleResult.voidprocess(IComponent<?> component, IDefinition componentDefinition, IRuleResult oldRuleResult, IRuleResult newRuleResult)Processes the givenoldRuleResultandnewRuleResultfor the specifiedcomponentand correspondingcomponentDefinition.
 
- 
- 
- 
Method Detail- 
needCreateComponentboolean needCreateComponent(IDefinition componentDefinition, IRuleResult ruleResult) Returnstrueif the component should be created by thecomponentDefinitionfor the givenruleResult.- Parameters:
- componentDefinition- 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.
 
 - 
isRefreshRequiredboolean isRefreshRequired(IRuleResult oldResult, IRuleResult newResult) Returnstrueif the processor cannot update enablement or visibility and the entire component refresh is required.- 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.
 
 - 
processvoid process(IComponent<?> component, IDefinition componentDefinition, IRuleResult oldRuleResult, IRuleResult newRuleResult) Processes the givenoldRuleResultandnewRuleResultfor the specifiedcomponentand correspondingcomponentDefinition.- Parameters:
- component- the component, cannot be- null.
- componentDefinition- 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.
 
 
- 
 
-