public class JRMapCollectionDataSource extends Object implements JRRewindableDataSource
Constructor and Description |
---|
JRMapCollectionDataSource(Collection<Map<String,?>> col) |
Modifier and Type | Method and Description |
---|---|
JRMapCollectionDataSource |
cloneDataSource()
Clones this data source by creating a new instance that reuses the same
underlying map collection.
|
Collection<Map<String,?>> |
getData()
Returns the underlying map collection 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 JRMapCollectionDataSource(Collection<Map<String,?>> col)
public boolean next()
JRDataSource
next
in interface JRDataSource
public Object getFieldValue(JRField field)
JRDataSource
getFieldValue
in interface JRDataSource
public void moveFirst()
JRRewindableDataSource
moveFirst
in interface JRRewindableDataSource
public Collection<Map<String,?>> getData()
public int getRecordCount()
public JRMapCollectionDataSource cloneDataSource()
Copyright © 2021 TIBCO Software Inc.. All rights reserved.