org.enableit.db.darrt.ant
Class FormatterElement

java.lang.Object
  |
  +--org.enableit.db.darrt.ant.FormatterElement

public class FormatterElement
extends java.lang.Object

A wrapper over a formatter for events reported by Darrt Schema tasks.

See Also:
AbstractSchemaTask, XmldiffFormatter, PlainDifformatter, HtmlFormatter

Nested Class Summary
static class FormatterElement.TypeAttribute
           Enumerated attribute with the values "plain", "xml" and "html".
 
Constructor Summary
FormatterElement()
           
 
Method Summary
 java.lang.String getClassname()
          Get name of class to be used as the formatter.
 java.lang.String getExtension()
           
 java.io.Writer getOutputWriter()
           
 void setClassname(java.lang.String classname)
          Set name of class to be used as the formatter.
 void setExtension(java.lang.String ext)
           
 void setOutputfile(java.lang.String out)
           Set the file which the formatter should log to.
 void setType(FormatterElement.TypeAttribute type)
          Quick way to use a standard 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

setType

public void setType(FormatterElement.TypeAttribute type)
Quick way to use a standard formatter.

At the moment, there are three supported standard formatters.

Sets classname attribute - so you can't use that attribute if you use this one.


setClassname

public void setClassname(java.lang.String classname)
Set name of class to be used as the formatter.

This class must implement JUnitResultFormatter


getClassname

public java.lang.String getClassname()
Get name of class to be used as the formatter.


setExtension

public void setExtension(java.lang.String ext)

getExtension

public java.lang.String getExtension()

setOutputfile

public void setOutputfile(java.lang.String out)

Set the file which the formatter should log to.

Note that logging to file must be enabled .


getOutputWriter

public java.io.Writer getOutputWriter()
                               throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException


Copyright © 1999-2004 enableIT.org. All Rights Reserved.