org.pentaho.reporting.engine.classic.core.function
Class WrapperExpressionRuntime

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.WrapperExpressionRuntime
All Implemented Interfaces:
ExpressionRuntime

public class WrapperExpressionRuntime
extends Object
implements ExpressionRuntime


Constructor Summary
WrapperExpressionRuntime()
           
WrapperExpressionRuntime(DataRow overrideValues, ExpressionRuntime runtime)
           
 
Method Summary
 org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
          Returns the report configuration that was used to initiate this processing run.
 int getCurrentGroup()
           
 int getCurrentRow()
          Returns the number of the row in the tablemodel 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.
 void update(DataRow overrideValues, ExpressionRuntime runtime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperExpressionRuntime

public WrapperExpressionRuntime()

WrapperExpressionRuntime

public WrapperExpressionRuntime(DataRow overrideValues,
                                ExpressionRuntime runtime)
Method Detail

update

public void update(DataRow overrideValues,
                   ExpressionRuntime runtime)

getDataRow

public DataRow getDataRow()
Description copied from interface: ExpressionRuntime
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.

Specified by:
getDataRow in interface ExpressionRuntime
Returns:
the data-row.

getDataSchema

public DataSchema getDataSchema()
Specified by:
getDataSchema in interface ExpressionRuntime

getConfiguration

public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
Description copied from interface: ExpressionRuntime
Returns the report configuration that was used to initiate this processing run.

Specified by:
getConfiguration in interface ExpressionRuntime
Returns:
the report configuration.

getResourceBundleFactory

public ResourceBundleFactory getResourceBundleFactory()
Description copied from interface: ExpressionRuntime
Returns the resource-bundle factory of current processing context.

Specified by:
getResourceBundleFactory in interface ExpressionRuntime
Returns:
the current resource-bundle factory.

getData

public TableModel getData()
Description copied from interface: ExpressionRuntime
Grants access to the tablemodel was granted using report properties, now direct.

Specified by:
getData in interface ExpressionRuntime
Returns:
the current tablemodel used in the report.

getCurrentRow

public int getCurrentRow()
Description copied from interface: ExpressionRuntime
Returns the number of the row in the tablemodel that is currently being processed.

Specified by:
getCurrentRow in interface ExpressionRuntime
Returns:
the current row number.

getCurrentGroup

public int getCurrentGroup()
Specified by:
getCurrentGroup in interface ExpressionRuntime

getGroupStartRow

public int getGroupStartRow(String groupName)
Specified by:
getGroupStartRow in interface ExpressionRuntime

getGroupStartRow

public int getGroupStartRow(int groupIndex)
Specified by:
getGroupStartRow in interface ExpressionRuntime

getExportDescriptor

public String getExportDescriptor()
Description copied from interface: ExpressionRuntime
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

Specified by:
getExportDescriptor in interface ExpressionRuntime
Returns:
the export descriptor.

getProcessingContext

public ProcessingContext getProcessingContext()
Description copied from interface: ExpressionRuntime
Returns the current processing context.

Specified by:
getProcessingContext in interface ExpressionRuntime
Returns:
the processing context.

getDataFactory

public DataFactory getDataFactory()
Specified by:
getDataFactory in interface ExpressionRuntime