Class Annotations

java.lang.Object
org.tigris.subversion.svnclientadapter.Annotations
All Implemented Interfaces:
ISVNAnnotations

public class Annotations extends Object implements ISVNAnnotations
Generic implementation of ISVNAnnotations interface. It's expected to be filled with annotation data by addAnnotation(Annotations.Annotation) method.
  • Constructor Details

    • Annotations

      public Annotations()
  • Method Details

    • getAnnotation

      protected Annotations.Annotation getAnnotation(int i)
    • addAnnotation

      public void addAnnotation(Annotations.Annotation annotation)
      Append the given annotation record the list of annotation
      Parameters:
      annotation -
    • getRevision

      public long getRevision(int lineNumber)
      Description copied from interface: ISVNAnnotations
      Get the revision of the last change for the given lineNumber
      Specified by:
      getRevision in interface ISVNAnnotations
      Parameters:
      lineNumber -
      Returns:
      the revision of last change
    • getAuthor

      public String getAuthor(int lineNumber)
      Description copied from interface: ISVNAnnotations
      Get the author of the last change for the given lineNumber
      Specified by:
      getAuthor in interface ISVNAnnotations
      Parameters:
      lineNumber -
      Returns:
      the author of last change or null
    • getChanged

      public Date getChanged(int lineNumber)
      Description copied from interface: ISVNAnnotations
      Get the date of the last change for the given lineNumber
      Specified by:
      getChanged in interface ISVNAnnotations
      Parameters:
      lineNumber -
      Returns:
      date of last change
    • getLine

      public String getLine(int lineNumber)
      Description copied from interface: ISVNAnnotations
      Get the content (line itself) of the given lineNumber
      Specified by:
      getLine in interface ISVNAnnotations
      Parameters:
      lineNumber -
      Returns:
      the line content
    • getInputStream

      public InputStream getInputStream()
      Description copied from interface: ISVNAnnotations
      Get an input stream providing the content of the file being annotated.
      Specified by:
      getInputStream in interface ISVNAnnotations
      Returns:
      an inputstream of the content of the file
    • numberOfLines

      public int numberOfLines()
      Description copied from interface: ISVNAnnotations
      Get the number of annotated lines
      Specified by:
      numberOfLines in interface ISVNAnnotations
      Returns:
      number of lines of file being annotated