Package org.pentaho.reporting.libraries.formula

Examples of org.pentaho.reporting.libraries.formula.ErrorValue


    {
      return value;
    }
    else if (value instanceof ErrorValue)
    {
      final ErrorValue errorValue = (ErrorValue) value;
      if (result != null)
      {
        result.addError(entry.getName(),
            new ValidationMessage(Messages.getInstance().formatMessage
                ("FormulaParameterEvaluator.PostProcessingFormulaFailed",
                    errorValue.getErrorMessage(Locale.getDefault()))));
      }
      // if the value is a hard error, we return <null> instead of the default value.
      // This way, a mandatory parameter will not continue in case of eval-errors.
      return null;
    }
View Full Code Here


      final Object value = parameters.getValue(0);

      if (ErrorType.TYPE.equals(type) && value instanceof ErrorValue)
      {
        logger.warn ("Passing errors around is deprecated. Throw exceptions instead.");
        final ErrorValue na = (ErrorValue) value;
        if (na.getErrorCode() == LibFormulaErrorValue.ERROR_NA)
        {
          return RETURN_FALSE;
        }
        else
        {
View Full Code Here

      type = parameters.getType(0);
      value = parameters.getValue(0);
      if (ErrorType.TYPE.equals(type) && value instanceof ErrorValue)
      {
        logger.warn("Passing errors around is deprecated. Throw exceptions instead.");
        final ErrorValue na = (ErrorValue) value;
        if (na.getErrorCode() == LibFormulaErrorValue.ERROR_NA)
        {
          nafound = true;
        }
      }
      else
View Full Code Here

      final Object value = parameters.getValue(0);

      if (ErrorType.TYPE.equals(type) && value instanceof ErrorValue)
      {
        logger.warn ("Passing errors around is deprecated. Throw exceptions instead.");
        final ErrorValue na = (ErrorValue) value;
        if (na.getErrorCode() == LibFormulaErrorValue.ERROR_NA)
        {
          return RETURN_TRUE;
        }
      }
      else
View Full Code Here

    {
      return value;
    }
    else if (value instanceof ErrorValue)
    {
      final ErrorValue errorValue = (ErrorValue) value;
      if (result != null)
      {
        result.addError(entry.getName(),
            new ValidationMessage(Messages.getInstance().formatMessage
                ("FormulaParameterEvaluator.PostProcessingFormulaFailed",
                    errorValue.getErrorMessage(Locale.getDefault()))));
      }
      // if the value is a hard error, we return <null> instead of the default value.
      // This way, a mandatory parameter will not continue in case of eval-errors.
      return null;
    }
View Full Code Here

      final Object value = parameters.getValue(0);

      if (ErrorType.TYPE.equals(type) && value instanceof ErrorValue)
      {
        logger.warn ("Passing errors around is deprecated. Throw exceptions instead.");
        final ErrorValue na = (ErrorValue) value;
        if (na.getErrorCode() == LibFormulaErrorValue.ERROR_NA)
        {
          return RETURN_FALSE;
        }
        else
        {
View Full Code Here

      final Object value = parameters.getValue(0);

      if (ErrorType.TYPE.equals(type) && value instanceof ErrorValue)
      {
        logger.warn ("Passing errors around is deprecated. Throw exceptions instead.");
        final ErrorValue na = (ErrorValue) value;
        if (na.getErrorCode() == LibFormulaErrorValue.ERROR_NA)
        {
          return RETURN_TRUE;
        }
      }
      else
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.formula.ErrorValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.