com.googlecode.jslint4java.formatter
Class JSLintXmlFormatter

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

public class JSLintXmlFormatter
extends XmlFormatter
implements JSLintResultFormatter

Convert a single JSLintResult into an XML representation.

    <file name="bad.js">
      <issue line="0" char="0" reason="Insufficient Llamas" evidence="var sheep;"/>
    </file>
    <file name="good.js"/>
 

Author:
dom

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

Constructor Detail

JSLintXmlFormatter

public JSLintXmlFormatter()
Method Detail

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

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.