com.perforce.p4java.impl.generic.core.file
Class FileRevisionData

java.lang.Object
  extended by 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.


Nested Class Summary
 class FileRevisionData.RevisionIntegrationData
           
 
Constructor Summary
FileRevisionData()
           
FileRevisionData(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
 FileAction getAction()
          Get the file action associated with this revision.
 int getChangelistId()
          Get the changelist ID associated with this revision.
 String getClientName()
          Get the client file name associated with this revision.
 Date getDate()
          Get the date associated with this revision.
 String getDepotFileName()
          Get the depot file name associated with this revision.
 String getDescription()
          Get the description string associated with this revision.
 String getFileType()
          Get the Perforce file type string associated with this revision.
 int getRevision()
          Get the revision ID associated with this revision.
 List<IRevisionIntegrationData> getRevisionIntegrationData()
          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.
 String getUserName()
          Get the Perforce user name associated with this revision.
 void setAction(FileAction action)
           
 void setChangelistId(int changeListId)
           
 void setClientName(String clientName)
           
 void setDate(Date date)
           
 void setDepotFileName(String depotFileName)
           
 void setDescription(String description)
           
 void setFileType(String fileType)
           
 void setRevision(int revision)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRevisionData

public FileRevisionData()

FileRevisionData

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

FileRevisionData

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

getRevision

public int getRevision()
Description copied from interface: IFileRevisionData
Get the revision ID associated with this revision.

Specified by:
getRevision in interface IFileRevisionData

setRevision

public void setRevision(int revision)

getChangelistId

public int getChangelistId()
Description copied from interface: IFileRevisionData
Get the changelist ID associated with this revision.

Specified by:
getChangelistId in interface IFileRevisionData

setChangelistId

public void setChangelistId(int changeListId)

getAction

public FileAction getAction()
Description copied from interface: IFileRevisionData
Get the file action associated with this revision.

Specified by:
getAction in interface IFileRevisionData

setAction

public void setAction(FileAction action)

getDate

public Date getDate()
Description copied from interface: IFileRevisionData
Get the date associated with this revision.

Specified by:
getDate in interface IFileRevisionData

setDate

public void setDate(Date date)

getUserName

public String getUserName()
Description copied from interface: IFileRevisionData
Get the Perforce user name associated with this revision.

Specified by:
getUserName in interface IFileRevisionData

setUserName

public void setUserName(String userName)

getFileType

public String getFileType()
Description copied from interface: IFileRevisionData
Get the Perforce file type string associated with this revision.

Specified by:
getFileType in interface IFileRevisionData

setFileType

public void setFileType(String fileType)

getDescription

public String getDescription()
Description copied from interface: IFileRevisionData
Get the description string associated with this revision.

Specified by:
getDescription in interface IFileRevisionData

setDescription

public void setDescription(String description)

getDepotFileName

public String getDepotFileName()
Description copied from interface: IFileRevisionData
Get the depot file name associated with this revision.

Specified by:
getDepotFileName in interface IFileRevisionData

setDepotFileName

public void setDepotFileName(String depotFileName)

getClientName

public String getClientName()
Description copied from interface: IFileRevisionData
Get the client file name associated with this revision.

Specified by:
getClientName in interface IFileRevisionData

setClientName

public void setClientName(String clientName)

getRevisionIntegrationData

public List<IRevisionIntegrationData> getRevisionIntegrationData()
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:
getRevisionIntegrationData in interface IFileRevisionData
Returns:
potentially null or empty list of revision integration data for this specific revision.
See Also:
IFileRevisionData.getRevisionIntegrationData()


Copyright © 2015 Perforce Software. All Rights Reserved.