com.metamatrix.query.report
Class ActivityReport

java.lang.Object
  extended by com.metamatrix.query.report.ActivityReport
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidatorReport

public class ActivityReport
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(ReportItem item)
          Add a new item to the report.
 void addItems(java.util.Collection items)
          Add a new collection of items to the report.
 java.util.Collection getItems()
           
 java.util.Collection getItemsByType(java.lang.String type)
           
 java.util.Collection getItemTypes()
           
 java.lang.String getReportType()
          Get type of report.
 boolean hasItems()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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(ReportItem item)
Add a new item to the report.

Parameters:
item - Item being added

addItems

public void addItems(java.util.Collection items)
Add a new collection of items to the report.

Parameters:
items - Items being added

hasItems

public boolean hasItems()

getItems

public java.util.Collection getItems()

getItemsByType

public java.util.Collection getItemsByType(java.lang.String type)

getItemTypes

public java.util.Collection getItemTypes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.