Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » filter » [javadoc | source]
org.jfree.report.filter
public interface: RawDataSource [javadoc | source]

All Implemented Interfaces:
    DataSource

All Known Implementing Classes:
    StringFieldTemplate, DateFieldTemplate, FormatFilter, NumberFieldTemplate, DecimalFormatFilter, StringFilter, NumberFormatFilter, SimpleDateFormatFilter, DateFormatFilter

The raw data source allows direct access to the filtered raw data. It is mainly used in the table exports, where access to Number and Date objects is a requirement.

There is no enforced requirement to implement this interface, all exports will be able to work without it. But raw datasources definitly improve the quality and value of the generated output, so it is generally a good idea to implement it.

Method from org.jfree.report.filter.RawDataSource Summary:
getFormatString,   getRawValue
Method from org.jfree.report.filter.RawDataSource Detail:
 public FormatSpecification getFormatString(ExpressionRuntime runtime,
    Element element,
    FormatSpecification formatSpecification)
 public Object getRawValue(ExpressionRuntime runtime,
    Element 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 java.util.Date objects is a good idea.