|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.history.Annotation
public class Annotation
Class representing file annotation, i.e., revision and author for the last modification of each line in the file.
Constructor Summary | |
---|---|
Annotation(java.lang.String filename)
|
Method Summary | |
---|---|
java.lang.String |
getAuthor(int line)
Gets the author who last modified the specified line. |
java.lang.String |
getDesc(java.lang.String revision)
|
java.lang.String |
getFilename()
|
java.lang.String |
getRevision(int line)
Gets the revision for the last change to the specified line. |
java.util.Set<java.lang.String> |
getRevisions()
Gets all revisions that are in use, first is the lowest one (sorted using natural order) |
int |
getWidestAuthor()
Returns the widest author name in the file (used for pretty printing). |
int |
getWidestRevision()
Returns the widest revision string in the file (used for pretty printing). |
boolean |
isEnabled(int line)
Gets the enabled state for the last change to the specified line. |
int |
size()
Returns the size of the file (number of lines). |
java.lang.String |
toString()
|
void |
writeTooltipMap(java.io.Writer out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Annotation(java.lang.String filename)
Method Detail |
---|
public java.lang.String getRevision(int line)
line
- line number (counting from 1)
public java.util.Set<java.lang.String> getRevisions()
public java.lang.String getAuthor(int line)
line
- line number (counting from 1)
public boolean isEnabled(int line)
line
- line number (counting from 1)
public int size()
public int getWidestRevision()
public int getWidestAuthor()
public java.lang.String getDesc(java.lang.String revision)
public java.lang.String getFilename()
public void writeTooltipMap(java.io.Writer out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |