Class BooleanEvaluator

java.lang.Object
com.nomagic.magicdraw.variants.evaluation.BooleanEvaluator
All Implemented Interfaces:
Evaluator<Boolean>

@OpenApiAll public abstract class BooleanEvaluator extends Object implements Evaluator<Boolean>
returns true or false for element that is evaluated
  • Constructor Details

    • BooleanEvaluator

      public BooleanEvaluator()
  • Method Details

    • evaluate

      public final Boolean evaluate(Element element, @CheckForNull Object currentValue)
      Description copied from interface: Evaluator
      Calculates value based on supplied model element
      Specified by:
      evaluate in interface Evaluator<Boolean>
      Parameters:
      element - model element
      currentValue - currently existing value of the value that is being re-evaluated
      Returns:
      calculated value
    • evaluate

      @CheckForNull public abstract Boolean evaluate(Element element)
      Evaluates given element
      Parameters:
      element - given element
      Returns:
      true or false. Null means failure in calculating the value