Package org.jfree.formula.lvalues

Examples of org.jfree.formula.lvalues.TypeValuePair


    {
      throw new EvaluationException(
          LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
    }

    return new TypeValuePair(NumberType.GENERIC_NUMBER, new Integer(res));
  }
View Full Code Here


    final LocalizationContext localizationContext = context
        .getLocalizationContext();
    final java.sql.Date date = DateUtil.createDate(n1.intValue(),
        n2.intValue(), n3.intValue(), localizationContext);

    return new TypeValuePair(DateTimeType.DATE_TYPE, date);
  }
View Full Code Here

    final TypeRegistry typeRegistry = context.getTypeRegistry();
    final Type type = parameters.getType(0);
    final Object value = parameters.getValue(0);

    final Date date1 = typeRegistry.convertToDate(type, value);
    return new TypeValuePair(DateTimeType.DATE_TYPE, date1);

  }
View Full Code Here

    if(s < 1)
    {
      s = 1;
    }
    final MidFunction function = new MidFunction();
    return new TypeValuePair(TextType.TYPE, function.process(text, new Integer(s), new Integer(length)));
  }
View Full Code Here

    final Calendar gc = DateUtil.createCalendar(d, context
        .getLocalizationContext());

    final int month = gc.get(Calendar.MONTH) + 1;
    return new TypeValuePair(NumberType.GENERIC_NUMBER, new Integer(month));
  }
View Full Code Here

    final Calendar gc = DateUtil.createCalendar(d, context
        .getLocalizationContext());

    final int dayOfMonth = gc
            .get(Calendar.DAY_OF_MONTH);
    return new TypeValuePair(NumberType.GENERIC_NUMBER, new Integer(dayOfMonth));
  }
View Full Code Here

    else
    {
      trimmedResult = b.toString();
    }

    return new TypeValuePair(TextType.TYPE, trimmedResult);
  }
View Full Code Here

    }
    try
    {
      if (encodingResult == null)
      {
        return new TypeValuePair
            (TextType.TYPE, URLEncoder.encode(textResult, "ISO-8859-1"));
      }
      return new TypeValuePair
          (TextType.TYPE, URLEncoder.encode(textResult, encodingResult));

    }
    catch(UnsupportedEncodingException use)
    {
View Full Code Here

    if(result == null)
    {
      throw new EvaluationException(LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
    }

    return new TypeValuePair(NumberType.GENERIC_NUMBER, new BigDecimal(result.length()));
  }
View Full Code Here

    final LocalizationContext localizationContext = context
        .getLocalizationContext();
    final Time time = DateUtil.createTime(hours, minutes, seconds,
        localizationContext);

    return new TypeValuePair(DateTimeType.TIME_TYPE, time);
  }
View Full Code Here

TOP

Related Classes of org.jfree.formula.lvalues.TypeValuePair

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.