Class Annotations
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.Annotations
-
- All Implemented Interfaces:
ISVNAnnotations
public class Annotations extends java.lang.Object implements ISVNAnnotations
Generic implementation ofISVNAnnotations
interface. It's expected to be filled with annotation data byaddAnnotation(Annotations.Annotation)
method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Annotations.AnnotateInputStream
static class
Annotations.Annotation
Class represeting one line of the annotations, i.e.
-
Constructor Summary
Constructors Constructor Description Annotations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotation(Annotations.Annotation annotation)
Append the given annotation record the list of annotationprotected Annotations.Annotation
getAnnotation(int i)
java.lang.String
getAuthor(int lineNumber)
Get the author of the last change for the givenlineNumber
java.util.Date
getChanged(int lineNumber)
Get the date of the last change for the givenlineNumber
java.io.InputStream
getInputStream()
Get an input stream providing the content of the file being annotated.java.lang.String
getLine(int lineNumber)
Get the content (line itself) of the givenlineNumber
long
getRevision(int lineNumber)
Get the revision of the last change for the givenlineNumber
int
numberOfLines()
Get the number of annotated lines
-
-
-
Method Detail
-
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 givenlineNumber
- Specified by:
getRevision
in interfaceISVNAnnotations
- Returns:
- the revision of last change
-
getAuthor
public java.lang.String getAuthor(int lineNumber)
Description copied from interface:ISVNAnnotations
Get the author of the last change for the givenlineNumber
- Specified by:
getAuthor
in interfaceISVNAnnotations
- Returns:
- the author of last change or null
-
getChanged
public java.util.Date getChanged(int lineNumber)
Description copied from interface:ISVNAnnotations
Get the date of the last change for the givenlineNumber
- Specified by:
getChanged
in interfaceISVNAnnotations
- Returns:
- date of last change
-
getLine
public java.lang.String getLine(int lineNumber)
Description copied from interface:ISVNAnnotations
Get the content (line itself) of the givenlineNumber
- Specified by:
getLine
in interfaceISVNAnnotations
- Returns:
- the line content
-
getInputStream
public java.io.InputStream getInputStream()
Description copied from interface:ISVNAnnotations
Get an input stream providing the content of the file being annotated.- Specified by:
getInputStream
in interfaceISVNAnnotations
- 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 interfaceISVNAnnotations
- Returns:
- number of lines of file being annotated
-
-