|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ch.elca.dependency.report.Report
Report is a façade to the ch.elca.dependency.report
package. Use it to create, format and output Reports on a analyzed
Project. As the constructor of this class has no public access, use
the ReportManager.createReport() method to get an Instance of this
class.
ReportManager,
ReportHandler,
ReportFormatter,
ReportInfo,
ch.elca.dependency.rawmodel.RawModel,
DependencyModel| Constructor Summary | |
Report()
Creates a new Report instance. |
|
Report(DependencyModel dependencyModel)
Creates a new Report instance ant initializes it
with the specified DependencyModel and RawModel. |
|
| Method Summary | |
void |
addReportInfo(java.lang.Class reportInfoClass)
Add a ReportInfo Object specified by its class to
this Report. |
void |
addReportInfo(java.lang.String reportInfoClassName)
Add a ReportInfo Object specified by its fully
qualified classname to this Report. |
java.lang.String |
formatReport()
Format this report. |
java.lang.String |
formatReport(ReportFormatter reportFormatter)
Format this report with the specified ReportFormatter. |
void |
initReport(DependencyModel dependencyModel)
Init this Report with a DependencyModel and a
RawModel. |
void |
outputReport()
Output this report. |
void |
outputReport(ch.elca.dependency.report.ReportHandler reportHandler)
Output this report with the specified ReportHandler. |
void |
outputReport(java.lang.String report)
Output the specified report. |
void |
outputReport(java.lang.String report,
ch.elca.dependency.report.ReportHandler reportHandler)
Output the specified report with the specified ReportHandler. |
void |
reinitReport()
Reinitialize this Report. |
void |
setOutputFile(java.lang.String filename)
Set the filename of the File the Reportt will be written into. |
void |
setReportFormatter(ReportFormatter reportFormatter)
Set ReportFormatter which will be used to format
reports. |
void |
setReportFormatter(java.lang.String reportFormatterClassName)
Set ReportFormatter which will be used to format
reports (use the ReportFormatter's fully Qualified class name
to do so). |
void |
setReportHandler(ch.elca.dependency.report.ReportHandler reportHandler)
Set ReportHandler which will be used to output the
formatted Report. |
void |
setReportHandler(java.lang.String reportHandlerClassName)
Set ReportHandler which will be used to output the
formatted Report (use to ReportHandler's fully qualified name
to do so). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Report()
Report instance.
public Report(DependencyModel dependencyModel)
Report instance ant initializes it
with the specified DependencyModel and RawModel.
| Method Detail |
public void initReport(DependencyModel dependencyModel)
DependencyModel and a
RawModel.
public void reinitReport()
public void setReportFormatter(java.lang.String reportFormatterClassName)
throws ReportException
ReportFormatter which will be used to format
reports (use the ReportFormatter's fully Qualified class name
to do so). This method will be used mainly by the jakarta
Digester during the construction of this Report.
reportFormatterClassName - a String value
ReportException - if an error occurspublic void setReportFormatter(ReportFormatter reportFormatter)
ReportFormatter which will be used to format
reports.
reportFormatter - a ReportFormatter value
public void setReportHandler(java.lang.String reportHandlerClassName)
throws ReportException
ReportHandler which will be used to output the
formatted Report (use to ReportHandler's fully qualified name
to do so). This method will be used mainly by the jakarta
Digester during the construction of this Report.
reportHandlerClassName - a String value
ReportException - if an error occurspublic void setReportHandler(ch.elca.dependency.report.ReportHandler reportHandler)
ReportHandler which will be used to output the
formatted Report.
reportHandler - a ReportHandler valuepublic void setOutputFile(java.lang.String filename)
filename - a String valuepublic java.lang.String formatReport()
String valuepublic java.lang.String formatReport(ReportFormatter reportFormatter)
ReportFormatter.
reportFormatter - a ReportFormatter value
String value
public void outputReport()
throws ReportException
ReportException - if an error occurs
public void outputReport(ch.elca.dependency.report.ReportHandler reportHandler)
throws ReportException
ReportHandler.
reportHandler - a ReportHandler value
ReportException - if an error occurs
public void outputReport(java.lang.String report)
throws ReportException
report - a String value
ReportException - if an error occurs
public void outputReport(java.lang.String report,
ch.elca.dependency.report.ReportHandler reportHandler)
throws ReportException
ReportHandler.
report - a String valuereportHandler - a ReportHandler value
ReportException - if an error occurs
public void addReportInfo(java.lang.String reportInfoClassName)
throws ReportException
ReportInfo Object specified by its fully
qualified classname to this Report. This method will be used
mainly during the creation of this Report.
reportInfoClassName - a String value
ReportException - if an error occurs
public void addReportInfo(java.lang.Class reportInfoClass)
throws ReportException
ReportInfo Object specified by its class to
this Report.
reportInfoClass - a Class value
ReportException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||