Examples of convertToText()


Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    final TypeRegistry typeRegistry = context.getTypeRegistry();

    final Type textType = parameters.getType(0);
    final Object textValue = parameters.getValue(0);

    final String text = typeRegistry.convertToText(textType, textValue);
    final int length;
    if(parameterCount == 2)
    {
      final Number lengthVal = typeRegistry.convertToNumber(parameters.getType(1), parameters.getValue(1));
      if (lengthVal.doubleValue() < 0)
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    {
      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
    }
    final TypeRegistry typeRegistry = context.getTypeRegistry();

    final String dateString = typeRegistry.convertToText(parameters.getType(0), parameters.getValue(0));
    final String pattern = typeRegistry.convertToText(parameters.getType(1), parameters.getValue(1));
    final Locale locale;
    if (parameters.getParameterCount() > 2)
    {
      final String localeText = typeRegistry.convertToText(parameters.getType(2), parameters.getValue(2));
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
    }
    final TypeRegistry typeRegistry = context.getTypeRegistry();

    final String dateString = typeRegistry.convertToText(parameters.getType(0), parameters.getValue(0));
    final String pattern = typeRegistry.convertToText(parameters.getType(1), parameters.getValue(1));
    final Locale locale;
    if (parameters.getParameterCount() > 2)
    {
      final String localeText = typeRegistry.convertToText(parameters.getType(2), parameters.getValue(2));
      if (StringUtils.isEmpty(localeText))
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    final String dateString = typeRegistry.convertToText(parameters.getType(0), parameters.getValue(0));
    final String pattern = typeRegistry.convertToText(parameters.getType(1), parameters.getValue(1));
    final Locale locale;
    if (parameters.getParameterCount() > 2)
    {
      final String localeText = typeRegistry.convertToText(parameters.getType(2), parameters.getValue(2));
      if (StringUtils.isEmpty(localeText))
      {
        locale = context.getLocalizationContext().getLocale();
      }
      else
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    }

    final TimeZone timeZone;
    if (parameters.getParameterCount() > 3)
    {
      final String timeZoneText = typeRegistry.convertToText(parameters.getType(3), parameters.getValue(3));
      timeZone = TimeZone.getTimeZone(timeZoneText);
    }
    else
    {
      timeZone = context.getLocalizationContext().getTimeZone();
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    }
    final Type type1 = parameters.getType(0);
    final Object value1 = parameters.getValue(0);
    final TypeRegistry typeRegistry = context.getTypeRegistry();

    String result = typeRegistry.convertToText(type1, value1);
    if (result == null)
    {
      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    // 0: Configuration-indicator (gives the pattern indirectly) never the pattern itself
    // 1: the report-path
    // 2: the parameter as 2d-array (name value pairs)

    final TypeRegistry typeRegistry = context.getTypeRegistry();
    final String configIndicator = typeRegistry.convertToText(parameters.getType(0), parameters.getValue(0));
    String path;
    try
    {
      path = typeRegistry.convertToText(parameters.getType(1), parameters.getValue(1));
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    final TypeRegistry typeRegistry = context.getTypeRegistry();
    final String configIndicator = typeRegistry.convertToText(parameters.getType(0), parameters.getValue(0));
    String path;
    try
    {
      path = typeRegistry.convertToText(parameters.getType(1), parameters.getValue(1));
    }
    catch (EvaluationException ee)
    {
      if (LibFormulaErrorValue.ERROR_NA_VALUE.equals(ee.getErrorValue()))
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

    if (parameters.getParameterCount() > 3)
    {
      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
    }
    final TypeRegistry typeRegistry = context.getTypeRegistry();
    final String urlText = typeRegistry.convertToText(parameters.getType(0), parameters.getValue(0));
    if (urlText == null)
    {
      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
    }
    String tabText = null;
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.typing.TypeRegistry.convertToText()

      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
    }
    String tabText = null;
    if (parameters.getParameterCount() > 1)
    {
      tabText = typeRegistry.convertToText(parameters.getType(1), parameters.getValue(1));
    }

    final ReportFormulaContext rfc = (ReportFormulaContext) context;
    if (StringUtils.isEmpty(tabText))
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.