|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.reports.XMLReportRenderer
This renderer generates an XML report from analyzers results. Each analysis is serialized in XML format according to the class of its result.
The report returned by render()
is an XML document of class
Document
wrapped in a
XMLReport
.
Constructor Summary | |
XMLReportRenderer(RendererDefinition definition,
LAAnalyzer[] analyzers)
Creates a new report for specified analyzers. |
Method Summary | |
protected org.w3c.dom.Document |
createNewXMLDocument()
Creates a new XML document. |
java.lang.String |
getName()
Returns the name of the analyzer. |
LAReport[] |
render()
Render the report. |
protected void |
renderAnalysis(org.w3c.dom.Document report,
LAAnalysis analysis)
Empty method to avoid loops on unsupported analysis. |
protected void |
renderAnalysis(org.w3c.dom.Document report,
MultiValuesAnalysis analysis)
Renders a multi values result. |
protected void |
renderAnalysis(org.w3c.dom.Document report,
SingleValueAnalysis analysis)
Renders a key values result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLReportRenderer(RendererDefinition definition, LAAnalyzer[] analyzers)
definition
- Renderer definition.analyzers
- Analyzers to include in the report.Method Detail |
protected org.w3c.dom.Document createNewXMLDocument() throws ReportException
The new XML document has a root node as :
<analyzer:report class="analyzerClassName"/>.
and children as :
<analyzer:report class="analyzerClassName"/>.
The children of each analyzer node are specific to the analyzer result
class (see LAAnalysis
).
AnalyzerException
- If anay parsing error.
ReportException
public java.lang.String getName()
getName
in interface LAReportRenderer
LAReportRenderer.getName()
public LAReport[] render() throws ReportException
XMLReport
wrapping a XML
Document
representation of all anlyzers results.
render
in interface LAReportRenderer
ReportException
LAReportRenderer.render()
protected void renderAnalysis(org.w3c.dom.Document report, LAAnalysis analysis)
report
- Report.analysis
- Analyze to render.protected void renderAnalysis(org.w3c.dom.Document report, SingleValueAnalysis analysis)
<analyzerName label="analyzer.getLabel()"> <item valueName="value[1]">key[1]</item> <item valueName="value[2]">key[2]</item> ... </analyzerName>
report
- Report.analysis
- Analyze to render.protected void renderAnalysis(org.w3c.dom.Document report, MultiValuesAnalysis analysis)
<analyzerName label="analyzer.getLabel()"> <item valueName1="value1[1]" valueName2="value2[1]" ...>key[1]</item> <item valueName1="value1[2]" valueName2="value2[2]" ...>key[2]</item> ... </analyzerName>
report
- Report.analysis
- Analyze to render.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |