Class ZestExpressionEquals

    • Constructor Detail

      • ZestExpressionEquals

        public ZestExpressionEquals()
        Instantiates a new zest expression regex.
      • ZestExpressionEquals

        public ZestExpressionEquals​(String variableName,
                                    String regex)
        Instantiates a new zest expression regex.
        Parameters:
        variableName - the variableName
        regex - the regex
      • ZestExpressionEquals

        public ZestExpressionEquals​(String variableName,
                                    String value,
                                    boolean caseExact,
                                    boolean inverse)
        Instantiates a new zest expression regex.
        Parameters:
        variableName - the variableName
        value - the value
        caseExact - the case exact
        inverse - the inverse
    • Method Detail

      • isTrue

        public boolean isTrue​(ZestRuntime runtime)
        Description copied from interface: ZestExpressionElement
        the boolean value result of the expression without inverse flag.
        Parameters:
        runtime - the runtime
        Returns:
        the boolean value of the expression without inverse flag
      • getVariableName

        public String getVariableName()
        Gets the variable name.
        Returns:
        the variable name
      • setVariableName

        public void setVariableName​(String variableName)
        Sets the variable name.
        Parameters:
        variableName - the new variable name
      • getValue

        public String getValue()
        Gets the value.
        Returns:
        the value
      • setValue

        public void setValue​(String value)
        Sets the value.
        Parameters:
        value - the new value
      • isCaseExact

        public boolean isCaseExact()
        Checks if is case exact.
        Returns:
        true, if is case exact
      • setCaseExact

        public void setCaseExact​(boolean caseExact)
        Sets the case exact.
        Parameters:
        caseExact - the new case exact