net.sf.jasperreports.engine.data
Class JRBeanArrayDataSource

java.lang.Object
  extended bynet.sf.jasperreports.engine.data.JRAbstractBeanDataSource
      extended bynet.sf.jasperreports.engine.data.JRBeanArrayDataSource
All Implemented Interfaces:
JRDataSource, JRRewindableDataSource

public class JRBeanArrayDataSource
extends JRAbstractBeanDataSource

Version:
$Id: JRBeanArrayDataSource.java,v 1.16 2005/07/10 09:49:03 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
 
Fields inherited from class net.sf.jasperreports.engine.data.JRAbstractBeanDataSource
propertyNameProvider
 
Constructor Summary
JRBeanArrayDataSource(java.lang.Object[] beanArray)
           
JRBeanArrayDataSource(java.lang.Object[] beanArray, boolean isUseFieldDescription)
           
 
Method Summary
 java.lang.Object getFieldValue(JRField field)
          Gets the field value for the current position.
 void moveFirst()
          Moves back to the first element in the data source.
 boolean next()
          Tries to position the cursor on the next element in the data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRBeanArrayDataSource

public JRBeanArrayDataSource(java.lang.Object[] beanArray)

JRBeanArrayDataSource

public JRBeanArrayDataSource(java.lang.Object[] beanArray,
                             boolean isUseFieldDescription)
Method Detail

next

public boolean next()
Description copied from interface: JRDataSource
Tries to position the cursor on the next element in the data source.

Returns:
true if there is a next record, false otherwise

getFieldValue

public java.lang.Object getFieldValue(JRField field)
                               throws JRException
Description copied from interface: JRDataSource
Gets the field value for the current position.

Returns:
an object containing the field value. The object type must be the field object type.
Throws:
JRException

moveFirst

public void moveFirst()
Description copied from interface: JRRewindableDataSource
Moves back to the first element in the data source.



© 2001-2005 JasperSoft Corporation www.jaspersoft.com