com.perforce.p4java.core.file
Class FileDiff

java.lang.Object
  extended by com.perforce.p4java.core.file.FileDiff
All Implemented Interfaces:
IFileDiff

public class FileDiff
extends Object
implements IFileDiff

Author:
Kevin Sawicki ([email protected])

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IFileDiff
IFileDiff.Status
 
Constructor Summary
FileDiff(Map<String,Object> map)
          Create a new file diff with the values from the specified map
 
Method Summary
 String getDepotFile1()
          Get depot path of first file in diff
 String getDepotFile2()
          Get depot path of second file in diff
 String getFileType1()
          Get file type of first file in diff
 String getFileType2()
          Get file type of second file in diff
 int getRevision1()
          Get revision of first file in diff
 int getRevision2()
          Get revision of second file in diff
 IFileDiff.Status getStatus()
          Get status of file diff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDiff

public FileDiff(Map<String,Object> map)
Create a new file diff with the values from the specified map

Parameters:
map -
Method Detail

getStatus

public IFileDiff.Status getStatus()
Description copied from interface: IFileDiff
Get status of file diff

Specified by:
getStatus in interface IFileDiff
Returns:
status
See Also:
IFileDiff.getStatus()

getDepotFile1

public String getDepotFile1()
Description copied from interface: IFileDiff
Get depot path of first file in diff

Specified by:
getDepotFile1 in interface IFileDiff
Returns:
depot file path
See Also:
IFileDiff.getDepotFile1()

getDepotFile2

public String getDepotFile2()
Description copied from interface: IFileDiff
Get depot path of second file in diff

Specified by:
getDepotFile2 in interface IFileDiff
Returns:
depot file path
See Also:
IFileDiff.getDepotFile2()

getRevision1

public int getRevision1()
Description copied from interface: IFileDiff
Get revision of first file in diff

Specified by:
getRevision1 in interface IFileDiff
Returns:
revision number
See Also:
IFileDiff.getRevision1()

getRevision2

public int getRevision2()
Description copied from interface: IFileDiff
Get revision of second file in diff

Specified by:
getRevision2 in interface IFileDiff
Returns:
revision number
See Also:
IFileDiff.getRevision2()

getFileType1

public String getFileType1()
Description copied from interface: IFileDiff
Get file type of first file in diff

Specified by:
getFileType1 in interface IFileDiff
Returns:
file type
See Also:
IFileDiff.getFileType1()

getFileType2

public String getFileType2()
Description copied from interface: IFileDiff
Get file type of second file in diff

Specified by:
getFileType2 in interface IFileDiff
Returns:
file type
See Also:
IFileDiff.getFileType2()


Copyright © 2015 Perforce Software. All Rights Reserved.