|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.DataSourceResults
public class DataSourceResults
Holds the results from the createDataSource call.
| Constructor Summary | |
|---|---|
DataSourceResults()
Default bean constructor; does nothing |
|
DataSourceResults(DataSource dataSource,
Object definingObject)
Create a DataSourceResults for the given parameters |
|
DataSourceResults(Object failedDefiningObject,
Throwable exc)
Create a DataSourceResults from the failed parameters. |
|
| Method Summary | |
|---|---|
void |
addFailed(Object definingObject,
Throwable exception)
Add a failed defining object and the failure exception to the lists. |
void |
addSuccess(DataSource dataSource,
Object definingObject)
Add a successful result to the lists |
boolean |
allFailed()
See if all the results were failures. |
boolean |
allOk()
See if all the results were okay. |
boolean |
anyFailed()
See if there were any failures. |
boolean |
anyOk()
See if there were any successes. |
List |
getDataSources()
Get the list of successfully created DataSources |
List |
getExceptions()
Get the list of failure exceptions. |
List |
getFailedData()
Get the list of failed data. |
List |
getSuccessData()
Get the list of successful defining objects. |
void |
merge(DataSourceResults results)
Merge the results of another DataSourceResults to this one |
String |
toString()
Get a String representation of this DataSourceResults. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceResults()
public DataSourceResults(DataSource dataSource,
Object definingObject)
dataSource - the DataSourcedefiningObject - the defining object for that source
public DataSourceResults(Object failedDefiningObject,
Throwable exc)
failedDefiningObject - defining object for failureexc - failed exception| Method Detail |
|---|
public void merge(DataSourceResults results)
results - other results.public List getDataSources()
public List getSuccessData()
public List getExceptions()
public List getFailedData()
public boolean anyFailed()
public boolean anyOk()
public boolean allFailed()
public boolean allOk()
public void addSuccess(DataSource dataSource,
Object definingObject)
dataSource - successfully created DataSourcedefiningObject - the defining object for dataSource.
public void addFailed(Object definingObject,
Throwable exception)
definingObject - defining object for the DataSourceexception - failure exceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||