org.tigris.subversion.javahl
Class BlameCallbackImpl

java.lang.Object
  extended by org.tigris.subversion.javahl.BlameCallbackImpl
All Implemented Interfaces:
BlameCallback, BlameCallback2

public class BlameCallbackImpl
extends Object
implements BlameCallback, BlameCallback2

Implementation of BlameCallback interface.

Since:
1.5

Nested Class Summary
static class BlameCallbackImpl.BlameLine
          Class represeting one line of the lines, i.e.
 
Constructor Summary
BlameCallbackImpl()
           
 
Method Summary
protected  void addBlameLine(BlameCallbackImpl.BlameLine blameLine)
          Append the given blame info to the list
 BlameCallbackImpl.BlameLine getBlameLine(int i)
          Retrieve blame information for specified line number
 int numberOfLines()
          Retrieve the number of line of blame information
 void singleLine(Date date, long revision, String author, Date merged_date, long merged_revision, String merged_author, String merged_path, String line)
          the method will be called for every line in a file.
 void singleLine(Date changed, long revision, String author, 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
 

Constructor Detail

BlameCallbackImpl

public BlameCallbackImpl()
Method Detail

singleLine

public void singleLine(Date changed,
                       long revision,
                       String author,
                       String line)
Description copied from interface: BlameCallback
the method will be called for every line in a file.

Specified by:
singleLine in interface BlameCallback
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(Date date,
                       long revision,
                       String author,
                       Date merged_date,
                       long merged_revision,
                       String merged_author,
                       String merged_path,
                       String line)
Description copied from interface: BlameCallback2
the method will be called for every line in a file.

Specified by:
singleLine in interface BlameCallback2
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 -