Interface ExpressionRuntime
-
- All Known Implementing Classes:
GenericExpressionRuntime
,InlineDataRowRuntime
,LayoutExpressionRuntime
,ParameterExpressionRuntime
,WrapperExpressionRuntime
public interface ExpressionRuntime
The expression runtime encapsulates all properties of the current report processing run that might be needed to successfully evaluate an expression. The runtime grants access to the DataRow, the TableModel of the current report and the ProcessingContext.- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.pentaho.reporting.libraries.base.config.Configuration
getConfiguration()
Returns the report configuration that was used to initiate this processing run.int
getCurrentDataItem()
Returns the row number of the raw datasource that is currently accessed.int
getCurrentGroup()
int
getCurrentRow()
Returns the number of the row in padded datasource that is currently being processed.TableModel
getData()
Grants access to the tablemodel was granted using report properties, now direct.DataFactory
getDataFactory()
DataRow
getDataRow()
Returns the current data-row.DataSchema
getDataSchema()
String
getExportDescriptor()
Returns the current export descriptor as returned by the OutputProcessorMetaData object.int
getGroupStartRow(int groupIndex)
int
getGroupStartRow(String groupName)
ProcessingContext
getProcessingContext()
Returns the current processing context.ResourceBundleFactory
getResourceBundleFactory()
Returns the resource-bundle factory of current processing context.boolean
isCrosstabActive()
A flag indicating that a crosstab is actively processed.boolean
isStructuralComplexReport()
A flag indicating that this report contains crosstabs.
-
-
-
Method Detail
-
getDataRow
DataRow getDataRow()
Returns the current data-row. The datarow can be used to access the computed values of all expressions and functions and the current row in the tablemodel.- Returns:
- the data-row.
-
getDataSchema
DataSchema getDataSchema()
-
getDataFactory
DataFactory getDataFactory()
-
getConfiguration
org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
Returns the report configuration that was used to initiate this processing run.- Returns:
- the report configuration.
-
getResourceBundleFactory
ResourceBundleFactory getResourceBundleFactory()
Returns the resource-bundle factory of current processing context.- Returns:
- the current resource-bundle factory.
-
getData
TableModel getData()
Grants access to the tablemodel was granted using report properties, now direct.- Returns:
- the current tablemodel used in the report.
-
getCurrentRow
int getCurrentRow()
Returns the number of the row in padded datasource that is currently being processed. This is equal to the current report state's currentRow number.- Returns:
- the current row number.
-
getCurrentDataItem
int getCurrentDataItem()
Returns the row number of the raw datasource that is currently accessed.- Returns:
- the raw access row number.
-
getCurrentGroup
int getCurrentGroup()
-
getGroupStartRow
int getGroupStartRow(String groupName)
-
getGroupStartRow
int getGroupStartRow(int groupIndex)
-
getExportDescriptor
String getExportDescriptor()
Returns the current export descriptor as returned by the OutputProcessorMetaData object. The output descriptor is a simple string collections consisting of the following components: exportclass/type/subtype For example, the PDF export would be: pageable/pdf and the StreamHTML export would return table/html/stream- Returns:
- the export descriptor.
-
getProcessingContext
ProcessingContext getProcessingContext()
Returns the current processing context.- Returns:
- the processing context.
-
isStructuralComplexReport
boolean isStructuralComplexReport()
A flag indicating that this report contains crosstabs.- Returns:
-
isCrosstabActive
boolean isCrosstabActive()
A flag indicating that a crosstab is actively processed.- Returns:
-
-