public class ValueStackDataSource extends Object implements net.sf.jasperreports.engine.JRRewindableDataSource
| Constructor and Description | 
|---|
| ValueStackDataSource(ValueStack valueStack,
                    String dataSourceParam,
                    boolean wrapField)Create a value stack data source on the given iterable property | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | getFieldValue(net.sf.jasperreports.engine.JRField field)Get the value of a given field | 
| void | moveFirst()Move to the first item. | 
| boolean | next()Is there any more data | 
public ValueStackDataSource(ValueStack valueStack, String dataSourceParam, boolean wrapField)
valueStack - The value stack to base the data source ondataSourceParam - The property to iterate over for the reportpublic Object getFieldValue(net.sf.jasperreports.engine.JRField field) throws net.sf.jasperreports.engine.JRException
getFieldValue in interface net.sf.jasperreports.engine.JRDataSourcefield - The field to get the value for. The expression language to get the value
              of the field is either taken from the description property or from the name of the field
              if the description is null.Object containing the field value or a new
         ValueStackDataSource object if the field value evaluates to
         an object that can be iterated over.net.sf.jasperreports.engine.JRException - if there is a problem obtaining the valuepublic void moveFirst()
               throws net.sf.jasperreports.engine.JRException
moveFirst in interface net.sf.jasperreports.engine.JRRewindableDataSourcenet.sf.jasperreports.engine.JRException - if there is a problem with moving to the first
                     data elementpublic boolean next()
             throws net.sf.jasperreports.engine.JRException
next in interface net.sf.jasperreports.engine.JRDataSourcetrue if there are more elements to iterate over and
         false otherwisenet.sf.jasperreports.engine.JRException - if there is a problem determining whether there
                     is more dataCopyright © 2000–2025 Apache Software Foundation. All rights reserved.