Interface IRuleResultProcessor

    • Method Detail

      • needCreateComponent

        boolean needCreateComponent​(IDefinition componentDefinition,
                                    IRuleResult ruleResult)
        Returns true if the component should be created by the componentDefinition for the given ruleResult.
        Parameters:
        componentDefinition - the component definition, cannot be null.
        ruleResult - the IRuleResult instance, cannot be null.
        Returns:
        true if the component should be created by the componentDefinition for the given ruleResult.
      • isRefreshRequired

        boolean isRefreshRequired​(IRuleResult oldResult,
                                  IRuleResult newResult)
        Returns true if 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:
        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 given oldRuleResult and newRuleResult for the specified component and corresponding componentDefinition.
        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.