public abstract class MatrixSource extends AbstractSource
| Constructor and Description |
|---|
MatrixSource(String sourceIdentifier) |
MatrixSource(String sourceIdentifier,
Map<String,Integer> headers) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumns()
Returns an array of supported columns.
|
Object |
getData(String column)
Return the object at the specified column.
|
boolean |
hasHeaders() |
boolean |
setData(String column,
Object value)
Return the object at the specified index.
|
getSourceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getData, getData, getLineIdentifier, hasNext, next, reset, reset, setDatapublic MatrixSource(String sourceIdentifier)
public boolean hasHeaders()
public Object getData(String column) throws IllegalSourceStateException
DataSourcecolumn - the location where the object resides.IllegalSourceStateException - 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 boolean setData(String column, Object value) throws Exception
DataSourcecolumn - the location where the object should be stored.value - the object to store.Exceptionpublic String[] getColumns()
DataSourceCopyright © 2015. All rights reserved.