EmmaXmlReportParser

public class EmmaXmlReportParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.EmmaXmlReportParser


Helper class used to parse the Emma code coverage xml report for the summary.

Summary

Fields

Map<String, String[]> mDataMetrics

Map<String, String> mSummaryMetrics

Public constructors

EmmaXmlReportParser()

Public methods

static String getAttributeValue(Element element, String attrName)

Return the value of an attribute in an element or null if the attribute is not found.

Map<String, String[]> getDataMetrics()
Map<String, String> getSummaryMetrics()
void parseXmlFile(File XMLfile)

Fields

mDataMetrics

Map<String, String[]> mDataMetrics

mSummaryMetrics

Map<String, String> mSummaryMetrics

Public constructors

EmmaXmlReportParser

EmmaXmlReportParser ()

Public methods

getAttributeValue

String getAttributeValue (Element element, 
                String attrName)

Return the value of an attribute in an element or null if the attribute is not found.

Parameters
element Element: Element whose attribute is looked for
attrName String: String name of attribute to look for
Returns
String the attribute value

getDataMetrics

Map<String, String[]> getDataMetrics ()

Returns
Map<String, String[]>

getSummaryMetrics

Map<String, String> getSummaryMetrics ()

Returns
Map<String, String>

parseXmlFile

void parseXmlFile (File XMLfile)

Parameters
XMLfile File