public class JRMapArrayDataSource extends Object implements JRRewindableDataSource
| Constructor and Description |
|---|
JRMapArrayDataSource(Object[] array) |
| Modifier and Type | Method and Description |
|---|---|
JRMapArrayDataSource |
cloneDataSource()
Clones this data source by creating a new instance that reuses the same
underlying map array.
|
Object[] |
getData()
Returns the underlying map array used by this data source.
|
Object |
getFieldValue(JRField field)
Gets the field value for the current position.
|
int |
getRecordCount()
Returns the total number of records/maps that this data source
contains.
|
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.
|
public JRMapArrayDataSource(Object[] array)
public boolean next()
JRDataSourcenext in interface JRDataSourcepublic Object getFieldValue(JRField field)
JRDataSourcegetFieldValue in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSourcepublic Object[] getData()
public int getRecordCount()
public JRMapArrayDataSource cloneDataSource()
Copyright © 2017. All rights reserved.