net.sourceforge.buildmonitor
Class BuildReport

java.lang.Object
  extended by net.sourceforge.buildmonitor.BuildReport

public class BuildReport
extends java.lang.Object

Build report from a monitor.

Author:
sbrunot

Nested Class Summary
static class BuildReport.AgeComparator
          A comparator to use to compare BuildReport instance according to their age.
static class BuildReport.NameComparator
          A comparator to use to compare BuildReport instance according to their names.
static class BuildReport.Status
          Status of a build
 
Constructor Summary
BuildReport()
          No args constructor
BuildReport(java.lang.String theId, java.util.Date theDate, BuildReport.Status theStatus)
          Create a new instance from an id, a status and a date
 
Method Summary
 java.util.Date getDate()
          Get the date of the build
 java.lang.String getId()
          Get the id of the build
 java.lang.String getName()
          Get the name of the build
 BuildReport.Status getStatus()
          Get the status of the build
 boolean hasFailed()
          Does this build report signal a failed build ?
 void setDate(java.util.Date theDateOfTheBuild)
          Set the date of the build
 void setId(java.lang.String theIdOfTheBuild)
          Set the id of the build
 void setName(java.lang.String theName)
          Set the name of the build
 void setStatus(BuildReport.Status theStatusOfTheBuild)
          Set the status of the build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildReport

public BuildReport()
No args constructor


BuildReport

public BuildReport(java.lang.String theId,
                   java.util.Date theDate,
                   BuildReport.Status theStatus)
Create a new instance from an id, a status and a date

Parameters:
theId - the id of the build
theDate - the date of the build
theStatus - the status of the build
Method Detail

getDate

public java.util.Date getDate()
Get the date of the build

Returns:
the date of the build

setDate

public void setDate(java.util.Date theDateOfTheBuild)
Set the date of the build

Parameters:
theDateOfTheBuild - the date of the build

getId

public java.lang.String getId()
Get the id of the build

Returns:
the id of the build

setId

public void setId(java.lang.String theIdOfTheBuild)
Set the id of the build

Parameters:
theIdOfTheBuild -

getName

public java.lang.String getName()
Get the name of the build

Returns:
the name of the build

setName

public void setName(java.lang.String theName)
Set the name of the build

Parameters:
theName -

getStatus

public BuildReport.Status getStatus()
Get the status of the build

Returns:
the status of the build

setStatus

public void setStatus(BuildReport.Status theStatusOfTheBuild)
Set the status of the build

Parameters:
theStatusOfTheBuild - the statud of the build

hasFailed

public boolean hasFailed()
Does this build report signal a failed build ?

Returns:


Copyright © 2007. All Rights Reserved.