|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.objectlab.qalab.exporter.QALabXMLExporter
public class QALabXMLExporter
This is the main exporter to an XML file following the QALab DTD.
| Constructor Summary | |
|---|---|
QALabXMLExporter()
|
|
| Method Summary | |
|---|---|
void |
addFileResult(int violationCount,
java.lang.String fileName)
Add a result entry for a given file name and type. |
void |
addSummary(int violationCount,
int fileCount)
Add summary details for this merger of statistics for this type. |
void |
configure(java.util.Properties properties)
For instance for the XML Exporter. |
org.w3c.dom.Document |
getDocument()
|
protected TaskLogger |
getTaskLogger()
|
boolean |
isQuiet()
|
void |
save()
Save the stats (called when the parsing of input statistics is completed). |
void |
setQuiet(boolean noLog)
if quiet is true, the merger should limit its log output. |
void |
setTaskLogger(TaskLogger task)
set the task logger, ie mechanism to log issues & debug info. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QALabXMLExporter()
| Method Detail |
|---|
public final void configure(java.util.Properties properties)
configure in interface QALabExporterproperties - the properties.QALabExporter#configure(java.util.Properties)
public final void addSummary(int violationCount,
int fileCount)
addSummary in interface QALabExporterviolationCount - total number of violations for this typefileCount - total number of files affected by this type.
public final void addFileResult(int violationCount,
java.lang.String fileName)
addFileResult in interface QALabExporterviolationCount - total number of violations for this type and file.fileName - file namenet.objectlab.qalab.interfaces.QALabExporter#addFileResult(
java.util.Date, int, java.lang.String, java.lang.String)
public final void save()
throws java.io.IOException
save in interface QALabExporterjava.io.IOException - any IO issue.QALabExporter.save()protected final TaskLogger getTaskLogger()
public final void setTaskLogger(TaskLogger task)
setTaskLogger in interface QALabExportertask - the logger to usepublic final boolean isQuiet()
public final void setQuiet(boolean noLog)
QALabExporter
setQuiet in interface QALabExporternoLog - true if no log required.public final org.w3c.dom.Document getDocument()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||