Class AbstractReportXmlFormatter<T>

java.lang.Object
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 Details

    • AbstractReportXmlFormatter

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

    • 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.