org.teiid.query.report
Class ActivityReport<R extends ReportItem>

java.lang.Object
  extended by org.teiid.query.report.ActivityReport<R>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidatorReport

public class ActivityReport<R extends ReportItem>
extends java.lang.Object
implements java.io.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
ActivityReport(java.lang.String reportType)
          Construct new report of given type
 
Method Summary
 void addItem(R item)
          Add a new item to the report.
 void addItems(java.util.Collection<R> items)
          Add a new collection of items to the report.
 java.util.Collection<R> getItems()
           
 java.lang.String getReportType()
          Get type of report.
 boolean hasItems()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityReport

public ActivityReport(java.lang.String reportType)
Construct new report of given type

Parameters:
reportType - Type of report
Method Detail

getReportType

public java.lang.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(java.util.Collection<R> items)
Add a new collection of items to the report.

Parameters:
items - Items being added

hasItems

public boolean hasItems()

getItems

public java.util.Collection<R> getItems()


Copyright © 2011. All Rights Reserved.