Class FileRevisionData
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.file.FileRevisionData
-
- All Implemented Interfaces:
IFileRevisionData
public class FileRevisionData extends java.lang.Object implements IFileRevisionData
Simple default generic implementation calls for the IFileRevisionData interface.
-
-
Constructor Summary
Constructors Constructor Description FileRevisionData()
FileRevisionData(int revision, int changeListId, FileAction action, java.util.Date date, java.lang.String userName, java.lang.String fileType, java.lang.String description, java.lang.String depotFileName, java.lang.String clientName)
FileRevisionData(java.util.Map<java.lang.String,java.lang.Object> map, int revNo)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FileAction
getAction()
int
getChangelistId()
java.lang.String
getClientName()
java.util.Date
getDate()
java.lang.String
getDepotFileName()
java.lang.String
getDescription()
java.lang.String
getFileType()
int
getRevision()
java.util.List<IRevisionIntegrationData>
getRevisionIntegrationData()
Deprecated.java.util.List<IRevisionIntegrationData>
getRevisionIntegrationDataList()
This method can be used to retrieve a (possibly-empty or even null) list of contributory integration data for revisions that have resulted from (or caused) a merge or branch.java.lang.String
getUserName()
void
setAction(FileAction action)
void
setChangelistId(int changeListId)
void
setClientName(java.lang.String clientName)
void
setDate(java.util.Date date)
void
setDepotFileName(java.lang.String depotFileName)
void
setDescription(java.lang.String description)
void
setFileType(java.lang.String fileType)
void
setRevision(int revision)
void
setUserName(java.lang.String userName)
-
-
-
Constructor Detail
-
FileRevisionData
public FileRevisionData()
-
FileRevisionData
public FileRevisionData(java.util.Map<java.lang.String,java.lang.Object> map, int revNo)
-
FileRevisionData
public FileRevisionData(int revision, int changeListId, FileAction action, java.util.Date date, java.lang.String userName, java.lang.String fileType, java.lang.String description, java.lang.String depotFileName, java.lang.String clientName)
-
-
Method Detail
-
setChangelistId
public void setChangelistId(int changeListId)
-
getAction
public FileAction getAction()
- Specified by:
getAction
in interfaceIFileRevisionData
- Returns:
- the file action associated with this revision.
-
setAction
public void setAction(FileAction action)
-
getClientName
public java.lang.String getClientName()
- Specified by:
getClientName
in interfaceIFileRevisionData
- Returns:
- the client file name associated with this revision.
-
setClientName
public void setClientName(java.lang.String clientName)
-
getDate
public java.util.Date getDate()
- Specified by:
getDate
in interfaceIFileRevisionData
- Returns:
- the date associated with this revision.
-
setDate
public void setDate(java.util.Date date)
-
getDepotFileName
public java.lang.String getDepotFileName()
- Specified by:
getDepotFileName
in interfaceIFileRevisionData
- Returns:
- the depot file name associated with this revision.
-
setDepotFileName
public void setDepotFileName(java.lang.String depotFileName)
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceIFileRevisionData
- Returns:
- the description string associated with this revision.
-
setDescription
public void setDescription(java.lang.String description)
-
getFileType
public java.lang.String getFileType()
- Specified by:
getFileType
in interfaceIFileRevisionData
- Returns:
- the Perforce file type string associated with this revision.
-
setFileType
public void setFileType(java.lang.String fileType)
-
getRevision
public int getRevision()
- Specified by:
getRevision
in interfaceIFileRevisionData
- Returns:
- the revision ID associated with this revision.
-
setRevision
public void setRevision(int revision)
-
getRevisionIntegrationDataList
public java.util.List<IRevisionIntegrationData> getRevisionIntegrationDataList()
Description copied from interface:IFileRevisionData
This method can be used to retrieve a (possibly-empty or even null) list of contributory integration data for revisions that have resulted from (or caused) a merge or branch. There's generally no easy way to tell whether there's anything to be retrieved here, so you may have to always call it and if it's null or empty, just ignore it...- Specified by:
getRevisionIntegrationDataList
in interfaceIFileRevisionData
- Returns:
- potentially null or empty list of revision integration data for this specific revision.
-
getRevisionIntegrationData
@Deprecated public java.util.List<IRevisionIntegrationData> getRevisionIntegrationData()
Deprecated.- Specified by:
getRevisionIntegrationData
in interfaceIFileRevisionData
-
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interfaceIFileRevisionData
- Returns:
- the Perforce user name associated with this revision.
-
setUserName
public void setUserName(java.lang.String userName)
-
getChangelistId
public int getChangelistId()
- Specified by:
getChangelistId
in interfaceIFileRevisionData
- Returns:
- the changelist ID associated with this revision.
-
-