<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
    <property name="createdBy">Eclipse BIRT Designer Version 2.5.1.v20090827 Build &lt;2.5.1.v20090902-1647></property>
    <property name="units">in</property>
    <simple-property-list name="includeResource">
        <value>Bundles\BIRTMessages</value>
    </simple-property-list>
    <text-property name="title">Code Coverage by Selected Source</text-property>
    <property name="comments">Copyright (c) 2006, 2009 IBM Corporation. Licensed Materials - Property of IBM.
All Rights Reserved. Note to U.S. Government Users Restricted Rights:
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.</property>
    <method name="initialize"><![CDATA[function getSpanTag() {
 return "onclick = \"top.handleClick(document,this,'" + fetchRelativePath() + "')\""
      + "onmouseover=mouseOver(this)  onmouseout=mouseOut(this)" + "";
}

function fetchRelativePath() {
    pkg = parentModel.getParent();
    if(pkg.isDefaultPackage())
      numFolders = 1;
    else {
	    var packageName = parentModel.getParent().getName();
	    packageName = packageName.replace('|', '/').replace('.','/');
	   	numFolders = packageName.split("/").length;
    }
    retValue = "";
    for(i = 0; i < numFolders;i++) 
	   retValue += "../";
	return retValue; 
}]]></method>
    <property name="theme">styles.defaultTheme</property>
    <property name="layoutPreference">auto layout</property>
    <list-property name="libraries">
        <structure>
            <property name="fileName">styles.rptlibrary</property>
            <property name="namespace">styles</property>
        </structure>
    </list-property>
    <data-sources>
        <script-data-source name="Coverage Data Source" id="24"/>
    </data-sources>
    <data-sets>
        <script-data-set name="Coverage Data Set" id="25">
            <list-property name="resultSetHints">
                <structure>
                    <property name="position">1</property>
                    <property name="name">Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">2</property>
                    <property name="name">Covered_Lines</property>
                    <property name="dataType">integer</property>
                </structure>
                <structure>
                    <property name="position">3</property>
                    <property name="name">Total_Lines</property>
                    <property name="dataType">integer</property>
                </structure>
                <structure>
                    <property name="position">4</property>
                    <property name="name">Class_Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">5</property>
                    <property name="name">Source_Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">6</property>
                    <property name="name">Package_Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">7</property>
                    <property name="name">Formatted_Package_Name</property>
                    <property name="dataType">string</property>
                </structure>
            </list-property>
            <list-property name="columnHints">
                <structure>
                    <property name="columnName">Name</property>
                </structure>
                <structure>
                    <property name="columnName">Covered_Lines</property>
                </structure>
                <structure>
                    <property name="columnName">Total_Lines</property>
                </structure>
                <structure>
                    <property name="columnName">Class_Name</property>
                </structure>
                <structure>
                    <property name="columnName">Source_Name</property>
                </structure>
                <structure>
                    <property name="columnName">Package_Name</property>
                </structure>
                <structure>
                    <property name="columnName">Formatted_Package_Name</property>
                </structure>
            </list-property>
            <structure name="cachedMetaData">
                <list-property name="resultSet">
                    <structure>
                        <property name="position">1</property>
                        <property name="name">Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">2</property>
                        <property name="name">Covered_Lines</property>
                        <property name="dataType">integer</property>
                    </structure>
                    <structure>
                        <property name="position">3</property>
                        <property name="name">Total_Lines</property>
                        <property name="dataType">integer</property>
                    </structure>
                    <structure>
                        <property name="position">4</property>
                        <property name="name">Class_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">5</property>
                        <property name="name">Source_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">6</property>
                        <property name="name">Package_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">7</property>
                        <property name="name">Formatted_Package_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                </list-property>
            </structure>
            <property name="dataSource">Coverage Data Source</property>
            <method name="open"><![CDATA[importPackage(Packages.java.util);
importPackage(Packages.com.ibm.rational.llc.common.report);
importPackage(Packages.com.ibm.rational.llc.common.report.model);
importPackage(Packages.java.util.logging);

modelIterator = modelCollection.iterator();]]></method>
            <method name="fetch"><![CDATA[// Done?
//modelIterator

if ( !modelIterator.hasNext( ) ) { 
return false; 
}
// Turn the node into a data row
var infoModel = modelIterator.next( );

while(filter != null &amp;&amp; filter.isFiltered(infoModel)) {
	if(!modelIterator.hasNext())
		return false;
	infoModel = modelIterator.next( );
}

row.Name = infoModel.getName();
row.Total_Lines = infoModel.getAggregate(ICoverableElement.AGGREGATE_ALL_LINES);
row.Covered_Lines = infoModel.getAggregate(ICoverableElement.AGGREGATE_COVERED_LINES)
/ ICoverageGeneratorConstants.OVERFLOW_FACTOR;

cls = infoModel.getParent();
src = cls.getParent();
pkg = src.getParent();

row.Class_Name = cls.getName();
row.Source_Name = src.getName();
row.Package_Name = pkg.getName();
row.Formatted_Package_Name = pkg.getFormattedName();

return true;]]></method>
        </script-data-set>
        <script-data-set name="Summary Coverage Data Set" id="98">
            <list-property name="resultSetHints">
                <structure>
                    <property name="position">1</property>
                    <property name="name">Report_Date</property>
                    <property name="dataType">any</property>
                </structure>
                <structure>
                    <property name="position">2</property>
                    <property name="name">Report_Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">3</property>
                    <property name="name">Package_Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">4</property>
                    <property name="name">Source_Name</property>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="position">5</property>
                    <property name="name">Formatted_Package_Name</property>
                    <property name="dataType">string</property>
                </structure>
            </list-property>
            <list-property name="columnHints">
                <structure>
                    <property name="columnName">Report_Date</property>
                </structure>
                <structure>
                    <property name="columnName">Report_Name</property>
                </structure>
                <structure>
                    <property name="columnName">Package_Name</property>
                </structure>
                <structure>
                    <property name="columnName">Source_Name</property>
                </structure>
                <structure>
                    <property name="columnName">Formatted_Package_Name</property>
                </structure>
            </list-property>
            <structure name="cachedMetaData">
                <list-property name="resultSet">
                    <structure>
                        <property name="position">1</property>
                        <property name="name">Report_Date</property>
                        <property name="dataType">any</property>
                    </structure>
                    <structure>
                        <property name="position">2</property>
                        <property name="name">Report_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">3</property>
                        <property name="name">Package_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">4</property>
                        <property name="name">Source_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">5</property>
                        <property name="name">Formatted_Package_Name</property>
                        <property name="dataType">string</property>
                    </structure>
                </list-property>
            </structure>
            <property name="dataSource">Coverage Data Source</property>
            <method name="open"><![CDATA[importPackage(Packages.java.util);
importPackage(Packages.com.ibm.rational.llc.common.report);
importPackage(Packages.com.ibm.rational.llc.common.report.model);

modelIterator = modelCollection.iterator();
fetchedData = false;]]></method>
            <method name="fetch"><![CDATA[if(!fetchedData) {
	row["Source_Name"] = parentModel.getName();
	row["Package_Name"] = parentModel.getParent().getName();
	row["Formatted_Package_Name"] = parentModel.getParent().getFormattedName();	
	fetchedData = true;
	return true;
}
else {
	return false;
}]]></method>
        </script-data-set>
    </data-sets>
    <page-setup>
        <simple-master-page name="Simple MasterPage" id="2">
            <property name="topMargin">1in</property>
            <property name="leftMargin">1.25in</property>
            <property name="bottomMargin">1in</property>
            <property name="rightMargin">1.25in</property>
        </simple-master-page>
    </page-setup>
    <body>
        <text id="31">
            <property name="contentType">html</property>
            <text-property name="content"><![CDATA[<script src="<VALUE-OF>fetchRelativePath()</VALUE-OF>scripts/dynamic_effects.js"
type="text/javascript"></script>]]></text-property>
        </text>
        <grid id="27">
            <property name="width">100%</property>
            <column id="28">
                <property name="width">33%</property>
            </column>
            <column id="29">
                <property name="width">33%</property>
                <property name="textAlign">center</property>
            </column>
            <column id="37">
                <property name="width">33%</property>
                <property name="textAlign">right</property>
            </column>
            <row id="38">
                <property name="verticalAlign">top</property>
                <cell id="39">
                    <property name="colSpan">3</property>
                    <property name="rowSpan">1</property>
                    <text id="201">
                        <property name="contentType">html</property>
                        <text-property name="content"><![CDATA[<a name="dummy">]]></text-property>
                    </text>
                    <text id="42">
                        <property name="style">Main Heading</property>
                        <property name="contentType">html</property>
                        <text-property name="content" key="Report_Main_Heading"><![CDATA[Code Coverage Report]]></text-property>
                    </text>
                </cell>
            </row>
            <row id="177">
                <property name="height">0.25in</property>
                <cell id="178"/>
                <cell id="179"/>
                <cell id="180"/>
            </row>
            <row id="44">
                <property name="height">0.25in</property>
                <cell id="45">
                    <property name="colSpan">3</property>
                    <property name="rowSpan">1</property>
                    <text id="191">
                        <property name="style">linksHstory</property>
                        <property name="dataSet">Summary Coverage Data Set</property>
                        <list-property name="boundDataColumns">
                            <structure>
                                <property name="name">Report_Date</property>
                                <expression name="expression">dataSetRow["Report_Date"]</expression>
                                <property name="dataType">any</property>
                            </structure>
                            <structure>
                                <property name="name">Report_Name</property>
                                <expression name="expression">dataSetRow["Report_Name"]</expression>
                                <property name="dataType">string</property>
                            </structure>
                            <structure>
                                <property name="name">Package_Name</property>
                                <expression name="expression">dataSetRow["Package_Name"]</expression>
                                <property name="dataType">string</property>
                            </structure>
                            <structure>
                                <property name="name">Source_Name</property>
                                <expression name="expression">dataSetRow["Source_Name"]</expression>
                                <property name="dataType">string</property>
                            </structure>
                            <structure>
                                <property name="name">Formatted_Package_Name</property>
                                <expression name="expression">dataSetRow["Formatted_Package_Name"]</expression>
                                <property name="dataType">string</property>
                            </structure>
                        </list-property>
                        <property name="contentType">html</property>
                        <text-property name="content"><![CDATA[<A href="
<VALUE-OF>fetchRelativePath() + "package-summary.html"</VALUE-OF>" >
<VALUE-OF>reportContext.getMessage("Summary_Header_Overall_Summary", reportContext.getLocale())</VALUE-OF>
</A>
>
<A href="classes-overview.html" >
<VALUE-OF>row["Formatted_Package_Name"]</VALUE-OF>
</A>
><VALUE-OF>row["Source_Name"]</VALUE-OF>
]]></text-property>
                    </text>
                </cell>
            </row>
            <row id="192">
                <property name="height">0.25in</property>
                <cell id="193"/>
                <cell id="194"/>
                <cell id="195"/>
            </row>
        </grid>
        <table id="4">
            <property name="width">100%</property>
            <property name="dataSet">Coverage Data Set</property>
            <list-property name="boundDataColumns">
                <structure>
                    <property name="name">Name</property>
                    <expression name="expression">dataSetRow["Name"]</expression>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="name">Covered_Lines</property>
                    <expression name="expression">dataSetRow["Covered_Lines"]</expression>
                    <property name="dataType">integer</property>
                </structure>
                <structure>
                    <property name="name">Total_Lines</property>
                    <expression name="expression">dataSetRow["Total_Lines"]</expression>
                    <property name="dataType">integer</property>
                </structure>
                <structure>
                    <property name="name">Class_Name</property>
                    <expression name="expression">dataSetRow["Class_Name"]</expression>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="name">Source_Name</property>
                    <expression name="expression">dataSetRow["Source_Name"]</expression>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="name">Package_Name</property>
                    <expression name="expression">dataSetRow["Package_Name"]</expression>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="name">Formatted_Package_Name</property>
                    <expression name="expression">dataSetRow["Formatted_Package_Name"]</expression>
                    <property name="dataType">string</property>
                </structure>
                <structure>
                    <property name="name">Covered_Lines_Percentage</property>
                    <expression name="expression">if(row["Total_Lines"] == 0) {
	0;
}
else {
	Math.round(row["Covered_Lines"]/row["Total_Lines"] * 100);
}</expression>
                    <property name="dataType">decimal</property>
                </structure>
            </list-property>
            <property name="pageBreakInterval">50</property>
            <list-property name="sort">
                <structure>
                    <expression name="key">row["Covered_Lines_Percentage"]</expression>
                    <property name="direction">asc</property>
                </structure>
            </list-property>
            <column id="79">
                <property name="width">15%</property>
                <property name="style">Table-Column_Padding</property>
            </column>
            <column id="20">
                <property name="width">50%</property>
                <property name="style">Table-Column_Padding</property>
            </column>
            <column id="21">
                <property name="width">10%</property>
                <property name="style">Table-Column_Padding</property>
                <property name="textAlign">right</property>
            </column>
            <column id="22">
                <property name="width">10%</property>
                <property name="style">Table-Column_Padding</property>
                <property name="textAlign">right</property>
            </column>
            <column id="68">
                <property name="width">15%</property>
                <property name="repeat">1</property>
                <property name="style">Table-Column_Padding</property>
                <property name="textAlign">left</property>
            </column>
            <header>
                <row id="5">
                    <expression name="bookmark">"Report-Header"</expression>
                    <cell id="76">
                        <property name="style">cell-border</property>
                        <property name="paddingTop">0em</property>
                        <text id="200">
                            <property name="contentType">html</property>
                            <text-property name="content"><![CDATA[<span><VALUE-OF>reportContext.getMessage("Table_Header_Class_Name", reportContext.getLocale())</VALUE-OF></span>]]></text-property>
                        </text>
                    </cell>
                    <cell id="6">
                        <property name="style">cell-border</property>
                        <property name="paddingTop">0em</property>
                        <property name="paddingLeft">0em</property>
                        <property name="paddingBottom">0em</property>
                        <property name="paddingRight">0em</property>
                        <property name="textAlign">left</property>
                        <text id="196">
                            <property name="contentType">html</property>
                            <text-property name="content"><![CDATA[<div class="header" onkeypress = "top.checkKeystroke(document,this,'<VALUE-OF>fetchRelativePath()</VALUE-OF>', event)"><a class="header" href="#dummy" onclick="return false;">

<span "<VALUE-OF>getSpanTag()</VALUE-OF>"><VALUE-OF>reportContext.getMessage("Table_Header_Method_Name", reportContext.getLocale())</VALUE-OF></span>

</a></div>
]]></text-property>
                        </text>
                    </cell>
                    <cell id="7">
                        <property name="style">cell-border</property>
                        <property name="paddingTop">0em</property>
                        <property name="paddingLeft">0em</property>
                        <property name="paddingBottom">0em</property>
                        <property name="paddingRight">0em</property>
                        <property name="textAlign">left</property>
                        <text id="197">
                            <property name="textAlign">left</property>
                            <property name="contentType">html</property>
                            <text-property name="content"><![CDATA[<div class="header" onkeypress = "top.checkKeystroke(document,this,'<VALUE-OF>fetchRelativePath()</VALUE-OF>', event)"><a class="header" href="#dummy" onclick="return false;">

<span "<VALUE-OF>getSpanTag()</VALUE-OF>"><VALUE-OF>reportContext.getMessage("Table_Header_Covered_Lines", reportContext.getLocale())</VALUE-OF></span>

</a></div>]]></text-property>
                        </text>
                    </cell>
                    <cell id="8">
                        <property name="style">cell-border</property>
                        <property name="paddingTop">0em</property>
                        <property name="paddingLeft">0em</property>
                        <property name="paddingBottom">0em</property>
                        <property name="paddingRight">0em</property>
                        <property name="textAlign">left</property>
                        <text id="198">
                            <property name="textAlign">left</property>
                            <property name="contentType">html</property>
                            <text-property name="content"><![CDATA[<div class="header" onkeypress = "top.checkKeystroke(document,this,'<VALUE-OF>fetchRelativePath()</VALUE-OF>', event)"><a class="header" href="#dummy" onclick="return false;">

<span "<VALUE-OF>getSpanTag()</VALUE-OF>"><VALUE-OF>reportContext.getMessage("Table_Header_Total_Lines", reportContext.getLocale())</VALUE-OF></span>

</a></div>]]></text-property>
                        </text>
                    </cell>
                    <cell id="65">
                        <property name="style">cell-border</property>
                        <property name="paddingTop">0em</property>
                        <property name="paddingLeft">0em</property>
                        <property name="paddingBottom">0em</property>
                        <property name="paddingRight">0em</property>
                        <text id="199">
                            <property name="contentType">html</property>
                            <text-property name="content"><![CDATA[<div class="header" onkeypress = "top.checkKeystroke(document,this,'<VALUE-OF>fetchRelativePath()</VALUE-OF>', event)"><a class="header" href="#dummy" onclick="return false;">

<span "<VALUE-OF>getSpanTag()</VALUE-OF>"><VALUE-OF>reportContext.getMessage("Table_Header_PCoverage", reportContext.getLocale())</VALUE-OF></span>

</a></div>]]></text-property>
                        </text>
                    </cell>
                </row>
            </header>
            <group id="80">
                <property name="groupName">Class Name</property>
                <property name="interval">none</property>
                <property name="sortDirection">asc</property>
                <expression name="keyExpr">row["Class_Name"]</expression>
                <property name="repeatHeader">true</property>
                <property name="hideDetail">false</property>
                <property name="pageBreakAfter">auto</property>
                <property name="pageBreakBefore">auto</property>
                <header>
                    <row id="81">
                        <expression name="bookmark">"group-header " + row["Class_Name"]</expression>
                        <property name="style">Group-Header</property>
                        <cell id="82">
                            <property name="colSpan">5</property>
                            <property name="rowSpan">1</property>
                            <property name="style">cell-border</property>
                            <data id="100">
                                <property name="resultSetColumn">Class_Name</property>
                            </data>
                        </cell>
                    </row>
                </header>
            </group>
            <detail>
                <row id="10">
                    <list-property name="highlightRules">
                        <structure>
                            <property name="operator">eq</property>
                            <property name="backgroundColor">#E2E2E2</property>
                            <expression name="testExpr">row[0] %2</expression>
                            <simple-property-list name="value1">
                                <value>0</value>
                            </simple-property-list>
                        </structure>
                    </list-property>
                    <cell id="77">
                        <property name="style">cell-border</property>
                    </cell>
                    <cell id="11">
                        <property name="style">cell-border</property>
                        <data id="102">
                            <property name="resultSetColumn">Name</property>
                        </data>
                    </cell>
                    <cell id="12">
                        <property name="style">cell-border</property>
                        <data id="106">
                            <property name="resultSetColumn">Covered_Lines</property>
                        </data>
                    </cell>
                    <cell id="13">
                        <property name="style">cell-border</property>
                        <data id="104">
                            <property name="resultSetColumn">Total_Lines</property>
                        </data>
                    </cell>
                    <cell id="66">
                        <property name="style">bar-cell</property>
                        <text id="152">
                            <property name="style">bar</property>
                            <property name="contentType">html</property>
                            <text-property name="content"><![CDATA[<div style="width:14%;text-align:center;position:absolute;height:10px;">
<span><VALUE-OF>row["Covered_Lines_Percentage"] + "%"</VALUE-OF></span>
</div>

<div style="
<VALUE-OF>"width: " + (row["Covered_Lines_Percentage"])+ "%"</VALUE-OF>
;text-align:center;
background-color:<VALUE-OF>row["Covered_Lines_Percentage"] == 0 ? "tansparent" : "#00E200"</VALUE-OF>
">
<span>&nbsp;</span>	
</div>]]></text-property>
                        </text>
                    </cell>
                </row>
            </detail>
        </table>
    </body>
</report>
