Class FileRevisionData

  • All Implemented Interfaces:
    IFileRevisionData

    public class FileRevisionData
    extends java.lang.Object
    implements IFileRevisionData
    Simple default generic implementation calls for the IFileRevisionData interface.
    • 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)
      • setAction

        public void setAction​(FileAction action)
      • getClientName

        public java.lang.String getClientName()
        Specified by:
        getClientName in interface IFileRevisionData
        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 interface IFileRevisionData
        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 interface IFileRevisionData
        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 interface IFileRevisionData
        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 interface IFileRevisionData
        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 interface IFileRevisionData
        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 interface IFileRevisionData
        Returns:
        potentially null or empty list of revision integration data for this specific revision.
      • getUserName

        public java.lang.String getUserName()
        Specified by:
        getUserName in interface IFileRevisionData
        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 interface IFileRevisionData
        Returns:
        the changelist ID associated with this revision.