Interface DRIValueFormatter<T,U>

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractValueFormatter, BooleanTextValueFormatter

public interface DRIValueFormatter<T,U> extends Serializable
The purpose of this expression is to format a value only.
For instance, when it is necessary to display a currency next to the value or just show a value in another format.
It can be applied in any report column, group, subtotal, or text field component.
Author:
Ricardo Mariaca
  • Method Summary

    Modifier and Type
    Method
    Description
    format(U value, ReportParameters reportParameters)
    Evaluates the format expression.
    getValueClass.
  • Method Details

    • format

      T format(U value, ReportParameters reportParameters)
      Evaluates the format expression.
      Parameters:
      value - the value to be formatted
      reportParameters - access to report fields, variables, parameters, expressions, and other report values
      Returns:
      the formatted value
    • getValueClass

      Class<T> getValueClass()

      getValueClass.

      Returns:
      a Class object.