Interface RawDataSource

    • Method Detail

      • getRawValue

        Object getRawValue​(ExpressionRuntime runtime,
                           ReportElement element)
        Returns the unformated raw value. Whether that raw value is useable for the export is beyond the scope of this API definition, but providing access to Number or Date objects is a good idea.
        Parameters:
        runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
        element -
        Returns:
        the raw data.
      • getFormatString

        FormatSpecification getFormatString​(ExpressionRuntime runtime,
                                            ReportElement element,
                                            FormatSpecification formatSpecification)
        Returns information about the formatstring that was used to transform a raw-value into a formatted text. Not all elements will make use of a format-string. These elements will return .classic.core.filter.FormatSpecification#TYPE_UNDEFINED in that case.
        Parameters:
        runtime - the Expression runtime used to possibly compute the raw-value.
        element - the element to which this datasource is added.
        formatSpecification - the format specification (can be null). @return a filled format specififcation. If the formatSpecification parameter was not null, this given instance is reused.