Class AbstractReportXmlFormatter<T>
java.lang.Object
ro.isdc.wro.extensions.support.lint.AbstractReportXmlFormatter<T>
- Direct Known Subclasses:
ReportXmlFormatter
Builds an XML report for lint errors based on provided collection of
LinterError's.- Since:
- 1.5.0
- Author:
- Alex Objelean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidPopulates document with required DOM elements.protected final Documentprotected final LintReport<T>final voidwrite(OutputStream outputStream)
-
Constructor Details
-
AbstractReportXmlFormatter
- Parameters:
lintReport- a not null collection ofLinterErrorused to build an XML report from.
-
-
Method Details
-
write
- Parameters:
outputStream- theOutputStreamwhere the xml representation of the report is written.
-
buildDocument
protected abstract void buildDocument()Populates document with required DOM elements. -
getLintReport
- Returns:
LintReportused to build the xml lint report from.
-
getDocument
- Returns:
- the
Documentused to build xml report.
-