protected Reportable createReport(final Trace trace, final ReportSettings settings) { Reportable report = null; final String format = settings.getOutputFormat(); switch (ReportFormat.parse(format)) { case PLAIN_TEXT: report = new PlainTextReport(trace, settings); break; case HTML: report = new HtmlReport(trace); break; default: throw new IllegalArgumentException( "Unable to create report with format \"" + format + "\""); } return report; }
protected Reportable createReport(final Trace trace, final ReportSettings settings) { Reportable report = null; final String format = settings.getOutputFormat(); switch (ReportFormat.parse(format)) { case PLAIN_TEXT: report = new PlainTextReport(trace, settings); break; case HTML: report = new HtmlReport(trace); break; default: throw new IllegalArgumentException( "Unable to create report with format \"" + format + "\""); } return report; }