public class ObjectMatrixSource extends MatrixSource
| Constructor and Description |
|---|
ObjectMatrixSource(String sourceIdentifier,
Object[][] matrix,
boolean withHeaders) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData(int index) |
String |
getLineIdentifier()
Returns the line identifier.
|
boolean |
hasNext()
Return true if the data source has more rows.
|
String |
next()
Moves the data source to the next row.
|
String |
reset()
Resets the data source.
|
boolean |
setData(int index,
Object value)
Sets the specified value to the specivied column.
|
getColumns, getData, hasHeaders, setDatagetSourceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getData, resetpublic ObjectMatrixSource(String sourceIdentifier, Object[][] matrix, boolean withHeaders) throws MatrixConfigurationException
MatrixConfigurationExceptionpublic boolean hasNext()
DataSourcepublic String next()
DataSourcepublic String reset()
DataSourcepublic String getLineIdentifier() throws IllegalSourceStateException
DataSourceIllegalSourceStateException - when the method could not be called
due to the state of the source i.e. next() has not been called or this
method is not supported by the data source. when next() has not beenpublic Object getData(int index) throws IllegalSourceStateException
IllegalSourceStateExceptionpublic boolean setData(int index,
Object value)
DataSourceindex - the location where the object should be stored.value - the object to store.Copyright © 2015. All rights reserved.