Examples of LocalizationContext


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

    {
      throw EvaluationException.getInstance(
          LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
    }

    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

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

    if (d == null)
    {
      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
    }

    final LocalizationContext localizationContext = context.getLocalizationContext();
    final Date monthend = monthend(d, localizationContext);


    final Date date = DateUtil.normalizeDate(monthend, DateTimeType.DATE_TYPE);
    return new TypeValuePair(DateTimeType.DATE_TYPE, date);
View Full Code Here

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

    }
    final int hours = n1.intValue();
    final int minutes = n2.intValue();
    final int seconds = n3.intValue();

    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
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.