net.sf.dynamicreports.report.builder.expression
Class AbstractSubDatasourceExpression<T>

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.expression.AbstractComplexExpression<net.sf.jasperreports.engine.JRDataSource>
      extended by net.sf.dynamicreports.report.builder.expression.AbstractSubDatasourceExpression<T>
All Implemented Interfaces:
Serializable, DRIComplexExpression<net.sf.jasperreports.engine.JRDataSource>, DRIExpression<net.sf.jasperreports.engine.JRDataSource>
Direct Known Subclasses:
BeanArraySubDatasourceExpression, BeanCollectionSubDatasourceExpression, MapArraySubDatasourceExpression, MapCollectionSubDatasourceExpression

public abstract class AbstractSubDatasourceExpression<T>
extends AbstractComplexExpression<net.sf.jasperreports.engine.JRDataSource>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)
See Also:
Serialized Form

Constructor Summary
protected AbstractSubDatasourceExpression(DRIExpression<? extends T> expression)
           
protected AbstractSubDatasourceExpression(String fieldName)
           
 
Method Summary
protected abstract  net.sf.jasperreports.engine.JRDataSource createSubDatasource(T data)
           
 net.sf.jasperreports.engine.JRDataSource evaluate(List<?> values, ReportParameters reportParameters)
          Evaluates the expression.
protected  Class<T> getSubDatasourceDataClass()
           
 Class<? super net.sf.jasperreports.engine.JRDataSource> getValueClass()
           
 
Methods inherited from class net.sf.dynamicreports.report.builder.expression.AbstractComplexExpression
addExpression, addExpression, addExpression, addExpression, addExpression, addExpression, addExpression, getExpressions, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSubDatasourceExpression

protected AbstractSubDatasourceExpression(String fieldName)

AbstractSubDatasourceExpression

protected AbstractSubDatasourceExpression(DRIExpression<? extends T> expression)
Method Detail

evaluate

public net.sf.jasperreports.engine.JRDataSource evaluate(List<?> values,
                                                         ReportParameters reportParameters)
Description copied from interface: DRIComplexExpression
Evaluates the expression.

Specified by:
evaluate in interface DRIComplexExpression<net.sf.jasperreports.engine.JRDataSource>
Specified by:
evaluate in class AbstractComplexExpression<net.sf.jasperreports.engine.JRDataSource>
Parameters:
values - the values of the registered expressions
reportParameters - access to report fields, variables, parameters, expressions, and other report values
Returns:
the result of the expression evaluation

getValueClass

public Class<? super net.sf.jasperreports.engine.JRDataSource> getValueClass()
Specified by:
getValueClass in interface DRIExpression<net.sf.jasperreports.engine.JRDataSource>
Overrides:
getValueClass in class AbstractComplexExpression<net.sf.jasperreports.engine.JRDataSource>

getSubDatasourceDataClass

protected Class<T> getSubDatasourceDataClass()

createSubDatasource

protected abstract net.sf.jasperreports.engine.JRDataSource createSubDatasource(T data)


Copyright © 2010-2014. All Rights Reserved.