org.eclipse.actf.validation.reports
Class ValidationReportGroup

java.lang.Object
  extended by org.eclipse.actf.validation.reports.ValidationReportGroup

public class ValidationReportGroup
extends Object

a container for a set of reports

Author:
Mike Squillace

Constructor Summary
ValidationReportGroup()
           
ValidationReportGroup(ValidationReport[] reports)
           
 
Method Summary
 void addReport(ValidationReport report)
          add a report to this group
 void addReportGroupModifyListener(IReportGroupModifyListener listener)
          add a listener to be notified when reports are added to this group
 void addReports(ValidationReport[] reports)
          add the specified reports to this group
 void clear()
          clear the group of all reports
protected  void fireReportGroupModifyEvent(ReportGroupModifyEvent event)
           
 ValidationReport getReport(String id)
          retreave a validation report by its id
 ValidationReport[] getReports()
          get all reports in this group
 boolean isEmpty()
          returns whether or not this report group has reports in it
 void removeReport(ValidationReport report)
          remove a report from this group
 void removeReportGroupModifyListener(IReportGroupModifyListener listener)
          remove the listener from the list of listeners to be notified when a modification to this group takes place
 void removeReports(ValidationReport[] reports)
          remove the specified reports from this group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationReportGroup

public ValidationReportGroup()

ValidationReportGroup

public ValidationReportGroup(ValidationReport[] reports)
Method Detail

clear

public void clear()
clear the group of all reports


isEmpty

public boolean isEmpty()
returns whether or not this report group has reports in it

Returns:
true if this group is empty

addReport

public void addReport(ValidationReport report)
add a report to this group

Parameters:
report - - report to be added

addReports

public void addReports(ValidationReport[] reports)
add the specified reports to this group

Parameters:
reports - - reports to be added

removeReport

public void removeReport(ValidationReport report)
remove a report from this group

Parameters:
report - - report to be removed

removeReports

public void removeReports(ValidationReport[] reports)
remove the specified reports from this group

Parameters:
reports - - reports to be removed

getReports

public ValidationReport[] getReports()
get all reports in this group

Returns:
all reports in this group

getReport

public ValidationReport getReport(String id)
retreave a validation report by its id

Parameters:
id -
Returns:
report with given id or null if no report with the given id exists in this group

addReportGroupModifyListener

public void addReportGroupModifyListener(IReportGroupModifyListener listener)
add a listener to be notified when reports are added to this group

Parameters:
listener -

removeReportGroupModifyListener

public void removeReportGroupModifyListener(IReportGroupModifyListener listener)
remove the listener from the list of listeners to be notified when a modification to this group takes place

Parameters:
listener -

fireReportGroupModifyEvent

protected void fireReportGroupModifyEvent(ReportGroupModifyEvent event)