Interface IRestrictionEvaluationContext

    • Method Detail

      • setValue

        void setValue​(IVariable variable,
                      Version version)
               throws RestrictionEvaluationException
        Defines the value for the given variable in this context. May imply that the given variable is added to the context if adequate.
        Parameters:
        variable - the variable to be defined
        version - the actual value
        Throws:
        RestrictionEvaluationException - in case that setting the variable fails, e.g., due to type conflicts
      • unsetValue

        void unsetValue​(IVariable variable)
                 throws RestrictionEvaluationException
        Unsets the value for the given variable. May imply that the variable is removed from the context if adequate.
        Parameters:
        variable - the variable to be unset
        Throws:
        RestrictionEvaluationException - in case that setting the variable fails, e.g., due to type conflicts
      • endEvaluation

        void endEvaluation​(java.lang.Object processor)
                    throws RestrictionEvaluationException
        Notifies the context about the end of the evaluation.
        Parameters:
        processor - the evaluation processor for release
        Throws:
        RestrictionEvaluationException - in case that a sub context cannot be removed