ro.isdc.wro.extensions.support.lint
Class ReportXmlFormatter
java.lang.Object
ro.isdc.wro.extensions.support.lint.AbstractReportXmlFormatter<LintItem>
ro.isdc.wro.extensions.support.lint.ReportXmlFormatter
public class ReportXmlFormatter
- extends AbstractReportXmlFormatter<LintItem>
Builds an XML report for lint errors based on provided collection of LinterError
's.
- Since:
- 1.5.0
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportXmlFormatter
protected ReportXmlFormatter(LintReport<LintItem> lintReport,
ReportXmlFormatter.FormatterType type)
- Parameters:
lintReport
- a not null collection of LinterError
used to build an XML report from.
create
public static ReportXmlFormatter create(LintReport<LintItem> lintReport,
ReportXmlFormatter.FormatterType formatterType)
- Factory method for creating
ReportXmlFormatter
.
- Parameters:
lintReport
- LintReport
to build xml reports from.
createForLinterError
public static ReportXmlFormatter createForLinterError(LintReport<LinterError> lintReport,
ReportXmlFormatter.FormatterType formatterType)
createForCssLintError
public static ReportXmlFormatter createForCssLintError(LintReport<CssLintError> lintReport,
ReportXmlFormatter.FormatterType formatterType)
buildDocument
protected void buildDocument()
- Populates document with required DOM elements.
- Specified by:
buildDocument
in class AbstractReportXmlFormatter<LintItem>
getColumnAttributeName
protected String getColumnAttributeName()
- Returns:
- the name of the attribute indicating the character number where the issue is located.
getReasonAttributeName
protected String getReasonAttributeName()
- Returns:
- the name of the attribute indicating a reason of the issue.
getIssueElementName
protected String getIssueElementName()
- Returns:
- name of tag indicating an issue.
Copyright © 2008-2013. All Rights Reserved.