com.googlecode.jslint4java.ant
Class FormatterElement

java.lang.Object
  extended by com.googlecode.jslint4java.ant.FormatterElement

public class FormatterElement
extends Object

A sub element of JSLintTask. Used to specify where the output should go. Handles creation of a ResultFormatter.

Attributes

type
One of "plain," "xml", "junit" or "report".
destfile
Optional. A file to write the formatters' output to. In the case of “junit” this is mandatory and must point at a directory.

Author:
dom

Nested Class Summary
static class FormatterElement.Type
          What kind of formatters are available.
 
Constructor Summary
FormatterElement()
           
 
Method Summary
 ResultFormatter getResultFormatter()
          Return a configured ResultFormatter corresponding to this element.
 void setDestFile(File destFile)
          Specifies the location of the report file.
 void setType(FormatterElement.Type type)
          Specify the type of this formatter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatterElement

public FormatterElement()
Method Detail

getResultFormatter

public ResultFormatter getResultFormatter()
Return a configured ResultFormatter corresponding to this element.


setDestFile

public void setDestFile(File destFile)
Specifies the location of the report file.

Parameters:
destFile -

setType

public void setType(FormatterElement.Type type)
Specify the type of this formatter.

Parameters:
type -


Copyright © 2007-2012. All Rights Reserved.