com.tek42.perforce.model
Class Changelist
java.lang.Object
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
Changelist
public Changelist()
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.