net.sourceforge.sqlunit.ant
Class ReporterElement

java.lang.Object
  extended by net.sourceforge.sqlunit.ant.ReporterElement

public class ReporterElement
extends java.lang.Object

Handles the nested <reporter> tag of SQLUnit Ant task.

Author:
Ivan Ivanov

Nested Class Summary
static class ReporterElement.LogFormatAttribute
          Defines the valid values for logformat attribute.
 
Field Summary
static java.lang.String CANOO_REPORTER_CLASSNAME
          The class name of the CanooWebTest reporter.
static java.lang.String DEFAULT_REPORTER_CLASSNAME
          The class name of the default reporter.
 
Constructor Summary
ReporterElement()
           
 
Method Summary
 IReporter createReporter()
          Creates a new IReporter that corresponds to the current ReporterElement.
 java.lang.String getClassName()
          Returns the class name of the reporter.
 java.lang.String getFile()
          Returns the name of the file that will store the output.
 void setClassName(java.lang.String className)
          Sets the class name of the reporter.
 void setFile(java.lang.String file)
          Sets the name of the output file.
 void setLogFormat(ReporterElement.LogFormatAttribute format)
          Sets the format of the reporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REPORTER_CLASSNAME

public static final java.lang.String DEFAULT_REPORTER_CLASSNAME
The class name of the default reporter.

See Also:
Constant Field Values

CANOO_REPORTER_CLASSNAME

public static final java.lang.String CANOO_REPORTER_CLASSNAME
The class name of the CanooWebTest reporter.

See Also:
Constant Field Values
Constructor Detail

ReporterElement

public ReporterElement()
Method Detail

getClassName

public java.lang.String getClassName()
Returns the class name of the reporter.

Returns:
the class name of the reporter
See Also:
setClassName(String)

setClassName

public void setClassName(java.lang.String className)
Sets the class name of the reporter.

Parameters:
className - the class name of the reporter.
See Also:
getClassName()

getFile

public java.lang.String getFile()
Returns the name of the file that will store the output.

Returns:
the name of the file that will store the output
See Also:
setFile(String)

setFile

public void setFile(java.lang.String file)
Sets the name of the output file.

Parameters:
file - the name of the output file
See Also:
getFile()

setLogFormat

public void setLogFormat(ReporterElement.LogFormatAttribute format)
Sets the format of the reporter.

Parameters:
format - the type of the reporter

createReporter

public IReporter createReporter()
                         throws org.apache.tools.ant.BuildException
Creates a new IReporter that corresponds to the current ReporterElement.

Returns:
IReporter that belongs to the class specified in the ReporterElement and with the specified logfile.
Throws:
org.apache.tools.ant.BuildException - if an exception is raised