ro.isdc.wro.extensions.support.lint
Class AbstractReportXmlFormatter<T>

java.lang.Object
  extended by ro.isdc.wro.extensions.support.lint.AbstractReportXmlFormatter<T>
Direct Known Subclasses:
ReportXmlFormatter

public abstract class AbstractReportXmlFormatter<T>
extends Object

Builds an XML report for lint errors based on provided collection of LinterError's.

Since:
1.5.0
Author:
Alex Objelean

Constructor Summary
protected AbstractReportXmlFormatter(LintReport<T> lintReport)
           
 
Method Summary
protected abstract  void buildDocument()
          Populates document with required DOM elements.
protected  Document getDocument()
           
protected  LintReport<T> getLintReport()
           
 void write(OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReportXmlFormatter

protected AbstractReportXmlFormatter(LintReport<T> lintReport)
Parameters:
lintReport - a not null collection of LinterError used to build an XML report from.
Method Detail

write

public final void write(OutputStream outputStream)
Parameters:
outputStream - the OutputStream where the xml representation of the report is written.

buildDocument

protected abstract void buildDocument()
Populates document with required DOM elements.


getLintReport

protected final LintReport<T> getLintReport()
Returns:
LintReport used to build the xml lint report from.

getDocument

protected final Document getDocument()
Returns:
the Document used to build xml report.


Copyright © 2008-2013. All Rights Reserved.