com.perforce.maven.scm.provider.p4.command.diff
Class P4DiffResult

java.lang.Object
  extended by com.perforce.maven.scm.provider.p4.command.P4Result
      extended by com.perforce.maven.scm.provider.p4.command.diff.P4DiffResult

public class P4DiffResult
extends P4Result

This class handles the result from the Perforce diff2 command.


Field Summary
 
Fields inherited from class com.perforce.maven.scm.provider.p4.command.P4Result
commandOutput, commandResult, LINE_SEPARATOR, success
 
Constructor Summary
P4DiffResult()
           
 
Method Summary
 List<org.apache.maven.scm.ScmFile> getChangedFiles()
          Gets the changed files.
 Map<String,String> getDifferences()
          Gets the differences.
 String getFileDiffOutput()
          Gets the file diff output.
 String getPatch()
          Gets the patch.
 void processFileDiffs(List<com.perforce.p4java.core.IFileDiff> fileDiffs)
          Extracts diff output from the returned diff2 command result file diffs.
 String processMessage(String message)
          Process message.
 
Methods inherited from class com.perforce.maven.scm.provider.p4.command.P4Result
getCommandOutput, getCommandResult, isSuccess, process, setSuccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P4DiffResult

public P4DiffResult()
Method Detail

processMessage

public String processMessage(String message)
Process message.

Specified by:
processMessage in class P4Result
Parameters:
message - the message
Returns:
the string
See Also:
(java.lang.String)

processFileDiffs

public void processFileDiffs(List<com.perforce.p4java.core.IFileDiff> fileDiffs)
Extracts diff output from the returned diff2 command result file diffs.

Parameters:
fileDiffs - the file diffs

getFileDiffOutput

public String getFileDiffOutput()
Gets the file diff output.

Returns:
the file diff output

getChangedFiles

public List<org.apache.maven.scm.ScmFile> getChangedFiles()
Gets the changed files.

Returns:
the changed files

getDifferences

public Map<String,String> getDifferences()
Gets the differences.

Returns:
the differences

getPatch

public String getPatch()
Gets the patch.

Returns:
the patch


Copyright © 2003-2011 Perforce Software. All Rights Reserved.