org.hackystat.projectbrowser.page.dailyprojectdata.commit
Class CommitDataModel

java.lang.Object
  extended by org.hackystat.projectbrowser.page.dailyprojectdata.commit.CommitDataModel
All Implemented Interfaces:
java.io.Serializable

public class CommitDataModel
extends java.lang.Object
implements java.io.Serializable

The data model for Commit DPD display. This data model accommodates multiple Projects. For each project, the data model indicates the members in the Project along with the commit and churn information for the given day.

Author:
Philip Johnson
See Also:
Serialized Form

Constructor Summary
CommitDataModel()
          The default CommitDataModel, which contains no commit information.
 
Method Summary
 void clear()
          Sets this model to its empty state.
 CommitData getCommitData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
          Return the CommitData instance associated with the specified project.
 java.util.List<CommitData> getCommitDataList()
          Returns the list of CommitData instances, needed for markup.
 boolean isEmpty()
          Returns true if this data model contains no information.
 void update()
          Updates this data model to reflect the build information associated with the selected projects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitDataModel

public CommitDataModel()
The default CommitDataModel, which contains no commit information.

Method Detail

update

public void update()
Updates this data model to reflect the build information associated with the selected projects.


clear

public void clear()
Sets this model to its empty state.


isEmpty

public boolean isEmpty()
Returns true if this data model contains no information. Used to figure out if the associated panel should be visible.

Returns:
True if the data model is empty.

getCommitData

public CommitData getCommitData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
Return the CommitData instance associated with the specified project. Creates and returns a new CommitData instance if one is not yet present.

Parameters:
project - The project.
Returns:
The CommitData instance for this project.

getCommitDataList

public java.util.List<CommitData> getCommitDataList()
Returns the list of CommitData instances, needed for markup.

Returns:
The list of CommitData instances.