Class FileRevisionData

java.lang.Object
com.perforce.p4java.impl.generic.core.file.FileRevisionData
All Implemented Interfaces:
IFileRevisionData

public class FileRevisionData extends Object implements IFileRevisionData
Simple default generic implementation calls for the IFileRevisionData interface.
  • Constructor Details

    • FileRevisionData

      public FileRevisionData()
    • FileRevisionData

      public FileRevisionData(Map<String,Object> map, int revNo)
    • FileRevisionData

      public FileRevisionData(int revision, int changeListId, FileAction action, Date date, String userName, String fileType, String description, String depotFileName, String clientName)
  • Method Details

    • setChangelistId

      public void setChangelistId(int changeListId)
    • getAction

      public FileAction getAction()
      Specified by:
      getAction in interface IFileRevisionData
      Returns:
      the file action associated with this revision.
    • setAction

      public void setAction(FileAction action)
    • getClientName

      public String getClientName()
      Specified by:
      getClientName in interface IFileRevisionData
      Returns:
      the client file name associated with this revision.
    • setClientName

      public void setClientName(String clientName)
    • getDate

      public Date getDate()
      Specified by:
      getDate in interface IFileRevisionData
      Returns:
      the date associated with this revision.
    • setDate

      public void setDate(Date date)
    • getDepotFileName

      public String getDepotFileName()
      Specified by:
      getDepotFileName in interface IFileRevisionData
      Returns:
      the depot file name associated with this revision.
    • setDepotFileName

      public void setDepotFileName(String depotFileName)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface IFileRevisionData
      Returns:
      the description string associated with this revision.
    • setDescription

      public void setDescription(String description)
    • getFileType

      public String getFileType()
      Specified by:
      getFileType in interface IFileRevisionData
      Returns:
      the Perforce file type string associated with this revision.
    • setFileType

      public void setFileType(String fileType)
    • getRevision

      public int getRevision()
      Specified by:
      getRevision in interface IFileRevisionData
      Returns:
      the revision ID associated with this revision.
    • setRevision

      public void setRevision(int revision)
    • getRevisionIntegrationDataList

      public 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 interface IFileRevisionData
      Returns:
      potentially null or empty list of revision integration data for this specific revision.
    • getRevisionIntegrationData

      @Deprecated public List<IRevisionIntegrationData> getRevisionIntegrationData()
      Deprecated.
      Specified by:
      getRevisionIntegrationData in interface IFileRevisionData
    • getUserName

      public String getUserName()
      Specified by:
      getUserName in interface IFileRevisionData
      Returns:
      the Perforce user name associated with this revision.
    • setUserName

      public void setUserName(String userName)
    • getChangelistId

      public int getChangelistId()
      Specified by:
      getChangelistId in interface IFileRevisionData
      Returns:
      the changelist ID associated with this revision.