X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fanalyze%2FAnalysis.java;h=66c0b8850cea2102f5502295bd4ac8219f00d983;hp=f61d44dbabf4db52d869a7d81b47ded8b69a802d;hb=538190e8467a555615fbaf1ada3eed44631e10b4;hpb=358d80a86ac7c79cd57b81a4f1708da80db2f0ec diff --git a/prod/net/jaekl/cfb/analyze/Analysis.java b/prod/net/jaekl/cfb/analyze/Analysis.java index f61d44d..66c0b88 100644 --- a/prod/net/jaekl/cfb/analyze/Analysis.java +++ b/prod/net/jaekl/cfb/analyze/Analysis.java @@ -17,12 +17,14 @@ import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; public class Analysis { + long m_id; BugCollection m_bugCollection; String m_buildNumber; Date m_start; // Date/time when analysis was started Date m_end; public Analysis(String buildNumber) { + m_id = (-1); m_bugCollection = null; m_buildNumber = buildNumber; m_start = new Date(); @@ -30,9 +32,15 @@ public class Analysis { } public BugCollection getBugCollection() { return m_bugCollection; } + public long getId() { return m_id; } public String getBuildNumber() { return m_buildNumber; } public Date getStart() { return m_start; } - public Date getEnd() { return m_end; } + public Date getEnd() { return m_end; } // the end time (when FindBugs was done analyzing) + + public void setBugCollection(BugCollection bugs) { m_bugCollection = bugs; } + public void setId(long id) { m_id = id; } + public void setStart(Date start) { m_start = start; } + public void setEnd(Date date) { m_end = date; } public void parse(InputSource xml) throws FileNotFoundException, IOException, SAXException { @@ -46,11 +54,6 @@ public class Analysis { reader.parse(xml); } - // Set the end time (when FindBugs was done analyzing) - public void setEnd(Date date) - { - m_end = date; - } public void dump(PrintWriter pw) {