[Ts2-pm-deve] ts2-pm/ts2-pm-artifact/src/main/java/net/sf/ts2/pm/artifact/history DefaultArtifactHis
Status: Pre-Alpha
Brought to you by:
nchalumeau
From: Nicolas C. <nch...@us...> - 2005-05-13 16:42:49
|
Update of /cvsroot/ts2-pm/ts2-pm/ts2-pm-artifact/src/main/java/net/sf/ts2/pm/artifact/history In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18552 Added Files: DefaultArtifactHistory.java Log Message: basic implementation --- NEW FILE: DefaultArtifactHistory.java --- /* * Created on 11 mai 2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package net.sf.ts2.pm.artifact.history; import java.util.ArrayList; import java.util.List; import net.sf.ts2.pm.artifact.history.event.ArtifactHistoryEvent; /** * @author chalumeau */ public class DefaultArtifactHistory implements ArtifactHistory { private List events; /** * */ public DefaultArtifactHistory() { super(); events = new ArrayList(); } /** * @see net.sf.ts2.pm.artifact.history.ArtifactHistory#addEvent(net.sf.ts2.pm.artifact.history.event.ArtifactHistoryEvent) * @param event */ public void addEvent( ArtifactHistoryEvent event ) { events.add( event ); } /** * @see net.sf.ts2.pm.artifact.history.ArtifactHistory#getEvents() * @return */ public List getEvents() { return events; } /** * @see net.sf.ts2.pm.artifact.history.ArtifactHistory#loadHistory() */ public void loadHistory() { // TODO Auto-generated method stub } /** * * @param event * @return * @todo add more validation */ private boolean isValidEvent( ArtifactHistoryEvent event ) { return event != null; } } |