Class Annotations
java.lang.Object
org.tigris.subversion.svnclientadapter.Annotations
- All Implemented Interfaces:
ISVNAnnotations
Generic implementation of
ISVNAnnotations
interface.
It's expected to be filled with annotation data by
addAnnotation(Annotations.Annotation)
method.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
static class
Class represeting one line of the annotations, i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(Annotations.Annotation annotation) Append the given annotation record the list of annotationprotected Annotations.Annotation
getAnnotation
(int i) getAuthor
(int lineNumber) Get the author of the last change for the givenlineNumber
getChanged
(int lineNumber) Get the date of the last change for the givenlineNumber
Get an input stream providing the content of the file being annotated.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
Get the number of annotated lines
-
Constructor Details
-
Annotations
public Annotations()
-
-
Method Details
-
getAnnotation
-
addAnnotation
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
- Parameters:
lineNumber
-- Returns:
- the revision of last change
-
getAuthor
Description copied from interface:ISVNAnnotations
Get the author of the last change for the givenlineNumber
- Specified by:
getAuthor
in interfaceISVNAnnotations
- Parameters:
lineNumber
-- Returns:
- the author of last change or null
-
getChanged
Description copied from interface:ISVNAnnotations
Get the date of the last change for the givenlineNumber
- Specified by:
getChanged
in interfaceISVNAnnotations
- Parameters:
lineNumber
-- Returns:
- date of last change
-
getLine
Description copied from interface:ISVNAnnotations
Get the content (line itself) of the givenlineNumber
- Specified by:
getLine
in interfaceISVNAnnotations
- Parameters:
lineNumber
-- Returns:
- the line content
-
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
-