Package org.teiid.query.report
Class ActivityReport<R extends ReportItem>
- java.lang.Object
-
- org.teiid.query.report.ActivityReport<R>
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ValidatorReport
public class ActivityReport<R extends ReportItem> extends Object implements Serializable
A report holds the output of some activity. The report collects information during the activity, such as failures or successes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityReport(String reportType)
Construct new report of given type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(R item)
Add a new item to the report.void
addItems(Collection<R> items)
Add a new collection of items to the report.Collection<R>
getItems()
String
getReportType()
Get type of report.boolean
hasItems()
String
toString()
-
-
-
Constructor Detail
-
ActivityReport
public ActivityReport(String reportType)
Construct new report of given type- Parameters:
reportType
- Type of report
-
-
Method Detail
-
getReportType
public String getReportType()
Get type of report.- Returns:
- Type of report
-
addItem
public void addItem(R item)
Add a new item to the report.- Parameters:
item
- Item being added
-
addItems
public void addItems(Collection<R> items)
Add a new collection of items to the report.- Parameters:
items
- Items being added
-
hasItems
public boolean hasItems()
-
getItems
public Collection<R> getItems()
-
-