Package org.tigris.subversion.javahl
Class BlameCallbackImpl
- java.lang.Object
-
- org.tigris.subversion.javahl.BlameCallbackImpl
-
- All Implemented Interfaces:
BlameCallback,BlameCallback2
public class BlameCallbackImpl extends java.lang.Object implements BlameCallback, BlameCallback2
Implementation ofBlameCallbackinterface.- Since:
- 1.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlameCallbackImpl.BlameLineClass represeting one line of the lines, i.e.
-
Constructor Summary
Constructors Constructor Description BlameCallbackImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBlameLine(BlameCallbackImpl.BlameLine blameLine)Append the given blame info to the listBlameCallbackImpl.BlameLinegetBlameLine(int i)Retrieve blame information for specified line numberintnumberOfLines()Retrieve the number of line of blame informationvoidsingleLine(java.util.Date changed, long revision, java.lang.String author, java.lang.String line)the method will be called for every line in a file.voidsingleLine(java.util.Date date, long revision, java.lang.String author, java.util.Date merged_date, long merged_revision, java.lang.String merged_author, java.lang.String merged_path, java.lang.String line)the method will be called for every line in a file.
-
-
-
Method Detail
-
singleLine
public void singleLine(java.util.Date changed, long revision, java.lang.String author, java.lang.String line)Description copied from interface:BlameCallbackthe method will be called for every line in a file.- Specified by:
singleLinein interfaceBlameCallback- Parameters:
changed- the date of the last change.revision- the revision of the last change.author- the author of the last change.line- the line in the file
-
singleLine
public void singleLine(java.util.Date date, long revision, java.lang.String author, java.util.Date merged_date, long merged_revision, java.lang.String merged_author, java.lang.String merged_path, java.lang.String line)Description copied from interface:BlameCallback2the method will be called for every line in a file.- Specified by:
singleLinein interfaceBlameCallback2- Parameters:
date- the date of the last change.revision- the revision of the last change.author- the author of the last change.merged_date- the date of the last merged change.merged_revision- the revision of the last merged change.merged_author- the author of the last merged change.merged_path- the path of the last merged change.line- the line in the file
-
numberOfLines
public int numberOfLines()
Retrieve the number of line of blame information- Returns:
- number of lines of blame information
-
getBlameLine
public BlameCallbackImpl.BlameLine getBlameLine(int i)
Retrieve blame information for specified line number- Parameters:
i- the line number to retrieve blame information about- Returns:
- Returns object with blame information for line
-
addBlameLine
protected void addBlameLine(BlameCallbackImpl.BlameLine blameLine)
Append the given blame info to the list- Parameters:
blameLine-
-
-