com.perforce.maven.scm.provider.p4.command.blame
Class P4BlameResult

java.lang.Object
  extended by com.perforce.maven.scm.provider.p4.command.P4Result
      extended by com.perforce.maven.scm.provider.p4.command.blame.P4BlameResult

public class P4BlameResult
extends P4Result

This class handles the result from the Perforce annotate command.


Field Summary
 
Fields inherited from class com.perforce.maven.scm.provider.p4.command.P4Result
commandOutput, commandResult, LINE_SEPARATOR, success
 
Constructor Summary
P4BlameResult()
           
 
Method Summary
 String getAuthor(String revision)
          Gets the author.
 List<org.apache.maven.scm.command.blame.BlameLine> getBlameLines()
          Gets the blame lines.
 Date getDate(String revision)
          Gets the date.
 void processBlameLines(List<com.perforce.p4java.core.file.IFileAnnotation> fileAnnotations)
          Extracts file annotation info as BlameLine objects.
 String processMessage(String message)
          Process message.
 void processRevisionHistory(Map<com.perforce.p4java.core.file.IFileSpec,List<com.perforce.p4java.core.file.IFileRevisionData>> revisionMap)
          Extracts dates and authors from revision history map.
 
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

P4BlameResult

public P4BlameResult()
Method Detail

processMessage

public String processMessage(String message)
Description copied from class: P4Result
Process message.

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

processBlameLines

public void processBlameLines(List<com.perforce.p4java.core.file.IFileAnnotation> fileAnnotations)
Extracts file annotation info as BlameLine objects.

Parameters:
fileAnnotations - the file annotations

processRevisionHistory

public void processRevisionHistory(Map<com.perforce.p4java.core.file.IFileSpec,List<com.perforce.p4java.core.file.IFileRevisionData>> revisionMap)
Extracts dates and authors from revision history map.

Parameters:
revisionMap - the revision map

getBlameLines

public List<org.apache.maven.scm.command.blame.BlameLine> getBlameLines()
Gets the blame lines.

Returns:
the blame lines

getAuthor

public String getAuthor(String revision)
Gets the author.

Parameters:
revision - the revision
Returns:
the author

getDate

public Date getDate(String revision)
Gets the date.

Parameters:
revision - the revision
Returns:
the date


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