T - Class of the objects affected by the load.public class LoaderResult<T extends Serializable> extends Object implements Serializable
ValidationMessages, list of
objects affected by the load, and so on.| Modifier and Type | Class and Description |
|---|---|
static class |
LoaderResult.ImportFileStatistics
Utility class for file import statistics.
|
| Constructor and Description |
|---|
LoaderResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAffected(T object)
Adds an object affected by the load to this report
|
void |
addMessage(ValidationMessage message)
Adds the message to the report
|
void |
addResult(LoaderResult<T> result)
Appends the content of the given result to this one.
|
Iterable<T> |
getAffected()
Returns objects that were affected by the load.
|
List<ValidationMessage> |
getErrors() |
DSHeader |
getHeader()
Returns the header information.
|
int |
getHeaderIndex()
Returns the index of the header.
|
LoaderResult.ImportFileStatistics |
getImportFileStatistic() |
List<ValidationMessage> |
getMessages() |
boolean |
isError() |
void |
setHeader(DSHeader header) |
void |
setHeaderIndex(int headerIndex) |
void |
setImportFileStatistic(LoaderResult.ImportFileStatistics importFileStatistic)
Set import file statistic.
|
String |
toString() |
public List<ValidationMessage> getMessages()
public List<ValidationMessage> getErrors()
public boolean isError()
public void addMessage(ValidationMessage message)
message - the message to addpublic void addAffected(T object)
object - the affected objectpublic void addResult(LoaderResult<T> result)
result - the result to appendpublic Iterable<T> getAffected()
public DSHeader getHeader()
public void setHeader(DSHeader header)
header - the header informationpublic int getHeaderIndex()
public void setHeaderIndex(int headerIndex)
headerIndex - the index of the headerpublic LoaderResult.ImportFileStatistics getImportFileStatistic()
public void setImportFileStatistic(LoaderResult.ImportFileStatistics importFileStatistic)
importFileStatistic - import file statisticCopyright © 2025 European Spallation Source. All rights reserved.