public class BlackboardSource extends ArraySource
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOBAL |
static String |
LOCAL |
static String |
SHEET |
| Constructor and Description |
|---|
BlackboardSource(String identifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
declareVariable(String name) |
void |
declareVariable(String scope,
String name) |
String[] |
getColumns()
Returns an array of supported columns.
|
Object |
getData(int index) |
Object |
getData(String column)
Return the object at the specified column.
|
ObjectArraySource |
popSource() |
ObjectArraySource |
popSource(ObjectArraySource source) |
ObjectArraySource |
popSource(String scope) |
void |
pushSource(ObjectArraySource source) |
void |
pushSource(String scope) |
boolean |
setData(int index,
Object value)
Sets the specified value to the specivied column.
|
boolean |
setData(String column,
Object value)
Return the object at the specified index.
|
void |
setup() |
void |
setup(Map<String,Object> presetVariables) |
void |
teardown() |
String |
toString() |
getLineIdentifier, hasNext, next, reset, validateStategetSourceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetData, getData, resetpublic static final String LOCAL
public static final String SHEET
public static final String GLOBAL
public BlackboardSource(String identifier)
public void setup()
public void teardown()
public void pushSource(String scope)
public void pushSource(ObjectArraySource source)
public ObjectArraySource popSource()
public ObjectArraySource popSource(ObjectArraySource source) throws BlackboardException
BlackboardExceptionpublic ObjectArraySource popSource(String scope) throws BlackboardException
BlackboardExceptionpublic void declareVariable(String name) throws BlackboardException
BlackboardExceptionpublic void declareVariable(String scope, String name) throws BlackboardException
BlackboardExceptionpublic final 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 Object getData(int index) throws IllegalSourceStateException
IllegalSourceStateExceptionpublic boolean setData(String column, Object value)
DataSourcecolumn - the location where the object should be stored.value - the object to store.public boolean setData(int index,
Object value)
DataSourceindex - the location where the object should be stored.value - the object to store.public final String[] getColumns()
DataSourceCopyright © 2015. All rights reserved.