public class DataSourceCollection
extends java.lang.Object
Constructor and Description |
---|
DataSourceCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(DataSource ds)
Add a DataSource to the end of the list
|
DataSource |
get(int i)
Returns the DataSource at the designated index or null DataSource object if no more exists.
|
DataSource |
get(java.lang.String s)
Returns the DataSource object corresponding to the DataSource named
by the string.
|
DataSource |
getDataSource(java.lang.String s)
Returns the DataSource object corresponding to the DataSource named
by the string
|
DataSource |
getElementAt(int i)
Returns the DataSource at the designated index or null DataSource object if no more exists.
|
int |
indexOf(java.lang.String s)
Returns the integer index of the datasource corresponding to the
DataSource named by the string.
|
int |
indexOfName(java.lang.String s)
Returns the integer index value for the DataSource denoted by string.
|
void |
merge(DataSourceCollection dsColl)
if name exists in both collections, the new one is discarded
|
boolean |
nameExists(java.lang.String s)
Returns true if DataSource named by String is in the list
|
DataSource |
next()
returns the next DataSource object or null DataSource object if no more exists
|
void |
rewind()
Resets the index to beginning of the list
|
int |
size()
Returns the number of elements stored this DataSource collection as an integer
|
java.lang.String |
toString()
for debugging - prints the total number of datasource collections stored.
|
public DataSource next()
public DataSource getElementAt(int i)
public DataSource get(int i)
public void add(DataSource ds)
public void rewind()
public int indexOfName(java.lang.String s)
public boolean nameExists(java.lang.String s)
public int indexOf(java.lang.String s)
public DataSource getDataSource(java.lang.String s)
public DataSource get(java.lang.String s)
public int size()
public void merge(DataSourceCollection dsColl)
public java.lang.String toString()
toString
in class java.lang.Object