Class FileRevisionData
java.lang.Object
com.perforce.p4java.impl.generic.core.file.FileRevisionData
- All Implemented Interfaces:
IFileRevisionData
Simple default generic implementation calls for the IFileRevisionData
interface.
-
Constructor Summary
ConstructorsConstructorDescriptionFileRevisionData(int revision, int changeListId, FileAction action, Date date, String userName, String fileType, String description, String depotFileName, String clientName) FileRevisionData(Map<String, Object> map, int revNo) -
Method Summary
Modifier and TypeMethodDescriptionintgetDate()intDeprecated.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.voidsetAction(FileAction action) voidsetChangelistId(int changeListId) voidsetClientName(String clientName) voidvoidsetDepotFileName(String depotFileName) voidsetDescription(String description) voidsetFileType(String fileType) voidsetRevision(int revision) voidsetUserName(String userName)
-
Constructor Details
-
FileRevisionData
public FileRevisionData() -
FileRevisionData
-
FileRevisionData
-
-
Method Details
-
setChangelistId
public void setChangelistId(int changeListId) -
getAction
- Specified by:
getActionin interfaceIFileRevisionData- Returns:
- the file action associated with this revision.
-
setAction
-
getClientName
- Specified by:
getClientNamein interfaceIFileRevisionData- Returns:
- the client file name associated with this revision.
-
setClientName
-
getDate
- Specified by:
getDatein interfaceIFileRevisionData- Returns:
- the date associated with this revision.
-
setDate
-
getDepotFileName
- Specified by:
getDepotFileNamein interfaceIFileRevisionData- Returns:
- the depot file name associated with this revision.
-
setDepotFileName
-
getDescription
- Specified by:
getDescriptionin interfaceIFileRevisionData- Returns:
- the description string associated with this revision.
-
setDescription
-
getFileType
- Specified by:
getFileTypein interfaceIFileRevisionData- Returns:
- the Perforce file type string associated with this revision.
-
setFileType
-
getRevision
public int getRevision()- Specified by:
getRevisionin interfaceIFileRevisionData- Returns:
- the revision ID associated with this revision.
-
setRevision
public void setRevision(int revision) -
getRevisionIntegrationDataList
Description copied from interface:IFileRevisionDataThis 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:
getRevisionIntegrationDataListin interfaceIFileRevisionData- Returns:
- potentially null or empty list of revision integration data for this specific revision.
-
getRevisionIntegrationData
Deprecated.- Specified by:
getRevisionIntegrationDatain interfaceIFileRevisionData
-
getUserName
- Specified by:
getUserNamein interfaceIFileRevisionData- Returns:
- the Perforce user name associated with this revision.
-
setUserName
-
getChangelistId
public int getChangelistId()- Specified by:
getChangelistIdin interfaceIFileRevisionData- Returns:
- the changelist ID associated with this revision.
-