com.googlecode.jslint4java.formatter
Class ReportFormatter

java.lang.Object
  extended by com.googlecode.jslint4java.formatter.XmlFormatter
      extended by com.googlecode.jslint4java.formatter.ReportFormatter
All Implemented Interfaces:
JSLintResultFormatter

public class ReportFormatter
extends XmlFormatter
implements JSLintResultFormatter

Emit an HTML fragment containing JSLint's report on the input.


Constructor Summary
ReportFormatter()
           
 
Method Summary
 String footer()
          Return the footer for a result formatter.
 String format(JSLintResult result)
          Convert JSLintResult into a suitably formatted String representation.
 String header()
          Return the header for a result formatter.
protected  String root()
          The name of the root element.
 
Methods inherited from class com.googlecode.jslint4java.formatter.XmlFormatter
attr, escape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportFormatter

public ReportFormatter()
Method Detail

footer

public String footer()
Description copied from interface: JSLintResultFormatter
Return the footer for a result formatter. If no footer is required, null will be returned.

Specified by:
footer in interface JSLintResultFormatter
Overrides:
footer in class XmlFormatter

format

public String format(JSLintResult result)
Description copied from interface: JSLintResultFormatter
Convert JSLintResult into a suitably formatted String representation.

Specified by:
format in interface JSLintResultFormatter

header

public String header()
Description copied from interface: JSLintResultFormatter
Return the header for a result formatter. If no header is required, null will be returned.

Specified by:
header in interface JSLintResultFormatter
Overrides:
header in class XmlFormatter

root

protected String root()
Description copied from class: XmlFormatter
The name of the root element.

Specified by:
root in class XmlFormatter


Copyright © 2007-2012. All Rights Reserved.