| 1 | /** |
| 2 | * BSD-style license; for more info see http://xradar.sourceforge.net/license.html |
| 3 | */ |
| 4 | package org.sourceforge.xradar.dynamics; |
| 5 | |
| 6 | /** |
| 7 | * <p>This simple POJO describs all the data required from a specific version of a project |
| 8 | * to allow the construction of the dynamics part of the xradar website. This class is |
| 9 | * pretty much the 'Report' class of the statics part (in term of conception).</p> |
| 10 | * |
| 11 | * @author rpelisse, belaran@gmail.com |
| 12 | * |
| 13 | */ |
| 14 | public class Input |
| 15 | { |
| 16 | private String previousReport; |
| 17 | private String reportToMerge; |
| 18 | private String qualityReportPath; |
| 19 | private int versionId; |
| 20 | private int daysSinceLast; |
| 21 | private String staticsRoot; |
| 22 | private String masterFinal; |
| 23 | |
| 24 | /** |
| 25 | * @return the previousReport |
| 26 | */ |
| 27 | public String getPreviousReport() { |
| 28 | return previousReport; |
| 29 | } |
| 30 | /** |
| 31 | * @param previousReport the previousReport to set |
| 32 | */ |
| 33 | public void setPreviousReport(String previousReport) { |
| 34 | this.previousReport = previousReport; |
| 35 | } |
| 36 | /** |
| 37 | * @return the reportToMerge |
| 38 | */ |
| 39 | public String getReportToMerge() { |
| 40 | return reportToMerge; |
| 41 | } |
| 42 | /** |
| 43 | * @param reportToMerge the reportToMerge to set |
| 44 | */ |
| 45 | public void setReportToMerge(String reportToMerge) { |
| 46 | this.reportToMerge = reportToMerge; |
| 47 | } |
| 48 | /** |
| 49 | * @return the qualityReportPath |
| 50 | */ |
| 51 | public String getQualityReportPath() { |
| 52 | return qualityReportPath; |
| 53 | } |
| 54 | /** |
| 55 | * @param qualityReportPath the qualityReportPath to set |
| 56 | */ |
| 57 | public void setQualityReportPath(String qualityReportPath) { |
| 58 | this.qualityReportPath = qualityReportPath; |
| 59 | } |
| 60 | /** |
| 61 | * @return the versionId |
| 62 | */ |
| 63 | public int getVersionId() { |
| 64 | return versionId; |
| 65 | } |
| 66 | /** |
| 67 | * @param versionId the versionId to set |
| 68 | */ |
| 69 | public void setVersionId(int versionId) { |
| 70 | this.versionId = versionId; |
| 71 | } |
| 72 | /** |
| 73 | * @return the daysSinceLast |
| 74 | */ |
| 75 | public int getDaysSinceLast() { |
| 76 | return daysSinceLast; |
| 77 | } |
| 78 | /** |
| 79 | * @param daysSinceLast the daysSinceLast to set |
| 80 | */ |
| 81 | public void setDaysSinceLast(int daysSinceLast) { |
| 82 | this.daysSinceLast = daysSinceLast; |
| 83 | } |
| 84 | /** |
| 85 | * @return the staticsRoot |
| 86 | */ |
| 87 | public String getStaticsRoot() { |
| 88 | return staticsRoot; |
| 89 | } |
| 90 | /** |
| 91 | * @param staticsRoot the staticsRoot to set |
| 92 | */ |
| 93 | public void setStaticsRoot(String staticsRoot) { |
| 94 | this.staticsRoot = staticsRoot; |
| 95 | } |
| 96 | /** |
| 97 | * @return the masterFinal |
| 98 | */ |
| 99 | public String getMasterFinal() { |
| 100 | return masterFinal; |
| 101 | } |
| 102 | /** |
| 103 | * @param masterFinal the masterFinal to set |
| 104 | */ |
| 105 | public void setMasterFinal(String masterFinal) { |
| 106 | this.masterFinal = masterFinal; |
| 107 | } |
| 108 | |
| 109 | @Override |
| 110 | public String toString() |
| 111 | { |
| 112 | return "PreviousReport:" + previousReport + ",QualityReportPath" + qualityReportPath + |
| 113 | ", ReportToMerge:" + reportToMerge + ", versionId:" + versionId + |
| 114 | ", DaysSinceLast" + daysSinceLast + ", StaticsRoot:" + staticsRoot + |
| 115 | ", MasterFinal" + masterFinal; |
| 116 | } |
| 117 | } |