Interface IRuleResultProcessor
-
- All Known Implementing Classes:
AdoptedObjectRuleResultProcessor
,CompositeRuleResultProcessor
,StandardComponentRuleResultProcessor
public interface IRuleResultProcessor
The rule result processor interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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
.
-
-
-
Method Detail
-
needCreateComponent
boolean needCreateComponent(IDefinition componentDefinition, IRuleResult ruleResult)
Returnstrue
if the component should be created by thecomponentDefinition
for the givenruleResult
.- 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
boolean isRefreshRequired(IRuleResult oldResult, IRuleResult newResult)
Returnstrue
if the processor cannot update enablement or visibility and the entire component refresh is required.- 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.
-
process
void process(IComponent<?> component, IDefinition componentDefinition, IRuleResult oldRuleResult, IRuleResult newRuleResult)
Processes the givenoldRuleResult
andnewRuleResult
for the specifiedcomponent
and correspondingcomponentDefinition
.- 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
.
-
-