PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/testability-explorer/src/main/java/com/google/test/metric/report/ReportModel.java

http://testability-explorer.googlecode.com/
Java | 32 lines | 20 code | 8 blank | 4 comment | 0 complexity | b006c9bd75a485b987ec97c13188df74 MD5 | raw file
 1package com.google.test.metric.report;
 2
 3import com.google.test.metric.ClassCost;
 4
 5import freemarker.template.TemplateMethodModel;
 6
 7/**
 8 * Base class for models that back reports.
 9 * @author alexeagle@google.com (Alex Eagle)
10 */
11public abstract class ReportModel {
12  private TemplateMethodModel messageBundleModel;
13  private TemplateMethodModel sourceLinker;
14
15  public void setMessageBundle(TemplateMethodModel resourceBundleModel) {
16    this.messageBundleModel = resourceBundleModel;
17  }
18
19  public void setSourceLinker(TemplateMethodModel sourceLinker) {
20    this.sourceLinker = sourceLinker;
21  }
22
23  public TemplateMethodModel getMessage() {
24    return messageBundleModel;
25  }
26
27  public TemplateMethodModel getSourceLink() {
28    return sourceLinker;
29  }
30
31  public abstract void addClassCost(ClassCost classCost);
32}