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 classstatic classClass represeting one line of the annotations, i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Annotations.Annotation annotation) Append the given annotation record the list of annotationprotected Annotations.AnnotationgetAnnotation(int i) getAuthor(int lineNumber) Get the author of the last change for the givenlineNumbergetChanged(int lineNumber) Get the date of the last change for the givenlineNumberGet an input stream providing the content of the file being annotated.getLine(int lineNumber) Get the content (line itself) of the givenlineNumberlonggetRevision(int lineNumber) Get the revision of the last change for the givenlineNumberintGet 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:ISVNAnnotationsGet the revision of the last change for the givenlineNumber- Specified by:
getRevisionin interfaceISVNAnnotations- Parameters:
lineNumber-- Returns:
- the revision of last change
-
getAuthor
Description copied from interface:ISVNAnnotationsGet the author of the last change for the givenlineNumber- Specified by:
getAuthorin interfaceISVNAnnotations- Parameters:
lineNumber-- Returns:
- the author of last change or null
-
getChanged
Description copied from interface:ISVNAnnotationsGet the date of the last change for the givenlineNumber- Specified by:
getChangedin interfaceISVNAnnotations- Parameters:
lineNumber-- Returns:
- date of last change
-
getLine
Description copied from interface:ISVNAnnotationsGet the content (line itself) of the givenlineNumber- Specified by:
getLinein interfaceISVNAnnotations- Parameters:
lineNumber-- Returns:
- the line content
-
getInputStream
Description copied from interface:ISVNAnnotationsGet an input stream providing the content of the file being annotated.- Specified by:
getInputStreamin interfaceISVNAnnotations- Returns:
- an inputstream of the content of the file
-
numberOfLines
public int numberOfLines()Description copied from interface:ISVNAnnotationsGet the number of annotated lines- Specified by:
numberOfLinesin interfaceISVNAnnotations- Returns:
- number of lines of file being annotated
-