|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.darrt.ant.FormatterElement
A wrapper over a formatter for events reported by Darrt Schema tasks.
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 |
public FormatterElement()
Method Detail |
public void setType(FormatterElement.TypeAttribute type)
At the moment, there are three supported standard formatters.
xml
type uses a XmlFormatter
.
html
type uses a HtmlFormatter
.
plain
type (the default)
uses a PlainFormatter
.
Sets classname
attribute - so you can't use that
attribute if you use this one.
public void setClassname(java.lang.String classname)
This class must implement JUnitResultFormatter
public java.lang.String getClassname()
public void setExtension(java.lang.String ext)
public java.lang.String getExtension()
public void setOutputfile(java.lang.String out)
Set the file which the formatter should log to.
Note that logging to file must be enabled .
public java.io.Writer getOutputWriter() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |