????
| Current Path : /opt/ant/manual/api/org/apache/tools/ant/taskdefs/optional/junit/ |
| Current File : //opt/ant/manual/api/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Tue May 22 06:24:53 CEST 2012 -->
<title>FormatterElement (Apache Ant API)</title>
<meta name="date" content="2012-05-22">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FormatterElement (Apache Ant API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.TestInfos.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.TypeAttribute.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html" target="_top">Frames</a></li>
<li><a href="FormatterElement.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.tools.ant.taskdefs.optional.junit</div>
<h2 title="Class FormatterElement" class="title">Class FormatterElement</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.tools.ant.taskdefs.optional.junit.FormatterElement</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">FormatterElement</span>
extends java.lang.Object</pre>
<div class="block"><p> A wrapper for the implementations of <code>JUnitResultFormatter</code>.
In particular, used as a nested <code><formatter></code> element in
a <code><junit></code> task.
<p> For example,
<code><pre>
<junit printsummary="no" haltonfailure="yes" fork="false">
<formatter type="plain" usefile="false" />
<test name="org.apache.ecs.InternationalCharTest" />
</junit></pre></code>
adds a <code>plain</code> type implementation
(<code>PlainJUnitResultFormatter</code>) to display the results of the test.
<p> Either the <code>type</code> or the <code>classname</code> attribute
must be set.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>JUnitTask</code></a>,
<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>XMLJUnitResultFormatter</code></a>,
<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>BriefJUnitResultFormatter</code></a>,
<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>PlainJUnitResultFormatter</code></a>,
<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>FailureRecorder</code></a>,
<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitResultFormatter.html" title="interface in org.apache.tools.ant.taskdefs.optional.junit"><code>JUnitResultFormatter</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.TypeAttribute.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">FormatterElement.TypeAttribute</a></strong></code>
<div class="block"> Enumerated attribute with the values "plain", "xml", "brief" and "failure".</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#BRIEF_FORMATTER_CLASS_NAME">BRIEF_FORMATTER_CLASS_NAME</a></strong></code>
<div class="block">brief formatter class</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#FAILURE_RECORDER_CLASS_NAME">FAILURE_RECORDER_CLASS_NAME</a></strong></code>
<div class="block">failure recorder class</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#PLAIN_FORMATTER_CLASS_NAME">PLAIN_FORMATTER_CLASS_NAME</a></strong></code>
<div class="block">plain formatter class</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#XML_FORMATTER_CLASS_NAME">XML_FORMATTER_CLASS_NAME</a></strong></code>
<div class="block">xml formatter class</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#FormatterElement()">FormatterElement</a></strong>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#getClassname()">getClassname</a></strong>()</code>
<div class="block">Get name of class to be used as the formatter.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#getExtension()">getExtension</a></strong>()</code>
<div class="block">Get the extension used for the report file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setClassname(java.lang.String)">setClassname</a></strong>(java.lang.String classname)</code>
<div class="block"> Set name of class to be used as the formatter.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setExtension(java.lang.String)">setExtension</a></strong>(java.lang.String ext)</code>
<div class="block">Set the extension to use for the report file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setIf(java.lang.Object)">setIf</a></strong>(java.lang.Object ifCond)</code>
<div class="block">Set whether this formatter should be used.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setIf(java.lang.String)">setIf</a></strong>(java.lang.String ifCond)</code>
<div class="block">Set whether this formatter should be used.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setOutput(java.io.OutputStream)">setOutput</a></strong>(java.io.OutputStream out)</code>
<div class="block"> Set output stream for formatter to use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setProject(org.apache.tools.ant.Project)">setProject</a></strong>(<a href="../../../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</a> project)</code>
<div class="block">Store the project reference for passing it to nested components.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setType(org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.TypeAttribute)">setType</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.TypeAttribute.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">FormatterElement.TypeAttribute</a> type)</code>
<div class="block"> Quick way to use a standard formatter.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setUnless(java.lang.Object)">setUnless</a></strong>(java.lang.Object unlessCond)</code>
<div class="block">Set whether this formatter should NOT be used.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setUnless(java.lang.String)">setUnless</a></strong>(java.lang.String unlessCond)</code>
<div class="block">Set whether this formatter should NOT be used.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#setUseFile(boolean)">setUseFile</a></strong>(boolean useFile)</code>
<div class="block">Set whether the formatter should log to file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html#shouldUse(org.apache.tools.ant.Task)">shouldUse</a></strong>(<a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a> t)</code>
<div class="block">Ensures that the selector passes the conditions placed
on it with <code>if</code> and <code>unless</code> properties.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="XML_FORMATTER_CLASS_NAME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XML_FORMATTER_CLASS_NAME</h4>
<pre>public static final java.lang.String XML_FORMATTER_CLASS_NAME</pre>
<div class="block">xml formatter class</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.XML_FORMATTER_CLASS_NAME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="BRIEF_FORMATTER_CLASS_NAME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BRIEF_FORMATTER_CLASS_NAME</h4>
<pre>public static final java.lang.String BRIEF_FORMATTER_CLASS_NAME</pre>
<div class="block">brief formatter class</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.BRIEF_FORMATTER_CLASS_NAME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PLAIN_FORMATTER_CLASS_NAME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAIN_FORMATTER_CLASS_NAME</h4>
<pre>public static final java.lang.String PLAIN_FORMATTER_CLASS_NAME</pre>
<div class="block">plain formatter class</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.PLAIN_FORMATTER_CLASS_NAME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FAILURE_RECORDER_CLASS_NAME">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FAILURE_RECORDER_CLASS_NAME</h4>
<pre>public static final java.lang.String FAILURE_RECORDER_CLASS_NAME</pre>
<div class="block">failure recorder class</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.FAILURE_RECORDER_CLASS_NAME">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="FormatterElement()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FormatterElement</h4>
<pre>public FormatterElement()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setType(org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.TypeAttribute)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setType</h4>
<pre>public void setType(<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.TypeAttribute.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">FormatterElement.TypeAttribute</a> type)</pre>
<div class="block"><p> Quick way to use a standard formatter.
<p> At the moment, there are three supported standard formatters.
<ul>
<li> The <code>xml</code> type uses a <code>XMLJUnitResultFormatter</code>.
<li> The <code>brief</code> type uses a <code>BriefJUnitResultFormatter</code>.
<li> The <code>plain</code> type (the default) uses a <code>PlainJUnitResultFormatter</code>.
<li> The <code>failure</code> type uses a <code>FailureRecorder</code>.
</ul>
<p> Sets <code>classname</code> attribute - so you can't use that
attribute if you use this one.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the enumerated value to use.</dd></dl>
</li>
</ul>
<a name="setClassname(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setClassname</h4>
<pre>public void setClassname(java.lang.String classname)</pre>
<div class="block"><p> Set name of class to be used as the formatter.
<p> This class must implement <code>JUnitResultFormatter</code></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>classname</code> - the name of the formatter class.</dd></dl>
</li>
</ul>
<a name="getClassname()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClassname</h4>
<pre>public java.lang.String getClassname()</pre>
<div class="block">Get name of class to be used as the formatter.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the name of the class.</dd></dl>
</li>
</ul>
<a name="setExtension(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setExtension</h4>
<pre>public void setExtension(java.lang.String ext)</pre>
<div class="block">Set the extension to use for the report file.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ext</code> - the extension to use.</dd></dl>
</li>
</ul>
<a name="getExtension()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExtension</h4>
<pre>public java.lang.String getExtension()</pre>
<div class="block">Get the extension used for the report file.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the extension.</dd></dl>
</li>
</ul>
<a name="setOutput(java.io.OutputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOutput</h4>
<pre>public void setOutput(java.io.OutputStream out)</pre>
<div class="block"><p> Set output stream for formatter to use.
<p> Defaults to standard out.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - the output stream to use.</dd></dl>
</li>
</ul>
<a name="setUseFile(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUseFile</h4>
<pre>public void setUseFile(boolean useFile)</pre>
<div class="block">Set whether the formatter should log to file.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>useFile</code> - if true use a file, if false send
to standard out.</dd></dl>
</li>
</ul>
<a name="setIf(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIf</h4>
<pre>public void setIf(java.lang.Object ifCond)</pre>
<div class="block">Set whether this formatter should be used. It will be used if
the expression evaluates to true or the name of a property
which has been set, otherwise it won't.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ifCond</code> - name of property</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setIf(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIf</h4>
<pre>public void setIf(java.lang.String ifCond)</pre>
<div class="block">Set whether this formatter should be used. It will be used if
the expression evaluates to true or the name of a property
which has been set, otherwise it won't.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ifCond</code> - name of property</dd></dl>
</li>
</ul>
<a name="setUnless(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUnless</h4>
<pre>public void setUnless(java.lang.Object unlessCond)</pre>
<div class="block">Set whether this formatter should NOT be used. It will be used
if the expression evaluates to false or the name of a property
which has not been set, orthwise it will not be used.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>unlessCond</code> - name of property</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setUnless(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUnless</h4>
<pre>public void setUnless(java.lang.String unlessCond)</pre>
<div class="block">Set whether this formatter should NOT be used. It will be used
if the expression evaluates to false or the name of a property
which has not been set, orthwise it will not be used.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>unlessCond</code> - name of property</dd></dl>
</li>
</ul>
<a name="shouldUse(org.apache.tools.ant.Task)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldUse</h4>
<pre>public boolean shouldUse(<a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a> t)</pre>
<div class="block">Ensures that the selector passes the conditions placed
on it with <code>if</code> and <code>unless</code> properties.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - the task the this formatter is used in.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the formatter should be used.</dd></dl>
</li>
</ul>
<a name="setProject(org.apache.tools.ant.Project)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setProject</h4>
<pre>public void setProject(<a href="../../../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</a> project)</pre>
<div class="block">Store the project reference for passing it to nested components.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>project</code> - the reference</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.8</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.TestInfos.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.TypeAttribute.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html" target="_top">Frames</a></li>
<li><a href="FormatterElement.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>