Class BooleanEvaluator

  • All Implemented Interfaces:
    Evaluator<java.lang.Boolean>

    @OpenApiAll
    public abstract class BooleanEvaluator
    extends java.lang.Object
    implements Evaluator<java.lang.Boolean>
    returns true or false for element that is evaluated
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.Boolean evaluate​(Element element)
      Evaluates given element
      java.lang.Boolean evaluate​(Element element, java.lang.Object currentValue)
      Calculates value based on supplied model element
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BooleanEvaluator

        public BooleanEvaluator()
    • Method Detail

      • evaluate

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

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