public class ResourceSource extends ArraySource
| Constructor and Description |
|---|
ResourceSource(String sourceName,
ResourceBundle bundle) |
ResourceSource(String sourceName,
String baseName)
Gets a resource bundle as data source.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumns()
Returns an array of supported columns.
|
Object |
getData(int index) |
Object |
getData(String column)
Return the object at the specified column.
|
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.
|
getLineIdentifier, hasNext, next, reset, validateStategetSourceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getData, resetpublic ResourceSource(String sourceName, String baseName)
sourceName - the name of the sourcebaseName - the base name of the resource bundle.NullPointerException - if baseName is
nullMissingResourceException - if no resource bundle for the
specified base name can be foundpublic ResourceSource(String sourceName, ResourceBundle bundle)
public Object getData(String column)
DataSourcecolumn - the location where the object resides.public Object getData(int index) throws IllegalSourceStateException
IllegalSourceStateExceptionpublic boolean setData(String column, Object value) throws Exception
DataSourcecolumn - the location where the object should be stored.value - the object to store.Exceptionpublic boolean setData(int index,
Object value)
DataSourceindex - the location where the object should be stored.value - the object to store.public String[] getColumns()
DataSourceCopyright © 2015. All rights reserved.