Package org.tigris.subversion.javahl
Class BlameCallbackImpl
java.lang.Object
org.tigris.subversion.javahl.BlameCallbackImpl
- All Implemented Interfaces:
BlameCallback
,BlameCallback2
Implementation of
BlameCallback
interface.- Since:
- 1.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class represeting one line of the lines, i.e. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.util.List<BlameCallbackImpl.BlameLine>
list of blame records (lines) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBlameLine
(BlameCallbackImpl.BlameLine blameLine) Append the given blame info to the listprivate java.lang.String
getAuthor
(java.lang.String author, java.lang.String merged_author) getBlameLine
(int i) Retrieve blame information for specified line numberprivate java.util.Date
getDate
(java.util.Date date, java.util.Date merged_date) private long
getRevision
(long revision, long merged_revision) int
Retrieve the number of line of blame informationvoid
singleLine
(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.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) the method will be called for every line in a file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
lines
list of blame records (lines)
-
-
Constructor Details
-
BlameCallbackImpl
public BlameCallbackImpl()
-
-
Method Details
-
singleLine
public void singleLine(java.util.Date changed, long revision, java.lang.String author, java.lang.String line) Description copied from interface:BlameCallback
the method will be called for every line in a file.- Specified by:
singleLine
in 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:BlameCallback2
the method will be called for every line in a file.- Specified by:
singleLine
in 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
-
getDate
private java.util.Date getDate(java.util.Date date, java.util.Date merged_date) -
getAuthor
private java.lang.String getAuthor(java.lang.String author, java.lang.String merged_author) -
getRevision
private long getRevision(long revision, long merged_revision) -
numberOfLines
public int numberOfLines()Retrieve the number of line of blame information- Returns:
- number of lines of blame information
-
getBlameLine
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
Append the given blame info to the list- Parameters:
blameLine
-
-