Back to project page clinicalguide.
The source code is released under:
Apache License
If you think the Android project clinicalguide listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.get.oxicam.clinicalguide.xml; /*from w w w .j av a 2 s. c o m*/ import java.util.ArrayList; import org.get.oxicam.clinicalguide.xml.stats.Stats; import org.get.oxicam.clinicalguide.xml.stats.AbstractStatsQuestion; import android.content.Context; public class StatsGenerator { private Context mActivity; private Stats stats; public StatsGenerator(Context context, Stats stats) { mActivity = context; this.stats = stats; } public String getStatsString() { String retVal = stats.name + "\n"; ArrayList<AbstractStatsQuestion> statsQArr = stats.questions; int qLen = statsQArr.size(); for (int j = 0; j < qLen; j++) { AbstractStatsQuestion statsQ = statsQArr.get(j); String str = statsQ.getResultAsString(); retVal += str + "\n"; } return retVal; } }