com.tek42.perforce.model
Class Changelist

java.lang.Object
  extended by com.tek42.perforce.model.Changelist
All Implemented Interfaces:
Serializable

public class Changelist
extends Object
implements Serializable

Represents a changelist in Perforce.

Again Perforce fails us with an imcomplete API. Their change object does not contain a record of files or jobs attached to the change. Grr... I'm forced to create one that is more complete.

This class maps the output of p4 describe [ChangeNumber]. However, it does not contain the diffs ouput by that command. If you want those, get them yourself.

Author:
Mike Wille
See Also:
Serialized Form

Nested Class Summary
static class Changelist.FileEntry
          Perforce has multiple files per change.
static class Changelist.JobEntry
          Perforce links issues to changes via jobs.
 
Constructor Summary
Changelist()
           
 
Method Summary
 int getChangeNumber()
           
 Date getDate()
           
 String getDescription()
           
 List<Changelist.FileEntry> getFiles()
           
 List<Changelist.JobEntry> getJobs()
           
 String getUser()
           
 String getWorkspace()
           
 void setChangeNumber(int changeNumber)
           
 void setDate(Date date)
           
 void setDescription(String description)
           
 void setFiles(List<Changelist.FileEntry> files)
           
 void setJobs(List<Changelist.JobEntry> jobs)
           
 void setUser(String user)
           
 void setWorkspace(String workspace)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Changelist

public Changelist()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getChangeNumber

public int getChangeNumber()
Returns:
the changeNumber

setChangeNumber

public void setChangeNumber(int changeNumber)
Parameters:
changeNumber - the changeNumber to set

getWorkspace

public String getWorkspace()
Returns:
the workspace

setWorkspace

public void setWorkspace(String workspace)
Parameters:
workspace - the workspace to set

getDate

public Date getDate()
Returns:
the date

setDate

public void setDate(Date date)
Parameters:
date - the date to set

getUser

public String getUser()
Returns:
the user

setUser

public void setUser(String user)
Parameters:
user - the user to set

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

getFiles

public List<Changelist.FileEntry> getFiles()
Returns:
the files

setFiles

public void setFiles(List<Changelist.FileEntry> files)
Parameters:
files - the files to set

getJobs

public List<Changelist.JobEntry> getJobs()
Returns:
the jobs

setJobs

public void setJobs(List<Changelist.JobEntry> jobs)
Parameters:
jobs - the jobs to set


Copyright © 2004-2013 Hudson. All Rights Reserved.