|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.maven.scm.provider.p4.command.P4Result com.perforce.maven.scm.provider.p4.command.blame.P4BlameResult
public class P4BlameResult
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 |
---|
public P4BlameResult()
Method Detail |
---|
public String processMessage(String message)
P4Result
processMessage
in class P4Result
message
- the message
(java.lang.String)
public void processBlameLines(List<com.perforce.p4java.core.file.IFileAnnotation> fileAnnotations)
fileAnnotations
- the file annotationspublic void processRevisionHistory(Map<com.perforce.p4java.core.file.IFileSpec,List<com.perforce.p4java.core.file.IFileRevisionData>> revisionMap)
revisionMap
- the revision mappublic List<org.apache.maven.scm.command.blame.BlameLine> getBlameLines()
public String getAuthor(String revision)
revision
- the revision
public Date getDate(String revision)
revision
- the revision
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |